Skip to content

Commit

Permalink
added FAQ section to landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
mrathgeber committed Dec 9, 2024
1 parent a8f9853 commit 2852178
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 5 deletions.
66 changes: 64 additions & 2 deletions client/app/components/LandingPage.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.container {
background-color: #FFFDD0;
width: 100%;
height: 450vh;
height: 530vh;
padding: 0;
margin: 0;
font-family: 'Inter', sans-serif;
Expand Down Expand Up @@ -185,13 +185,23 @@
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
max-width: 600px;
width: 100%;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reviewHover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.reviewAvatar {
width: 60px;
height: 60px;
border-radius: 50%;
}

.userName {
color: #27AE60;
}

.reviewContent {
text-align: left;
Expand Down Expand Up @@ -262,4 +272,56 @@
color: #555;
margin-top: 0.5em;
}


/* FAQ */

#faqContainer {
background-color: #FFF7E5;
text-align: center;
padding: 2em 1em;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
margin: 2em auto;
max-width: 800px;
}

#faqContainer h2 {
font-size: 28px;
color: #333;
margin-bottom: 1em;
font-weight: bold;
}

.faq {
display: flex;
flex-direction: column;
gap: 20px;
}

.question {
background-color: #FFFFFF;
border-radius: 12px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
padding: 1.5em;
text-align: left;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.question:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.question h4 {
font-size: 18px;
color: #27AE60;
margin: 0 0 0.5em;
font-weight: bold;
}

.question p {
font-size: 14px;
color: #555;
margin: 0;
line-height: 1.5;
}
21 changes: 18 additions & 3 deletions client/app/landing-page/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,27 +96,42 @@ export default function LandingPage() {
<div className={styles.review}>
<Image src={accountIcon} alt="User" className={styles.reviewAvatar} />
<div className={styles.reviewContent}>
<h4>Bob Rack</h4>
<h4 className={styles.userName}>Bob Rack</h4>
<p>"This app is amazing! I've learned so much about the insects in my tomato garden."</p>
</div>
</div>
<div className={styles.review}>
<Image src={accountIcon} alt="User" className={styles.reviewAvatar} />
<div className={styles.reviewContent}>
<h4>Jane Doe</h4>
<h4 className={styles.userName}>Jane Doe</h4>
<p>"A must-have for nature enthusiasts. It's accurate and so easy to use."</p>
</div>
</div>
<div className={styles.review}>
<Image src={accountIcon} alt="User" className={styles.reviewAvatar} />
<div className={styles.reviewContent}>
<h4>John Smith</h4>
<h4 className={styles.userName}>John Smith</h4>
<p>"Identifying plants has never been easier. Highly recommended!"</p>
</div>
</div>
</div>
</div>

<div id={styles.faqContainer}>
<h2>Frequently Asked Questions</h2>
<div className={styles.faq}>
<div className={styles.question}>
<h4>Is the app free?</h4>
<p>Yes! The app is completely free to use.</p>
</div>
<div className={styles.question}>
<h4>What types of species can I identify?</h4>
<p>You can identify various plants and insects from all over the world.</p>
</div>
</div>
</div>


<h3 id={styles.signUp} onClick={handleStartClick} style={{ width: '11vw', textAlign: 'center' }}>Start Scanning</h3>
</div>
</div>
Expand Down

0 comments on commit 2852178

Please sign in to comment.