Skip to content

Commit 9afb42f

Browse files
sjmiller7Skye Gallup
andauthored
BrickHack 8 Site - Contact & Footer (#1256)
* contact section * fixes * newline eof Co-authored-by: Skye Gallup <[email protected]> * fixing aspect ratio code Co-authored-by: Skye Gallup <[email protected]>
1 parent 9ca2f56 commit 9afb42f

File tree

3 files changed

+137
-75
lines changed

3 files changed

+137
-75
lines changed

assets/bh8/contact-monitor.svg

Lines changed: 5 additions & 0 deletions
Loading

index.html

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -191,34 +191,40 @@ <h2>Frequently Asked Questions</h2>
191191
</section>
192192

193193
<!-- Contact -->
194-
<footer>
195-
<div id="footer-content">
196-
<div>
197-
<h2>contact us</h2>
198-
<p><a href="mailto:[email protected]">[email protected]</a></p>
199-
</div>
200-
<div>
201-
<a href="https://twitter.com/coderit" target="_blank">
194+
<section id="contact">
195+
<div id="contact-content">
196+
<h2>Contact</h2>
197+
<p>Feel free to let us know of any questions, comments, and/or concerns at <a href="mailto:[email protected]">[email protected]</a></p>
198+
<p>Interested in joining our team? <a href="./club.html">Check out our club</a></p>
199+
</div>
200+
<div id="contact-socials">
201+
<p>Connect with us:</p>
202+
<div id="social-icons">
203+
<a href="https://twitter.com/brickhackrit" target="_blank">
202204
<i class="fab fa-twitter"></i>
203205
</a>
204206
<a href="https://www.facebook.com/brickhackrit" target="_blank">
205207
<i class="fab fa-facebook"></i>
206208
</a>
207-
<a href="https://www.instagram.com/code.rit/" target="_blank">
209+
<a href="https://www.instagram.com/brickhack/" target="_blank">
208210
<i class="fab fa-instagram"></i>
209211
</a>
210-
<a href="https://github.com/codeRIT" target="_blank">
211-
<i class="fab fa-github"></i>
212+
<a href="https://snapchat.com/add/brickhack" target="_blank">
213+
<i class="fab fa-snapchat"></i>
212214
</a>
213215
</div>
214-
<div>
215-
<p>
216-
<a href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf">code of conduct</a>
217-
|
218-
<a href="https://www.rit.edu/academicaffairs/policiesmanual/c070" target="_blank">privacy policy</a>
219-
</p>
220-
<p>copyright &#169; 2021 BrickHack Club</p>
221-
</div>
216+
</div>
217+
</section>
218+
219+
<!-- Footer -->
220+
<footer>
221+
<div id="footer-left">
222+
<p><a href="mailto:[email protected]">[email protected]</a></p>
223+
</div>
224+
<div id="footer-right">
225+
<p><a href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf" target="_blank">MLH Code of Conduct</a></p>
226+
<p><a href="https://www.rit.edu/academicaffairs/policiesmanual/c070" target="_blank">Privacy Policy</a></p>
227+
<p>Copyright &copy; 2021 BrickHack Club</p>
222228
</div>
223229
</footer>
224230

sass/index.scss

Lines changed: 107 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ $light-blue: #44C6E6;
77
$off-white: #F6F8FA;
88
$darker-blue: #081646;
99
$orange: #FF9C4A;
10+
$grey: #D0D9E2;
11+
1012
// Typography
1113
:root {
1214
--body-font-size: 1.3rem;
@@ -404,59 +406,81 @@ section {
404406

405407

406408
// Contact
407-
footer {
408-
width: 100%;
409-
height: 300px;
410-
left: 0;
411-
right: 0;
412-
bottom: 0;
413-
margin-top: 20px;
414-
background-image: url("../assets/footer/footer.svg");
415-
background-repeat: repeat no-repeat;
416-
background-position: bottom center;
417-
background-size: auto 300px;
418-
overflow-x: clip;
419-
420-
#footer-content {
409+
#contact {
410+
padding-bottom: 0;
411+
display: flex;
412+
justify-content: space-between;
413+
flex-direction: row;
414+
min-height: auto;
415+
416+
#contact-content {
417+
width: 50%;
418+
padding-right: 20px;
419+
}
420+
421+
#contact-socials {
422+
align-self: flex-end;
423+
background-image: url("../assets/bh8/contact-monitor.svg");
424+
width: 430px;
425+
max-width: 50%;
426+
height: 330px;
427+
margin-bottom: -2px; // Gets rid of gap between svg and footer
428+
background-size: contain;
429+
background-repeat: no-repeat;
430+
background-position: center bottom;
431+
padding: 1rem 2.5rem 5rem;
421432
display: flex;
422433
flex-direction: column;
423-
justify-content: space-around;
424-
height: 235px;
425-
margin: auto;
426-
padding: 15px;
427-
text-align: center;
434+
justify-content: center;
435+
align-items: center;
428436

429-
h2 {
430-
margin-top: -5px;
431-
margin-bottom: -5px;
432-
}
437+
#social-icons {
438+
display: flex;
439+
flex-wrap: wrap;
433440

434-
p {
435-
font-size: 1em;
436-
}
441+
a {
442+
margin: 1rem;
443+
444+
i {
445+
font-size: 3rem;
446+
color: $blue;
437447

438-
// FA brand icons
439-
i {
440-
font-size: 3em;
441-
padding: 0px 5px;
442-
color: $blue;
448+
&:hover {
449+
color: $dark-blue;
450+
}
451+
}
452+
}
443453
}
454+
}
455+
}
444456

445-
a {
446-
display: inline-block;
447-
transition: 0.2s;
448457

449-
i {
450-
transition: 0.2s;
451-
}
458+
// Footer
459+
footer {
460+
background-color: $grey;
461+
padding: 2rem 5rem;
462+
display: flex;
463+
justify-content: space-between;
464+
465+
#footer-left {
466+
padding-right: 1rem;
467+
}
468+
469+
#footer-right {
470+
display: flex;
471+
justify-content: space-between;
452472

453-
&:hover i {
454-
transform: translateY(-4px);
473+
p {
474+
padding-bottom: 0;
475+
476+
&:not(p:last-of-type) {
477+
padding-right: 1rem;
455478
}
456479
}
457480
}
458481
}
459482

483+
460484
@media screen and (max-width: 1500px) {
461485
// FAQ
462486
#faq {
@@ -497,6 +521,16 @@ footer {
497521
#about #about-content #about-buttons {
498522
width: 100%;
499523
}
524+
525+
// Footer
526+
footer #footer-right {
527+
flex-direction: column;
528+
text-align: right;
529+
530+
p:not(p:last-of-type) {
531+
padding-right: 0;
532+
}
533+
}
500534
}
501535

502536
@media screen and (max-width: 955px) {
@@ -664,6 +698,24 @@ footer {
664698
}
665699
}
666700
}
701+
702+
// Contact
703+
#contact {
704+
flex-direction: column;
705+
706+
#contact-content {
707+
width: 100%;
708+
padding-right: 0px;
709+
}
710+
711+
#contact-socials {
712+
margin: 2rem auto -2px;
713+
max-width: 75%;
714+
width: 75%;
715+
height: calc((100vw - 7rem) * 0.56); // should be the same as 75% of the current width
716+
// Essentially: (100vw - section padding to get 100% width) * 0.75 to get the 75% width * 0.75 for 75% of 75% width
717+
}
718+
}
667719
}
668720

669721
@media screen and (max-width: 650px) {
@@ -676,24 +728,23 @@ footer {
676728
}
677729
}
678730

679-
footer {
680-
height: 200px;
681-
background-size: auto 200px;
682-
683-
#footer-content {
684-
height: 157px;
685-
686-
h2 {
687-
font-size: 1.2em;
688-
}
731+
// Contact
732+
#contact #contact-socials {
733+
max-width: 100%;
734+
width: 100%;
735+
justify-content: flex-start;
736+
padding: 0;
737+
margin: 2rem 0;
738+
background-image: none;
739+
height: auto;
740+
}
689741

690-
p {
691-
font-size: 0.8em;
692-
}
742+
// Footer
743+
footer {
744+
flex-direction: column;
693745

694-
i {
695-
font-size: 2em;
696-
}
746+
#footer-right {
747+
text-align: left;
697748
}
698749
}
699-
}
750+
}

0 commit comments

Comments
 (0)