Fix spacing

This commit is contained in:
Justin Edmund 2024-11-18 02:26:50 -08:00
parent 3d58dd5b46
commit 9076a42cea
3 changed files with 25 additions and 5 deletions

View file

@ -60,6 +60,7 @@
gap: $unit-2x; gap: $unit-2x;
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0;
} }
@include breakpoint('phone') { @include breakpoint('phone') {

View file

@ -52,6 +52,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
gap: $unit-2x;
} }
} }
</style> </style>

View file

@ -6,7 +6,6 @@
import Page from '$components/Page.svelte' import Page from '$components/Page.svelte'
import ProjectList from '$components/ProjectList.svelte' import ProjectList from '$components/ProjectList.svelte'
import RecentAlbums from '$components/RecentAlbums.svelte' import RecentAlbums from '$components/RecentAlbums.svelte'
import Squiggly from '$components/Squiggly.svelte'
import type { PageData } from './$types' import type { PageData } from './$types'
@ -20,7 +19,7 @@
<h1 aria-label="@jedmund"> <h1 aria-label="@jedmund">
<Avatar /> <Avatar />
</h1> </h1>
<Squiggly text="@jedmund is a software designer" /> <h2 class="subheader">@jedmund is a software designer</h2>
</svelte:fragment> </svelte:fragment>
<ProjectList /> <ProjectList />
@ -28,7 +27,7 @@
<Page> <Page>
<svelte:fragment slot="header"> <svelte:fragment slot="header">
<Squiggly text="A little about me" /> <h2>A little about me</h2>
</svelte:fragment> </svelte:fragment>
<section class="bio"> <section class="bio">
@ -53,14 +52,14 @@
</Page> </Page>
<Page> <Page>
<svelte:fragment slot="header"> <svelte:fragment slot="header">
<Squiggly text="Notable mentions" /> <h2>Notable mentions</h2>
</svelte:fragment> </svelte:fragment>
<MentionList /> <MentionList />
</Page> </Page>
<Page noHorizontalPadding={true}> <Page noHorizontalPadding={true}>
<svelte:fragment slot="header"> <svelte:fragment slot="header">
<Squiggly text="Now playing" /> <h2>Now playing</h2>
</svelte:fragment> </svelte:fragment>
<RecentAlbums {albums} /> <RecentAlbums {albums} />
@ -104,10 +103,29 @@
margin-bottom: $unit-2x; margin-bottom: $unit-2x;
} }
h1,
h2 {
margin: 0;
}
h2 {
color: $accent-color;
font-size: 1.2rem;
font-weight: 500;
&.subheader {
margin-bottom: $unit-2x;
}
}
.bio { .bio {
font-size: 1rem; font-size: 1rem;
line-height: 1.3; line-height: 1.3;
p:first-child {
margin-top: 0;
}
p:last-child { p:last-child {
margin-bottom: 0; margin-bottom: 0;
} }