forked from www/www-new
parent
7f88950f78
commit
4777b5f274
@ -0,0 +1,114 @@ |
||||
.card { |
||||
display: grid; |
||||
grid-template-columns: 126px auto; |
||||
grid-template-areas: |
||||
"picture name" |
||||
"picture role" |
||||
"picture description"; |
||||
column-gap: 2rem; |
||||
row-gap: 0; |
||||
justify-items: start; |
||||
align-items: start; |
||||
|
||||
max-width: 847px; |
||||
} |
||||
|
||||
.picture { |
||||
grid-area: picture; |
||||
justify-self: center; |
||||
|
||||
max-width: 126px; |
||||
max-height: 126px; |
||||
|
||||
clip-path: circle(50%); |
||||
} |
||||
|
||||
.image { |
||||
width: 100%; |
||||
} |
||||
|
||||
.name { |
||||
grid-area: name; |
||||
margin: 0; |
||||
|
||||
color: var(--blue-1); |
||||
font-size: 2.25rem; |
||||
line-height: 1.1; |
||||
font-weight: 700; |
||||
} |
||||
|
||||
.role { |
||||
grid-area: role; |
||||
margin: 0; |
||||
|
||||
color: var(--purple-2); |
||||
font-size: 1.5rem; |
||||
line-height: 1.7; |
||||
font-weight: 600; |
||||
} |
||||
|
||||
.description { |
||||
grid-area: description; |
||||
margin: 0; |
||||
|
||||
line-height: 1.875; |
||||
} |
||||
|
||||
@media screen and (max-width: 768px) { |
||||
.card { |
||||
grid-template-columns: 90px auto; |
||||
column-gap: 1.375rem; |
||||
|
||||
max-width: 460px; |
||||
} |
||||
|
||||
.picture { |
||||
max-width: 90px; |
||||
max-height: 90px; |
||||
} |
||||
|
||||
.name, |
||||
.role, |
||||
.description { |
||||
font-size: 1rem; |
||||
line-height: 1.5; |
||||
} |
||||
} |
||||
|
||||
/* TODO: Use the correct mobile styles from figma |
||||
@media only screen and (max-width: 375px) { |
||||
.card { |
||||
grid-template-columns: 70px auto; |
||||
grid-template-rows: auto calc(0.875rem * 1.5 + 0.75rem) auto; |
||||
grid-template-areas: |
||||
"picture name" |
||||
"picture role" |
||||
"description description"; |
||||
column-gap: 1.4375rem; |
||||
align-items: end; |
||||
|
||||
max-width: 190px; |
||||
} |
||||
|
||||
.picture { |
||||
max-width: 70px; |
||||
max-height: 70px; |
||||
} |
||||
|
||||
.name, |
||||
.role, |
||||
.description { |
||||
font-size: 0.875rem; |
||||
line-height: 1.5; |
||||
} |
||||
|
||||
.role { |
||||
margin-bottom: 0.75rem; |
||||
} |
||||
|
||||
.description { |
||||
justify-self: top; |
||||
margin-top: 0.75rem; |
||||
margin-left: 0.75rem; |
||||
} |
||||
} */ |
@ -0,0 +1,27 @@ |
||||
import React from "react"; |
||||
import { Image } from "./Image"; |
||||
import styles from "./TeamMemberCard.module.css"; |
||||
|
||||
interface TeamMemberCardProps { |
||||
name: string; |
||||
role: string; |
||||
image?: string; // path to image of person, relative to public directory
|
||||
children: React.ReactNode; |
||||
} |
||||
|
||||
export function TeamMemberCard(props: TeamMemberCardProps) { |
||||
return ( |
||||
<article className={styles.card}> |
||||
<div className={styles.picture}> |
||||
<Image |
||||
className={styles.image} |
||||
src={props.image ?? "/images/team-member-placeholder.svg"} |
||||
alt={`Picture of ${props.name}`} |
||||
/> |
||||
</div> |
||||
<h1 className={styles.name}>{props.name}</h1> |
||||
<h2 className={styles.role}>{props.role}</h2> |
||||
<div className={styles.description}>{props.children}</div> |
||||
</article> |
||||
); |
||||
} |
@ -0,0 +1,9 @@ |
||||
export const metadata = { |
||||
name: "Codey", |
||||
role: "Mascot", |
||||
image: "/images/playground/codeyHi.png" |
||||
} |
||||
|
||||
The one, the only, Codey! Codey is ecstatic to be your mascot for this term. |
||||
Codey loves programming and playing on their laptop. You can often find Codey |
||||
posing for event promo graphics, or chilling in the CSC discord. |
@ -1,5 +0,0 @@ |
||||
export const metadata = { |
||||
name: "Name Name", |
||||
role: "Role", |
||||
src: "images/playground/team-member.png" |
||||
} |
@ -0,0 +1,5 @@ |
||||
export const metadata = { |
||||
name: "Woof Woof", |
||||
role: "Doge", |
||||
image: "/images/playground/doge.jpg" |
||||
} |
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 174 B |
Loading…
Reference in new issue