Skip to content

Commit 02c858b

Browse files
committed
contact us retains position, duplicate tags change displays based on breakpoints
1 parent c94e497 commit 02c858b

2 files changed

Lines changed: 23 additions & 7 deletions

File tree

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ <h1>Frequently Asked Questions</h1>
244244
<p>Maybe next year we'll have AI run the event...</p>
245245
</div>
246246
</div>
247+
<p id="contact-desktop" class="contact">Don't see your question here? <a href="mailto:hello@coderit.org">Contact Us</a></p>
248+
247249
</div>
248250
<div id="faq-cards-right">
249251
<div class="card">
@@ -288,7 +290,7 @@ <h1>Frequently Asked Questions</h1>
288290
</div>
289291
</div>
290292
</div>
291-
<p id="contact">Don't see your question here? <a href="mailto:hello@coderit.org">Contact Us</a></p>
293+
<p id="contact-laptop" class="contact">Don't see your question here? <a href="mailto:hello@coderit.org">Contact Us</a></p>
292294
</div>
293295
</section>
294296
<section id="leadership">

sass/main.scss

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ nav {
468468
}
469469
}
470470
}
471-
#contact {
471+
.contact {
472472
a {
473473
text-transform: uppercase;
474474
color: $red;
@@ -478,6 +478,12 @@ nav {
478478
}
479479
}
480480
}
481+
#contact-desktop {
482+
display: block;
483+
}
484+
#contact-laptop {
485+
display: none;
486+
}
481487
}
482488
}
483489

@@ -728,13 +734,21 @@ footer {
728734
}
729735
}
730736

731-
#faq #faq-wrapper #faq-cards {
732-
flex-direction: column;
737+
#faq #faq-wrapper {
738+
#faq-cards {
739+
flex-direction: column;
740+
&-left, &-right {
741+
margin: 0;
742+
width: 100%;
743+
}
733744

734-
&-left, &-right {
735-
margin: 0;
736-
width: 100%;
745+
#contact-desktop {
746+
display: none;
747+
}
737748
}
749+
#contact-laptop {
750+
display: block;
751+
}
738752
}
739753

740754
#leadership #leaders {

0 commit comments

Comments
 (0)