File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ . socials {
2+ display : flex;
3+ flex-direction : column;
4+ align-items : flex-start;
5+ gap : 1.5rem ;
6+ margin : 2rem ;
7+ border-radius : var ( --radius-card ) ;
8+ background-color : var ( --color-secondary ) ;
9+ padding : clamp ( 1.5rem , 3vw , 2.5rem ) ;
10+ color : var ( --color-secondary-foreground ) ;
11+ }
12+
13+ . socials-copy {
14+ min-width : 0 ;
15+ }
16+
17+ . socials h2 {
18+ margin : 0 0 0.75rem ;
19+ }
20+
21+ . socials p {
22+ margin : 0 ;
23+ }
24+
25+ . socials-links {
26+ display : flex;
27+ flex-wrap : wrap;
28+ gap : 0.75rem ;
29+ min-width : 0 ;
30+ max-width : 100% ;
31+ }
32+
33+ . socials-link {
34+ display : inline-flex;
35+ justify-content : center;
36+ align-items : center;
37+ gap : 0.5rem ;
38+ box-sizing : border-box;
39+ max-width : 100% ;
40+ white-space : normal;
41+ }
42+
43+ . socials-link img ,
44+ . socials-link svg {
45+ display : block;
46+ flex-shrink : 0 ;
47+ width : 1.5rem ;
48+ height : 1.5rem ;
49+ }
50+
51+ @media ( min-width : 768px ) {
52+ . socials {
53+ flex-direction : row;
54+ justify-content : space-between;
55+ align-items : center;
56+ gap : 2rem ;
57+ }
58+
59+ . socials-copy {
60+ flex : 1 1 24rem ;
61+ }
62+
63+ . socials-links {
64+ flex : 1 1 34rem ;
65+ justify-content : flex-end;
66+ }
67+ }
Original file line number Diff line number Diff line change 1+ import Button from './Button' ;
2+ import './Socials.css' ;
3+
4+ export default function Socials ( ) {
5+ return (
6+ < section className = "socials" aria-labelledby = "socials-heading" >
7+ < div className = "socials-copy" >
8+ < h2 id = "socials-heading" > Stay in the loop</ h2 >
9+ < p > Weekly social times and event updates get posted on our socials.</ p >
10+ </ div >
11+ < div className = "socials-links" >
12+ < Button
13+ className = "socials-link"
14+ variant = "light"
15+ href = "https://www.instagram.com/umdcoffee/"
16+ >
17+ < img src = "/assets/icons/instagram-icon.svg" alt = "" width = { 24 } height = { 24 } />
18+ Instagram
19+ </ Button >
20+ < Button className = "socials-link" variant = "light" href = "#" >
21+ < svg
22+ viewBox = "0 0 24 24"
23+ fill = "none"
24+ stroke = "currentColor"
25+ strokeWidth = { 2 }
26+ strokeLinecap = "round"
27+ strokeLinejoin = "round"
28+ aria-hidden = "true"
29+ focusable = "false"
30+ >
31+ < path d = "M20 3H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10l5 3v-3h1a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z" />
32+ < path d = "m10 7-2 8m8-8-2 8M7 10h11M6 13h11" />
33+ </ svg >
34+ GroupMe
35+ </ Button >
36+ < Button className = "socials-link" variant = "light" href = "#" >
37+ < img src = "/assets/icons/discord-icon.svg" alt = "" width = { 24 } height = { 24 } />
38+ Discord
39+ </ Button >
40+ </ div >
41+ </ section >
42+ ) ;
43+ }
Original file line number Diff line number Diff line change 1+ import Socials from '../components/Socials' ;
2+
13export default function ForStudents ( ) {
24 return (
35 < >
46 < title > For Students | Coffee @ UMD</ title >
7+ < Socials />
58 </ >
69 ) ;
710}
You can’t perform that action at this time.
0 commit comments