Skip to content

Commit

Permalink
add terms
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Aug 12, 2023
1 parent a01f08d commit 00339ad
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 17 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Pages

[![GitHub License](https://img.shields.io/github/license/reednel/pages?color=red)](https://github.com/reednel/pages/blob/main/LICENCE) [![Repo Size](https://img.shields.io/github/repo-size/reednel/pages)](https://github.com/reednel/pages) [![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/reednel/pages/deploy.yml?color=limegreen)](https://github.com/reednel/pages/deployments) [![Website](https://img.shields.io/website?up_message=online&up_color=limegreen&down_message=offline&down_color=yellow&url=https%3A%2F%2Freednel.com%2F)](https://reednel.com/)
[![GitHub License](https://img.shields.io/github/license/reednel/pages?color=red)](https://github.com/reednel/pages/blob/main/LICENSE) [![Repo Size](https://img.shields.io/github/repo-size/reednel/pages)](https://github.com/reednel/pages) [![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/reednel/pages/deploy.yml?color=limegreen)](https://github.com/reednel/pages/deployments) [![Website](https://img.shields.io/website?up_message=online&up_color=limegreen&down_message=offline&down_color=yellow&url=https%3A%2F%2Freednel.com%2F)](https://reednel.com/)

Reed Nelson's personal website.

Expand All @@ -18,7 +18,7 @@ Build: `npm run dev`

## License

Manual is licensed under the [MIT License](LICENSE).
Pages is licensed under the [MIT License](LICENSE).

## Acknowledgments

Expand Down
84 changes: 84 additions & 0 deletions src/content/terms/-index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
title: "Terms & Conditions"
meta_title: "Terms & Conditions"
draft: false
---

## Copyright

© 2023 Reed Nelson. All rights reserved.

## Reuse

### Source Code

The source code for reednel.com is protected under the MIT License. In short, you can do as you see fit, so long as you include the original copyright notice in any copy of the software.

```md
The MIT License (MIT)

Copyright (c) 2023 Reed Nelson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

### Content

It is not permitted to mirror or re-publish the content of this website. That includes, for example, the words and images displayed on it. Write your own blog.

## Terms

1. This site includes matters of opinion and speculation. All material is provided for informational purposes only.
2. While I try to keep materials up-to-date and accurate, the currency, accuracy, and completeness of my work can not be guaranteed.
3. You are responsible for whatever happens as a result of you reading or using materials from this site.
4. These terms and conditions may be amended at any time in the future.

## Attributions

### Source Code

This source code is derivative of [astroplate](https://github.com/zeon-studio/astroplate) by [Zeon Studio](https://github.com/zeon-studio), which uses the license below.

```md
The MIT License (MIT)

Copyright (c) 2023 - Present, Zeon Studio

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

### Content

The content of this Terms & Conditions page is derivative (with permission) of [Michael Noguera's](https://www.noguera.dev/).
20 changes: 5 additions & 15 deletions src/layouts/partials/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import Logo from "@/components/Logo.astro";
import Social from "@/components/Social.astro";
import menu from "@/config/menu.json";
import social from "@/config/social.json";
Expand All @@ -10,21 +9,12 @@ const { footer }: { footer: { name: string; url: string }[] } = menu;
<footer class=" mt-auto">
<div class="container">
<div class="row items-center py-2">
<div class="mb-2 text-center lg:col-3 lg:mb-0 lg:text-left">
<Logo />
<div class="mb-2 text-center lg:col-6 lg:mb-0 lg:text-left">
<a href="/terms">
&copy; 2023 Reed Nelson
</a>
</div>
<div class="mb-2 text-center lg:col-6 lg:mb-0">
<ul>
{
footer.map((menu) => (
<li class="m-3 inline-block">
<a href={menu.url}>{menu.name}</a>
</li>
))
}
</ul>
</div>
<div class="mb-2 text-center lg:col-3 lg:mb-0 lg:mt-0 lg:text-right">
<div class="mb-2 text-center lg:col-6 lg:mb-0 lg:mt-0 lg:text-right">
<Social source={social.main} className="social-icons" />
</div>
</div>
Expand Down
28 changes: 28 additions & 0 deletions src/pages/terms.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
import Base from "@/layouts/Base.astro";
import PageHeader from "@/partials/PageHeader.astro";
import { markdownify } from "@/lib/utils/textConverter";
import { getEntryBySlug } from "astro:content";
const terms = await getEntryBySlug("terms", "-index");
const { Content } = await terms.render();
const { title, meta_title } = terms.data;
---

<Base
title={title}
meta_title={meta_title}
>
<PageHeader title={title} />
<section class="section-sm">
<div class="container">
<div class="row justify-center">
<div class="col-10">
<div class="content">
<Content />
</div>
</div>
</div>
</div>
</section>
</Base>

0 comments on commit 00339ad

Please sign in to comment.