design: update homepage design a little
This commit is contained in:
parent
8b9b1185a7
commit
1743c9cfd4
3 changed files with 60 additions and 15 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
import HomepageHeader from "./home/HomepageHeader.svelte";
|
import HomepageHeader from "./home/HomepageHeader.svelte";
|
||||||
|
|
||||||
let { data = { latestBlogPosts: [] } } = $props();
|
let { data = { latestBlogPosts: [] } } = $props();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
|
@ -13,5 +12,13 @@
|
||||||
<Navbar />
|
<Navbar />
|
||||||
|
|
||||||
<main class="home">
|
<main class="home">
|
||||||
<HomepageHeader latestBlogPosts={data.latestBlogPosts} />
|
<HomepageHeader latestBlogPosts={data.latestBlogPosts} />
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.home {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
place-items: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,17 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="homepage-header">
|
<section class="homepage-header">
|
||||||
<h1 class="title">(Thomas) Wilson</h1>
|
<h1 class="title">Thomas Wilson-Cook</h1>
|
||||||
<p class="body">Hand-maker of things, notably software and clothes.</p>
|
<p class="body strapline">
|
||||||
<p class="body">My personal goal is to:</p>
|
I craft well-meaning things, like software, clothes, photographs, and words.
|
||||||
<blockquote class="mission-statement">
|
</p>
|
||||||
make things stronger which don't rely on exploitation, excessive waste,
|
<p class="body strapline">
|
||||||
or dishonesty; and to try and build a kinder, fairer world even when it's
|
I am trying to make things stronger which don't rely on exploitation,
|
||||||
hard.
|
excessive waste, or dishonesty; and to try and build a kinder, fairer world
|
||||||
</blockquote>
|
even when it's hard.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<hr />
|
||||||
<p class="body">
|
<p class="body">
|
||||||
I try to think and be curious, which is why I keep a <a href="/blog"
|
I try to think and be curious, which is why I keep a <a href="/blog"
|
||||||
>weblog</a
|
>weblog</a
|
||||||
|
|
@ -64,10 +67,12 @@
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.homepage-header {
|
.homepage-header {
|
||||||
font-family: monospace;
|
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
|
gap: 8px;
|
||||||
|
font-size: var(--font-size-md);
|
||||||
|
font-family: var(--font-family-serif);
|
||||||
|
max-width: 60ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
|
|
@ -76,14 +81,32 @@
|
||||||
p {
|
p {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
|
font-size: inherit;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 60ch;
|
max-width: 60ch;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mission-statement {
|
||||||
|
display: flex;
|
||||||
|
padding: 12px 34px;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: var(--font-size-lg);
|
||||||
|
max-width: 100%;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border: 0;
|
||||||
|
border-top: 1px solid white;
|
||||||
|
margin: 24px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
padding-bottom: 1.85rem;
|
padding-bottom: 1.85rem;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.body {
|
.body {
|
||||||
|
|
@ -91,6 +114,11 @@
|
||||||
line-height: 160%;
|
line-height: 160%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.body.strapline {
|
||||||
|
font-size: var(--font-size-lg);
|
||||||
|
line-height: 140%;
|
||||||
|
}
|
||||||
|
|
||||||
.latest-blog-posts {
|
.latest-blog-posts {
|
||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,16 @@
|
||||||
--btn-text-decoration: none;
|
--btn-text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 16px;
|
||||||
|
font-family: var(--font-family-sans);
|
||||||
|
line-height: var(--line-height-md);
|
||||||
|
color: var(--colour-scheme-text);
|
||||||
|
background-color: var(--colour-scheme-background, black);
|
||||||
|
transition: 0.3s ease;
|
||||||
|
transition-property: background-color, color;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: var(--font-family-sans);
|
font-family: var(--font-family-sans);
|
||||||
line-height: var(--line-height-md);
|
line-height: var(--line-height-md);
|
||||||
|
|
@ -103,7 +113,7 @@ body {
|
||||||
|
|
||||||
@container (width < 500px) {
|
@container (width < 500px) {
|
||||||
.thomaswilson-strapline p {
|
.thomaswilson-strapline p {
|
||||||
font-size: ;
|
font-size:;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -139,7 +149,7 @@ blockquote {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--colour-scheme-text);
|
color: var(--colour-scheme-text);
|
||||||
padding: 4px 0;
|
padding: 4px 0;
|
||||||
letter-spacing: -1px;
|
letter-spacing: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue