Address CSS issues
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jared He 2021-08-22 13:46:23 -05:00
parent 733af0a28a
commit ff8f52e44d
2 changed files with 18 additions and 20 deletions

View File

@ -16,17 +16,19 @@ interface Props {
export default function Year(props: Props) {
return (
<div className={styles.main}>
<h2 className={styles.heading2}>
<h2>
Events Archive:<span className={styles.blue}>{` ${props.year}`}</span>
</h2>
<hr />
<div className={styles.links}>
<ul className={styles.list}>
{props.terms.map((term) => (
<Link key={term} href={`/events/${props.year}/${term}`}>
<li key={`${props.year}-${term}`}>
<Link href={`/events/${props.year}/${term}`}>
{`${term.charAt(0).toUpperCase()}${term.slice(1)}`}
</Link>
</li>
))}
</div>
</ul>
</div>
);
}

View File

@ -1,26 +1,22 @@
.main {
margin: auto;
margin-top: calc(112rem / 16);
margin-bottom: calc(224rem / 16);
width: calc(800rem / 16);
}
.heading2 {
font-weight: 700;
color: var(--primary-heading);
@media only screen and (max-width: calc(768rem / 16)) {
.main {
margin-top: calc(48rem / 16);
}
}
.blue {
color: var(--primary-accent)
}
.links {
display: flex;
flex-direction: column;
.list {
list-style: none;
padding: 0;
}
.links > * {
font-weight: 400;
font-size: 16px;
margin-top: calc(30rem/16);
.list > li {
line-height: 3;
}