File tree Expand file tree Collapse file tree 5 files changed +134
-127
lines changed
Expand file tree Collapse file tree 5 files changed +134
-127
lines changed Original file line number Diff line number Diff line change @@ -1414,7 +1414,118 @@ body.nav-active {
14141414 letter-spacing : var (--letterSpacing-3 );
14151415}
14161416
1417+ /*-----------------------------------*\
1418+ #FAQ SECTION
1419+ \*-----------------------------------*/
1420+
1421+ .faqs {
1422+ text-align : center;
1423+ background : linear-gradient (45deg , # 333, # 000 );
1424+ border-radius : 10px ;
1425+ font-family : 'Forum' , cursive;
1426+ color : # d6d3ce ;
1427+ border-bottom : 1px solid # 555 ;
1428+ }
1429+
1430+ .faqs h1 {
1431+ color : # c49d5b ;
1432+ padding-top : 4% ;
1433+ font-size : 3.1rem ;
1434+ margin-bottom : 15px ;
1435+ font-weight : bold;
1436+ text-transform : uppercase;
1437+ letter-spacing : 2px ;
1438+ }
1439+
1440+ .faqs p {
1441+ font-size : 20px ;
1442+ max-width : 650px ;
1443+ margin : 0 auto;
1444+ line-height : 1 ;
1445+ }
14171446
1447+ /* FAQ Section Styling */
1448+ .faq-section {
1449+ max-width : 800px ;
1450+ margin : 50px auto;
1451+ padding : 20px ;
1452+ background-color : # 111 ;
1453+ border-radius : 10px ;
1454+ box-shadow : 0 10px 30px rgba (0 , 0 , 0 , 0.9 );
1455+ }
1456+
1457+ .faq {
1458+ margin-bottom : 20px ;
1459+ border-bottom : 1px solid # 333 ;
1460+ }
1461+
1462+ .faq : last-child {
1463+ border-bottom : none;
1464+ }
1465+
1466+ .faq-question {
1467+ font-size : 2rem ;
1468+ font-weight : bold;
1469+ cursor : pointer;
1470+ margin : 0 ;
1471+ padding : 20px ;
1472+ background-color : # 222 ;
1473+ border-radius : 5px ;
1474+ transition : all 0.3s ease;
1475+ color : # bda372 ;
1476+ }
1477+
1478+ .faq-question : hover {
1479+ background-color : # cf9742ef ;
1480+ color : # faf7f3 ;
1481+ }
1482+
1483+ .faq-answer {
1484+ display : none;
1485+ padding : 15px ;
1486+ font-size : 1rem ;
1487+ line-height : 1.8 ;
1488+ color : # ddd ;
1489+ background-color : # 1b1b1b ;
1490+ border-radius : 5px ;
1491+ }
1492+
1493+ .contact-link-container p {
1494+ display : inline-flex;
1495+ font-size : 2rem ;
1496+ color : # f5f5f5 ;
1497+ }
1498+ .contact-link-container {
1499+ padding-bottom : 2% ;
1500+ }
1501+ .contact-link {
1502+ text-decoration : none;
1503+ color : # e9cd78 ;
1504+ font-weight : bold;
1505+ font-size : 1.6rem ;
1506+ transition : font-size 0.3s ease, color 0.3s ease;
1507+ margin : 2px 0px 0px 5px ;
1508+ }
1509+
1510+ .contact-link : hover {
1511+ color : # ffcc00 ;
1512+ font-size : 1.8rem ;
1513+ }
1514+
1515+ /* Responsive Styling */
1516+ @media (max-width : 768px ) {
1517+ .header h1 {
1518+ font-size : 2.5rem ;
1519+ }
1520+
1521+ .faq-question {
1522+ font-size : 1.2rem ;
1523+ }
1524+
1525+ .faq-answer {
1526+ font-size : 0.9rem ;
1527+ }
1528+ }
14181529
14191530
14201531
Original file line number Diff line number Diff line change @@ -232,4 +232,25 @@ const handleScroll = () => {
232232} ;
233233
234234window . addEventListener ( 'scroll' , handleScroll ) ;
235- handleScroll ( ) ;
235+ handleScroll ( ) ;
236+
237+ /**
238+ * FAQ SECTION
239+ */
240+
241+ const faqQuestions = document . querySelectorAll ( '.faq-question' ) ;
242+ faqQuestions . forEach ( question => {
243+ question . addEventListener ( 'click' , ( ) => {
244+ const answer = question . nextElementSibling ;
245+ if ( answer . style . display === 'block' ) {
246+ answer . style . display = 'none' ;
247+ } else {
248+ answer . style . display = 'block' ;
249+ }
250+ faqQuestions . forEach ( q => {
251+ if ( q !== question ) {
252+ q . nextElementSibling . style . display = 'none' ;
253+ }
254+ } ) ;
255+ } ) ;
256+ } ) ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3535 - custom css link
3636 -->
3737 < link rel ="stylesheet " href ="./assets/css/style.css ">
38- < link rel ="stylesheet " href ="faq.css ">
3938
4039 <!--
4140 - preload images
@@ -660,7 +659,7 @@ <h3 class="faq-question">Are there any hidden fees?</h3>
660659 </ div >
661660 </ div >
662661</ section >
663- < script src =" faq.js " > </ script >
662+
664663< div class ="contact-link-container ">
665664 < p > Couldn't find your answer?
666665 < a href ="contact.html " class ="contact-link "> Contact Us</ a > </ p >
You can’t perform that action at this time.
0 commit comments