Skip to content

Commit 17dd0c7

Browse files
FAQ UI (#645)
* Updated Masthead Design * New * Added animation * Changed UI issue page * Added * UI changed of home page * Made text readable * Checking * Fixed Bugs * Added * Contact form addition * Contact form * Style change of our journey * FAQ ui change --------- Co-authored-by: Kritika Singh <kritikasingh6881@gmail.com>
1 parent 11494fa commit 17dd0c7

File tree

2 files changed

+121
-13
lines changed

2 files changed

+121
-13
lines changed

faq.css

Lines changed: 110 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,22 +172,96 @@ main {
172172
border-bottom: 3px solid #fdf0d5;
173173
}
174174

175+
.heading-faq h1{
176+
transform: translateY(-3vh);
177+
}
178+
179+
.question-paragraph{
180+
display: flex;
181+
align-items: center;
182+
justify-content: center;
183+
flex-direction: column;
184+
}
185+
186+
.para{
187+
background: linear-gradient(45deg, teal, #d24848);
188+
-webkit-background-clip: text;
189+
-webkit-text-fill-color: transparent;
190+
font-weight: bold;
191+
text-align: center;
192+
padding: 0.8rem;
193+
margin: 4vh;
194+
font-style: italic;
195+
font-size: 1.25rem;
196+
}
197+
198+
.question-paragraph i {
199+
color: #8b0000;
200+
font-weight: 600;
201+
font-size: 7vh;
202+
margin-bottom: 3vh;
203+
display: inline-block;
204+
animation: bounceIcon 1.2s ease-in-out infinite;
205+
}
206+
207+
@keyframes bounceIcon {
208+
0%, 100% {
209+
transform: translateY(0);
210+
}
211+
50% {
212+
transform: translateY(-8px);
213+
}
214+
}
215+
216+
.faq-container {
217+
display: flex;
218+
flex-direction: column;
219+
align-items: center;
220+
gap: 1rem;
221+
padding: 1rem;
222+
}
223+
224+
175225
.faq {
226+
position: relative;
227+
width: 100%;
228+
max-width: 900px;
229+
box-sizing: border-box;
176230
color: #780000;
177-
border-left: 4px solid #780000;
178-
background: #fff;
179-
border-top-right-radius: 1rem;
180-
border-bottom-right-radius: 1rem;
181231
margin: 1rem auto;
182-
max-width: 900px;
183-
padding: 1rem;
232+
padding: 1.5rem;
233+
background: rgb(248, 246, 246);
234+
border-radius: 1rem;
235+
border-left: 4px solid #780000;
184236
box-shadow: 0 4px 8px rgba(120, 0, 0, 0.2);
185237
transition: transform 0.2s ease, box-shadow 0.2s ease;
238+
overflow: hidden;
239+
z-index: 1;
186240
}
241+
242+
.faq::before {
243+
content: "";
244+
position: absolute;
245+
top: 0;
246+
left: 0;
247+
height: 4px;
248+
width: 0%;
249+
background: linear-gradient(to right, #ff4d4d, #780000);
250+
transition: width 0.9s cubic-bezier(0.25, 1, 0.5, 1);
251+
z-index: 2;
252+
}
253+
254+
/* On hover, animate the border across X-axis */
255+
.faq:hover::before {
256+
width: 100%;
257+
}
258+
187259
.faq:hover {
188-
transform: translateY(-3px);
260+
transform: translateX(-3px);
189261
box-shadow: 0 6px 12px rgba(120, 0, 0, 0.3);
190262
}
263+
264+
191265
.faq summary {
192266
cursor: pointer;
193267
font-size: 1.1rem;
@@ -207,7 +281,7 @@ a {
207281
display: flex;
208282
flex-direction: column;
209283
align-items: center;
210-
background-color: #780000;
284+
background:linear-gradient(-135deg,rgb(216, 94, 94) , rgb(147, 101, 132));
211285
color: #fdf0d5;
212286
width: 90%;
213287
max-width: 25rem;
@@ -218,10 +292,30 @@ a {
218292
text-align: center;
219293
}
220294
.ask h3 {
295+
color: #802d2d;
221296
font-size: 1.5rem;
222297
}
298+
299+
.ask:hover {
300+
transform: translateY(-5px);
301+
box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
302+
transition: all 0.9s ease-in-out;
303+
}
304+
305+
223306
.mail {
224-
background-color: #fdf0d5;
307+
background: linear-gradient(45deg, white, rgb(197, 195, 195));
308+
border: none;
309+
border-radius: 2rem;
310+
padding: 0.75rem 1.5rem;
311+
font-weight: bold;
312+
color: #333;
313+
box-shadow:
314+
inset 0 2px 4px rgba(255, 255, 255, 0.6), /* inner shine */
315+
inset 0 -2px 4px rgba(0, 0, 0, 0.1), /* inner depth */
316+
0 4px 8px rgba(0, 0, 0, 0.3); /* outer shadow */
317+
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
318+
transition: all 0.3s ease-in-out;
225319
width: 80%;
226320
border-radius: 1.5rem;
227321
text-align: center;
@@ -230,8 +324,14 @@ a {
230324
white-space: nowrap;
231325
}
232326
.mail a {
233-
color: #780000;
327+
color: #802d2d;
234328
font-weight: bold;
329+
font-size: small;
330+
}
331+
332+
.mail:hover{
333+
334+
transition: all 0.8s ease-in-out;
235335
}
236336

237337
.seperator {

faq.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,14 @@
189189
<div class="heading-faq">
190190
<h1>Frequently Asked Questions</h1>
191191
</div>
192-
192+
193+
<div class="question-paragraph">
194+
<span class="para"><p>Do you have question in mind ?</p>
195+
<p>Know everything about The Cawnpore magazines</p></span>
196+
<i class="fa-solid fa-circle-question"></i>
197+
</div>
198+
199+
<div class="faq-container">
193200

194201
<div class="faq">
195202
<details>
@@ -234,7 +241,6 @@ <h1>Frequently Asked Questions</h1>
234241
</details>
235242
</div>
236243

237-
238244
<div class="faq">
239245
<details>
240246
<summary><strong>Q: How to get involved as a developer or designer?</strong></summary>
@@ -249,13 +255,15 @@ <h1>Frequently Asked Questions</h1>
249255
</details>
250256
</div>
251257
</div>
258+
</div>
259+
252260

253261

254262
<div class="ask">
255263
<h3>Got more questions?</h3>
256264
<span>Drop us an email at </span>
257265
<div class="mail">
258-
<a href="mailto:thecawnporemagofficial@gmail.com">@thecawnporemagofficial@gmail.com</a>
266+
<a href="mailto:thecawnporemagofficial@gmail.com"><i class="fa-solid fa-envelope">&nbsp;</i>thecawnporemagofficial@gmail.com</a>
259267
</div>
260268
<p>— we're here to help!</p>
261269
</div>

0 commit comments

Comments
 (0)