update styling

This commit is contained in:
catherine-w 2021-07-22 17:59:27 -04:00
parent 4cab6446ec
commit 7a0e56858c
3 changed files with 10 additions and 19 deletions

View File

@ -1,11 +1,10 @@
.card {
display: flex;
flex-direction: row;
max-width: calc(800rem / 16);
box-sizing: border-box;
padding: calc(16rem / 16);
color: var(--purple-2);
font-size: calc(14rem / 16);
font-size: 1rem;
}
.card aside {
@ -27,8 +26,8 @@
}
.content h1 {
margin-block-start: 4px;
margin: 0;
margin-top: calc(4rem / 16);
font-size: calc(18rem / 16);
}

View File

@ -1,9 +1,7 @@
.card {
display: flex;
flex-direction: row;
max-width: calc(800rem / 16);
box-sizing: border-box;
padding: calc(24rem / 16);
}
.card aside {
@ -31,10 +29,6 @@
@media only screen and (max-width: calc(768rem / 16)) {
.card {
display: flex;
flex-direction: column;
max-width: calc(1200rem / 16);
box-sizing: border-box;
padding: calc(24rem / 16);
}
}

View File

@ -11,16 +11,14 @@ interface TechTalkProps {
export function TechTalkCard({ name, poster, children }: TechTalkProps) {
return (
<article>
<section className={styles.card}>
<aside>
{poster && <Image alt={name} src={poster} />}
{!poster && <div className={styles.spacer}></div>}
</aside>
<section className={styles.content}>
<h1>{name}</h1>
<div>{children}</div>
</section>
<article className={styles.card}>
<aside>
{poster && <Image alt={name} src={poster} />}
{!poster && <div className={styles.spacer}></div>}
</aside>
<section className={styles.content}>
<h1>{name}</h1>
<div>{children}</div>
</section>
</article>
);