-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaq.html
More file actions
138 lines (120 loc) · 3.89 KB
/
Copy pathfaq.html
File metadata and controls
138 lines (120 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ Page</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@500&family=Konkhmer+Sleokchher&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
height: 100%;
width: 100%;
background: #FFFFFF;
font-family: 'Inter', sans-serif;
}
.screen {
position: relative;
min-height: 100vh;
padding: 20px;
}
.home-button {
position: absolute;
top: 20px;
right: 20px;
background: #000;
border-radius: 50px;
padding: 12px 30px;
display: flex;
align-items: center;
justify-content: center;
}
.home-button a {
font-family: 'Konkhmer Sleokchher', sans-serif;
font-size: 5vw;
color: #FFF;
text-decoration: none;
}
.faq-title {
text-align: center;
font-size: 10vw;
font-weight: 500;
color: #000;
margin-top: 80px;
}
.faq-container {
width: 90%;
max-width: 1000px;
margin: 30px auto;
}
.faq-item {
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
}
.question {
font-family: 'Konkhmer Sleokchher', sans-serif;
font-size: 6vw;
font-weight: 400;
color: #000;
padding: 15px;
cursor: pointer;
}
.answer {
font-family: 'Konkhmer Sleokchher', sans-serif;
font-size: 4.5vw;
font-weight: 400;
color: #000;
padding: 0 15px 15px;
display: none;
}
/* Media queries for larger screens */
@media (min-width: 768px) {
.home-button a {
font-size: 32px;
}
.faq-title {
font-size: 64px;
}
.question {
font-size: 40px;
}
.answer {
font-size: 24px;
}
}
</style>
<link rel="stylesheet" href="styling.css">
<script>
function toggleAnswer(element) {
let answer = element.nextElementSibling;
answer.style.display = answer.style.display === 'block' ? 'none' : 'block';
}
</script>
</head>
<body>
<div class="screen">
<div class="home-button">
<a href="home.html">Home</a>
</div>
<div class="faq-title">Frequently Asked Questions</div>
<div class="faq-container">
<div class="faq-item">
<div class="question" onclick="toggleAnswer(this)">How do I interact with the Graph</div>
<div class="answer">Just like any other application! Pinch to zoom, click to see more information, and drag to move nodes around!</div>
</div>
<div class="faq-item">
<div class="question" onclick="toggleAnswer(this)">What do I do if the page doesn’t behave properly</div>
<div class="answer">Hiccups happen! For issues related to nodes stacking or a frozen screen, refresh the application.</div>
</div>
<div class="faq-item">
<div class="question" onclick="toggleAnswer(this)">Why choose CourseGraph</div>
<div class="answer">We pride ourselves on keeping our application easy to use and understand, keeping students at the forefront of our minds when designing CourseGraph.</div>
</div>
</div>
</div>
</body>
</html>