Styles: Update styles of index page, add favicon, remove unused fonts
This commit is contained in:
parent
36a118c0b3
commit
de721e33b5
10 changed files with 30 additions and 13 deletions
|
|
@ -4,8 +4,7 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="description" content="" />
|
<meta name="description" content="" />
|
||||||
<link rel="stylesheet" href="/normalize.css" />
|
<link rel="stylesheet" href="/normalize.css" />
|
||||||
<link rel="stylesheet" href="/thomaswilson.css" />
|
<link rel="icon" href="%svelte.assets%/tw-favicon.ico" />
|
||||||
<link rel="icon" href="%svelte.assets%/favicon.png" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
%svelte.head%
|
%svelte.head%
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
padding: var(--spacing-base);
|
padding: var(--spacing-base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
5
src/routes/__layout.svelte
Normal file
5
src/routes/__layout.svelte
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<script>
|
||||||
|
import "../styles/thomaswilson.css";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<slot />
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<script lang="ts" context="module">
|
<script lang="ts" context="module">
|
||||||
import type { Load, LoadInput, LoadOutput } from '@sveltejs/kit';
|
import type { Load, LoadInput, LoadOutput } from '@sveltejs/kit';
|
||||||
import { differenceInCalendarDays, intlFormat } from 'date-fns';
|
import { differenceInCalendarDays, intlFormat } from 'date-fns';
|
||||||
|
export const prerender=true
|
||||||
|
|
||||||
type BlogPost = {
|
type BlogPost = {
|
||||||
filename: string;
|
filename: string;
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,12 @@
|
||||||
max-width: 65ch;
|
max-width: 65ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
article {
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.post-title {
|
.post-title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
<script context="module">
|
||||||
|
export const prerender = true
|
||||||
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { slide } from 'svelte/transition';
|
import { slide } from 'svelte/transition';
|
||||||
import Navbar from '../components/Navbar.svelte';
|
import Navbar from '../components/Navbar.svelte';
|
||||||
|
|
@ -126,27 +130,31 @@
|
||||||
padding: var(--link-padding);
|
padding: var(--link-padding);
|
||||||
transition: var(--link-transition);
|
transition: var(--link-transition);
|
||||||
border-radius: var(--link-border-radius);
|
border-radius: var(--link-border-radius);
|
||||||
background: #0256f2;
|
border: 1px solid #0256f2;
|
||||||
color: white;
|
color: #0256f2;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.oxwash:hover {
|
.oxwash:hover {
|
||||||
background: #6fbbec;
|
background: #6fbbec;
|
||||||
text-decoration: none;
|
border: 1px solid #6fbbec;
|
||||||
|
text-decoration: underline;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.figma {
|
.figma {
|
||||||
padding: var(--link-padding);
|
padding: var(--link-padding);
|
||||||
transition: var(--link-transition);
|
transition: var(--link-transition);
|
||||||
border-radius: var(--link-border-radius);
|
border-radius: var(--link-border-radius);
|
||||||
background: #c7b9ff;
|
border: 1px solid #c7b9ff;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.figma:hover {
|
.figma:hover {
|
||||||
background: #ffc700;
|
background: #c7b9ff;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
text-decoration: none;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.thesis {
|
.thesis {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,3 @@
|
||||||
@font-face {
|
|
||||||
font-family: 'SpaceGrotesk-Regular';
|
|
||||||
src: url('/SpaceGrotesk-Regular.woff2');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'FivoSansModern-Regular';
|
font-family: 'FivoSansModern-Regular';
|
||||||
src: url('/FivoSansModern-Regular.otf');
|
src: url('/FivoSansModern-Regular.otf');
|
||||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 KiB |
BIN
static/tw-favicon.ico
Executable file
BIN
static/tw-favicon.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
Loading…
Reference in a new issue