Final fixes

This commit is contained in:
Aditya Thakral 2021-05-24 01:57:47 -04:00
parent 297b310e33
commit e2f026811a
3 changed files with 16 additions and 16 deletions

View File

@ -1,4 +1,4 @@
.eventCard { .card {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
max-width: 1000px; max-width: 1000px;
@ -6,21 +6,21 @@
padding: 24px; padding: 24px;
} }
.eventCard aside { .card aside {
flex: 0 0 144px; flex: 0 0 144px;
margin-right: 24px; margin-right: 24px;
} }
.eventCard aside img { .card aside img {
width: 100%; width: 100%;
margin-bottom: 16px; margin-bottom: 16px;
} }
.eventCard aside button { .registerButton {
width: 100%; width: 100%;
} }
.eventCardContent > h2 { .content > h2 {
font-size: 24px; font-size: 24px;
font-weight: 700; font-weight: 700;
font-style: normal; font-style: normal;
@ -28,9 +28,9 @@
margin-bottom: 0; margin-bottom: 0;
} }
.eventCardContent, .content,
.eventCardContent > h3 { .content > h3 {
color: var(--purple-1); color: var(--purple-2);
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
font-style: normal; font-style: normal;
@ -38,6 +38,6 @@
margin-bottom: 14px; margin-bottom: 14px;
} }
.eventCardContent { .content {
margin-bottom: 0; margin-bottom: 0;
} }

View File

@ -3,7 +3,6 @@ import styles from "./EventCard.module.css";
import { EventSetting } from "./EventSetting"; import { EventSetting } from "./EventSetting";
import { Image } from "./Image"; import { Image } from "./Image";
// import Button from ".Button"
interface EventCardProps { interface EventCardProps {
name: string; name: string;
@ -26,21 +25,21 @@ export function EventCard({
children, children,
}: EventCardProps) { }: EventCardProps) {
return ( return (
<section className={styles.eventCard}> <article className={styles.card}>
<aside> <aside>
<Image alt={name} src={poster} /> <Image alt={name} src={poster} />
{/*<Button />*/} {/* TODO: use the <Button /> component */}
<button> <button className={styles.registerButton}>
<a href={registerLink}>Register</a> <a href={registerLink}>Register</a>
</button> </button>
</aside> </aside>
<article className={styles.eventCardContent}> <section className={styles.content}>
<h2>{name}</h2> <h2>{name}</h2>
<h3> <h3>
<EventSetting date={date} online={online} location={location} /> <EventSetting date={date} online={online} location={location} />
</h3> </h3>
<div>{children}</div> <div>{children}</div>
</article> </section>
</section> </article>
); );
} }

View File

@ -42,6 +42,7 @@ The `<EventCard />` component is used on the events page, and uses the
<EventCardDemo /> <EventCardDemo />
--- ---
## `<TeamMember />` ## `<TeamMember />`
The `<TeamMember />` component has an image of the team member along with their name and role. The `<TeamMember />` component has an image of the team member along with their name and role.