diff --git a/src/lib/IO/Button.svelte b/src/lib/IO/Button.svelte index 0b0e028..b15656b 100644 --- a/src/lib/IO/Button.svelte +++ b/src/lib/IO/Button.svelte @@ -1,23 +1,49 @@ - diff --git a/src/lib/IO/ButtonType.ts b/src/lib/IO/ButtonType.ts new file mode 100644 index 0000000..36a399e --- /dev/null +++ b/src/lib/IO/ButtonType.ts @@ -0,0 +1,5 @@ +export enum ButtonType { + Primary, + Secondary, + Accent +} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e897c21..66cfbfb 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -3,6 +3,7 @@ import NewsCard from '$lib/posts/NewsCard.svelte'; import ShowcaseNewsCard from '$lib/posts/ShowcaseNewsCard.svelte'; import Button from '$lib/IO/Button.svelte'; + import { ButtonType } from '$lib/IO/ButtonType.ts'; export let data; // <- contains post data @@ -35,8 +36,15 @@ {/each} - @@ -46,8 +54,10 @@ flex-direction: column; align-items: center; - width: 60%; - max-width: 1200px; + transition-duration: 500ms; + transition-property: width; + width: 80%; + max-width: 1400px; margin-inline: auto; } @@ -72,8 +82,24 @@ gap: 20px; } - footer { - margin-left: auto; /* align right */ + #news-footer { + width: 100%; + display: flex; + + margin-top: 25px; + } + + .dummy { + width: 100%; + } + + #more-posts { + flex-grow: 1; + min-width: 10em; + } + + a { + white-space: nowrap; } .main-title { @@ -87,20 +113,31 @@ font-size: 9vw; /* Change if title changes */ } - h1 { + .main-title { + font-family: var(--title-font); color: var(--text1); } - {#if mobile} {/if} diff --git a/static/stylesheets/global.css b/static/stylesheets/global.css index 05d8ce1..0d193ec 100644 --- a/static/stylesheets/global.css +++ b/static/stylesheets/global.css @@ -7,7 +7,12 @@ } body { - font-family: 'CozetteVector'; - color: var(--text2); /* Default to secondary text color. */ + font-family: var(--main-font); + color: var(--text1); /* Default to primary text color. */ background-color: var(--background); } + +a, a:link a:visited { + color: var(--text1); + text-decoration: none; +}