Skip to content

Commit

Permalink
Merge pull request #626 from Jasleen1210/faq
Browse files Browse the repository at this point in the history
Faq enhancement
  • Loading branch information
aditya-bhaumik authored Aug 10, 2024
2 parents 196b55e + cc1b5a3 commit 04f6a61
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 38 deletions.
41 changes: 35 additions & 6 deletions css/faq.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,37 +83,66 @@ body {
background-color: #5e0b0b;
}

.arrow {
transition: transform 0.2s;
}

.rotate {
transform: rotate(180deg);
}
.faqBox {
background: #1c1c1c;
background: #180410f2;
border-radius: 10px;
margin: 20px;
padding: 20px;
transition: background 0.3s;
border: 1px solid #ddd;
margin: 10px 0;
padding: 10px;
border-radius: 5px;
}

.faqBox:hover {
background: #292929;
box-shadow: 2px 2px 12px 0 #f09819;
background: #2e202087;
}
.light-mode .faqBox{
background: rgba(156, 102, 110, 0);
}
.light-mode .faqBox:hover{
border-right: 2px orange ;
box-shadow: 2px 2px 12px 0 #f09819;
background: #e0dfdff4;
}

.faqBox .question {
font-size: 24px;
font-size: 1.3rem;
font-weight: bold;
margin-bottom: 10px;
color: #f09819;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}
.faqBox .question:hover {
color: #f09819;
}

.faqBox .answer {
font-size: 18px;
line-height: 1.5;
color: #ddd;
display: none;
padding: 10px 0;
}
.light-mode .faqBox .answer{
color: rgb(32, 30, 30);
}

.footer {
text-align: center;
padding: 20px;
position: relative;
bottom: 0;
width: 100%;
margin-top: 30px;
}

Expand Down
34 changes: 2 additions & 32 deletions pages/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,7 @@
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<style>
.faqBox {
border: 1px solid #ddd;
margin: 10px 0;
padding: 10px;
border-radius: 5px;
box-shadow: 7px 7px 20px 0 #f09819;
}

.question {
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}

.question:hover {
color: #f09819;
}

.answer {
display: none;
padding: 10px 0;
}

.arrow {
transition: transform 0.2s;
}

.rotate {
transform: rotate(180deg);
}


</style>
<style>
Expand Down Expand Up @@ -206,7 +176,7 @@
<a href="../index.html" class="back-button" aria-label="Back to Home">
<img src="../assets/images/BackToHome Btn.png" style="width: 70px; height: 70px;" class="back" alt="Back to Home Button">
</a>
<h1 id="changingHeading" style="font-family: Arial, sans-serif; font-size: 40px; color: #f09819; display: block;">
<h1 id="changingHeading" style="font-family: Arial, sans-serif; font-size: 40px; color: #f09819; display: block; margin: 1rem auto;">
FAQ
</h1>

Expand Down

0 comments on commit 04f6a61

Please sign in to comment.