Skip to content

Commit e1348be

Browse files
committed
feat(web): add tos page
1 parent fc26d22 commit e1348be

File tree

3 files changed

+100
-1
lines changed

3 files changed

+100
-1
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
import { motion } from "framer-motion";
2+
3+
export const LegalStuffTos = () => {
4+
return (
5+
<section
6+
className="lg:mb-16 w-full flex flex-col justify-center items-center bg-bgDark1"
7+
id="youtube"
8+
>
9+
<div className="shape-divider-bottom-1665696614">
10+
<svg
11+
data-name="Layer 1"
12+
xmlns="http://www.w3.org/2000/svg"
13+
viewBox="0 0 1200 120"
14+
preserveAspectRatio="none"
15+
className="bg-bgDark2 fill-bgDark2"
16+
>
17+
<path
18+
d="M1200 120L0 16.48 0 0 1200 0 1200 120z"
19+
className="bg-bgDark1 fill-bgDark1"
20+
></path>
21+
</svg>
22+
</div>
23+
<motion.div
24+
initial={{ opacity: 0 }}
25+
whileInView={{ opacity: 1 }}
26+
viewport={{ once: true }}
27+
transition={{ duration: 0.5, delay: 0.2 }}
28+
>
29+
<div className=" 2xl:w-[1150px] xl:w-[1050px] md:w-4/5 flex justify-center bg-bgDark1 pt-12 lg:pt-24 pb-8 lg:pb-20 mx-auto flex-col">
30+
<div className="w-3/4 lg:w-1/2 flex flex-col lg:mx-unset mx-auto">
31+
<span className="block-subtitle">Terms of Service</span>
32+
<h2 className="mt-10 mb-8 text-4xl lg:text-5xl block-big-title">
33+
Terms of Service
34+
</h2>
35+
<p className="text-secondaryText leading-loose">
36+
When using this app you agree to the following:
37+
</p>
38+
<ul className="mb-16 text-secondaryText leading-loose list-disc list-inside">
39+
<li>
40+
You will not intentionally cause errors with the
41+
bot, including DDoS attacks.
42+
</li>
43+
<li>
44+
You will not misuse any bugs you find and you
45+
will report them instead.
46+
</li>
47+
<li>
48+
Any servers you use them in comply with the
49+
Discord Terms of Service.
50+
</li>
51+
</ul>
52+
<i className="text-secondaryText leading-loose">
53+
Last updated 15th August 2024
54+
</i>
55+
{/* <button
56+
className="w-[210px] h-12 contained-button mr-10 "
57+
onClick={() => setIsModalOpen(true)} // TODO: Add the invite link for the bot
58+
aria-label="Get started"
59+
>
60+
Get Started
61+
</button> */}
62+
</div>
63+
</div>
64+
</motion.div>
65+
<div className="shape-divider-top-1665696661 w-full">
66+
<svg
67+
data-name="Layer 1"
68+
xmlns="http://www.w3.org/2000/svg"
69+
viewBox="0 0 1200 120"
70+
preserveAspectRatio="none"
71+
className="bg-bgDark2 fill-bgDark2"
72+
>
73+
<path
74+
d="M1200 120L0 16.48 0 0 1200 0 1200 120z"
75+
className="bg-bgDark1 fill-bgDark1"
76+
></path>
77+
</svg>
78+
</div>
79+
</section>
80+
);
81+
};

web/src/components/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const Navbar = () => {
2828
transition={{ duration: 0.3 }}
2929
exit={{ opacity: 0 }}
3030
>
31-
<a href="/#home" aria-label="Home">
31+
<a href="/" aria-label="Home">
3232
<div className="flex justify-start items-center grow basis-0">
3333
<div className="text-white mr-2 text-6xl">
3434
<img

web/src/pages/tos.astro

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
import Layout from "../layouts/Layout.astro";
3+
import { Hero } from "../components/Hero";
4+
import { Navbar } from "../components/Navbar";
5+
import { Footer } from "../components/Footer";
6+
import { ScrollUpButton } from "../components/ScrollUpButton";
7+
import { LegalStuffTos } from "../components/LegalStuffTos";
8+
import "../styles/Theme.css";
9+
import "../styles/Diagonals.css";
10+
---
11+
12+
<Layout title="TOS - Feedr Discord Bot">
13+
<Navbar client:load />
14+
<!-- <Hero client:load /> -->
15+
<LegalStuffTos client:load />
16+
<Footer />
17+
<ScrollUpButton client:load />
18+
</Layout>

0 commit comments

Comments
 (0)