-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from aswanthabam/dev
Added Footer and Terms and Conditions Page
- Loading branch information
Showing
10 changed files
with
338 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.terms { | ||
background: #ffffff; | ||
width: calc(100% - 200px); | ||
height: 100%; | ||
min-height: 100vh; | ||
padding: 40px; | ||
display: flex; | ||
justify-content: start; | ||
align-items: start; | ||
flex-direction: column; | ||
gap: 30px; | ||
margin: 100px; | ||
|
||
.list { | ||
margin-left: 20px; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 728px) { | ||
.terms { | ||
padding: 20px; | ||
margin: 0; | ||
padding-bottom: 100px; | ||
width: 100%; | ||
padding-top: 100px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
import styles from "./page.module.css"; | ||
|
||
export default function Terms() { | ||
return ( | ||
<div className={styles.terms}> | ||
<h1 id="dropit-terms-and-conditions" className={styles.heading}> | ||
DropIT Terms and Conditions | ||
</h1> | ||
<p className={styles.paragraph}> | ||
<strong>Last Updated:</strong> 2024 July 20, Saturday | ||
</p> | ||
<p className={styles.paragraph}> | ||
<h3>1. Acceptance of Terms</h3> | ||
</p> | ||
<p className={styles.paragraph}> | ||
By accessing or using DropIT (the "Service"), you agree to be | ||
bound by these Terms and Conditions (the "Terms"). If you do | ||
not agree to these Terms, you may not use the Service. | ||
</p> | ||
<p className={styles.paragraph}> | ||
<h3>2. Description of Service</h3> | ||
</p> | ||
<p className={styles.paragraph}> | ||
DropIT is a file-sharing platform that allows users to share files using | ||
a memorable code without the need for an account. The Service includes | ||
the following features: | ||
</p> | ||
<ul className={styles.list}> | ||
<li className={styles.listItem}>Simple and Fast File Sharing</li> | ||
<li className={styles.listItem}>No Login Required</li> | ||
<li className={styles.listItem}>Memorable Sharing Codes</li> | ||
<li className={styles.listItem}>Security and Privacy</li> | ||
<li className={styles.listItem}>User-Friendly Interface</li> | ||
</ul> | ||
<p className={styles.paragraph}> | ||
<h3>3. User Responsibilities</h3> | ||
</p> | ||
<ul className={styles.list}> | ||
<li className={styles.listItem}> | ||
<strong>You are solely responsible</strong> for the files you upload, | ||
share, and download using the Service. | ||
</li> | ||
<li className={styles.listItem}> | ||
You agree to use the Service only for lawful purposes and in | ||
compliance with all applicable laws and regulations. | ||
</li> | ||
<li className={styles.listItem}> | ||
You are responsible for maintaining the confidentiality of the sharing | ||
codes you generate. | ||
</li> | ||
<li className={styles.listItem}> | ||
You agree not to use the Service to upload, post, or transmit any | ||
content that is unlawful, harmful, threatening, abusive, harassing, | ||
defamatory, vulgar, obscene, or otherwise objectionable. | ||
</li> | ||
</ul> | ||
<p className={styles.paragraph}> | ||
<h3>4. Disclaimer of Warranties</h3> | ||
</p> | ||
<ul className={styles.list}> | ||
<li className={styles.listItem}> | ||
DropIT is provided "<strong>as is</strong>" and " | ||
<strong>as available</strong>" without any warranties of any | ||
kind, either express or implied. | ||
</li> | ||
<li className={styles.listItem}> | ||
<strong>We do not guarantee</strong> that the Service will be | ||
available at all times or without interruption. | ||
</li> | ||
<li className={styles.listItem}> | ||
<strong>We do not guarantee the security</strong> of the files shared | ||
through the Service and are not responsible for any unauthorized | ||
access, use, or disclosure of files. | ||
</li> | ||
</ul> | ||
<p className={styles.paragraph}> | ||
<h3>5. Limitation of Liability</h3> | ||
</p> | ||
<ul className={styles.list}> | ||
<li className={styles.listItem}> | ||
DropIT shall not be liable for any direct, indirect, incidental, | ||
special, consequential, or exemplary damages, including but not | ||
limited to damages for loss of profits, goodwill, use, data, or other | ||
intangible losses resulting from the use or the inability to use the | ||
Service. | ||
</li> | ||
<li className={styles.listItem}> | ||
We are <strong>not responsible for any legal issues</strong> arising | ||
from the content of the files uploaded, shared, or downloaded using | ||
the Service. All responsibility lies with the user. | ||
</li> | ||
</ul> | ||
<p className={styles.paragraph}> | ||
<h3>6. Indemnification</h3> | ||
</p> | ||
<p className={styles.paragraph}> | ||
You agree to indemnify and hold harmless DropIT, its affiliates, and | ||
their respective officers, directors, employees, and agents from and | ||
against any and all claims, damages, obligations, losses, liabilities, | ||
costs, or debt, and expenses (including but not limited to | ||
attorney's fees) arising from: | ||
</p> | ||
<ul className={styles.list}> | ||
<li className={styles.listItem}> | ||
<strong>Your use of and access to the Service.</strong> | ||
</li> | ||
<li className={styles.listItem}> | ||
<strong>Your violation of any term</strong> of these Terms. | ||
</li> | ||
<li className={styles.listItem}> | ||
Your violation of any third-party right, including without limitation | ||
any copyright, property, or privacy right. | ||
</li> | ||
<li className={styles.listItem}> | ||
Any claim that your use of the Service caused damage to a third party. | ||
</li> | ||
</ul> | ||
<p className={styles.paragraph}> | ||
<h3>7. Modification of Terms</h3> | ||
</p> | ||
<p className={styles.paragraph}> | ||
We reserve the right to <strong>modify these Terms at any time</strong>. | ||
Any changes will be effective immediately upon posting the revised Terms | ||
on the DropIT website. Your continued use of the Service after the | ||
posting of the revised Terms constitutes your acceptance of the changes. | ||
</p> | ||
<p className={styles.paragraph}> | ||
<h3>8. Termination</h3> | ||
</p> | ||
<p className={styles.paragraph}> | ||
We reserve the right to{" "} | ||
<strong>terminate or suspend your access to the Service </strong> | ||
at any time, without prior notice or liability, for any reason | ||
whatsoever, including but not limited to a breach of these Terms. | ||
</p> | ||
<p className={styles.paragraph}> | ||
<h3>9. Governing Law</h3> | ||
</p> | ||
<p className={styles.paragraph}> | ||
These Terms shall be governed and construed in accordance with the laws | ||
of <strong>India</strong>, without regard to its conflict of law | ||
provisions. | ||
</p> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.footer { | ||
width: 100%; | ||
background: #ffffff90; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: column; | ||
color: #fff; | ||
font-size: 14px; | ||
font-weight: bold; | ||
padding: 10px; | ||
.text { | ||
padding: 10px; | ||
text-align: center; | ||
.link { | ||
text-decoration: underline; | ||
font-weight: bold; | ||
color: inherit; | ||
} | ||
} | ||
.links { | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
gap: 10px; | ||
.link { | ||
font-size: 12px; | ||
text-decoration: underline; | ||
color: #00000090; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import styles from "./Footer.module.css"; | ||
|
||
export default function Footer() { | ||
return ( | ||
<footer className={styles.footer}> | ||
<p className={`${styles.text} rainbow-text`}> | ||
Made with ♡ by{" "} | ||
<a | ||
className={styles.link} | ||
href="https://aswanthvc.me/?ref=dropit" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
Aswanth V C | ||
</a> | ||
</p> | ||
<div className={styles.links}> | ||
<a href="/terms-and-conditions" className={styles.link}> | ||
Terms and Conditions | ||
</a> | ||
</div> | ||
</footer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.popup { | ||
width: 100%; | ||
height: auto; | ||
padding: 10px 100px; | ||
background: #ffffffa0; | ||
z-index: 100; | ||
position: fixed; | ||
bottom: 0; | ||
left: 0; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
box-shadow: 0px 0px 10px 0px #1d6f4ca0; | ||
&.hidden { | ||
display: none; | ||
} | ||
.content { | ||
font-size: 14px; | ||
.link { | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
.closeButton { | ||
background: #9dffea; | ||
padding: 10px 20px; | ||
border: none; | ||
border-radius: 5px; | ||
font-size: 12px; | ||
cursor: pointer; | ||
color: #000; | ||
font-weight: bold; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 728px) { | ||
.popup { | ||
padding: 10px 20px; | ||
.content { | ||
font-size: 12px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { useEffect, useState } from "react"; | ||
import styles from "./TermsPopup.module.css"; | ||
|
||
export default function TermsPopup() { | ||
useEffect(() => { | ||
if (localStorage.getItem("termsAccepted") == "1") { | ||
setAccepted(true); | ||
} | ||
}, []); | ||
const [accepted, setAccepted] = useState(false); | ||
const acceptTerms = () => { | ||
localStorage.setItem("termsAccepted", "1"); | ||
setAccepted(true); | ||
}; | ||
return ( | ||
<div className={styles.popup + " " + (accepted ? styles.hidden : "")}> | ||
<p className={styles.content}> | ||
Welcome to DropIT! By continuing to use our service, you agree to our{" "} | ||
<a className={styles.link} href="/terms-and-conditions" target="_blank"> | ||
Terms and Conditions | ||
</a> | ||
. | ||
</p> | ||
<button onClick={acceptTerms} className={styles.closeButton}> | ||
Understood | ||
</button> | ||
</div> | ||
); | ||
} |