1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
---
interface Props {
title: string;
description: string;
}
const { title = "Andrew Lee", description = "Andrew Lee Website" } = Astro.props;
import { ClientRouter } from "astro:transitions";
import Navbar from '../components/Navbar.svelte';
const date = new Date();
---
<!doctype html>
<html lang="en-ca">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/blog/rss.xml" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<!-- Default Metadata -->
<meta name="title" content={title} />
<meta name="description" content={description} />
<!-- Open Graph Metadata -->
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content="https://alee14.me/profile.png" />
<meta property="og:type" content="website" />
<meta name="theme-color" content="#1B291F"/>
<meta name="generator" content={Astro.generator} />
<!-- Plausible Analytics -->
<script defer data-domain="alee14.me" data-api="/plausible/api/event" src="/plausible/js/script.js"/>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
<ClientRouter fallback="animate" />
<title>{title}</title>
</head>
<body>
<Navbar client:load />
<div transition:name="main" transition:animate="fade">
<slot />
<footer>
<p class="small">Made with Astro and Hosted on Vercel</p>
<p>Copyright © {date.getFullYear()} Andrew Lee. <a href="https://github.com/Alee14/personal-website" target="_blank">View source code.</a></p>
</footer>
</div>
</body>
</html>
<style is:global>
html {
margin: 0;
padding: 0;
font-family: "Exo 2", system-ui, sans-serif;
background: #1B291F;
color: #FFFFFF;
}
p {
font-size: 1.1em;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
html {
scrollbar-gutter: stable;
}
}
ul {
padding-left: 20px;
font-size: 1.1em;
}
footer {
margin: 2em;
text-align: center;
font-size: 1.3em;
}
footer p {
margin: 0.6em;
}
.small {
font-size: 0.9em;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 500;
}
h2 {
font-size: 1.5em;
}
a {
text-decoration: none;
color: #d7fcc9;
transition: ease-in-out 0.2s;
}
a:hover {
color: #9ECD9D;
transition: ease-in-out 0.2s;
}
a:active {
color: #609460;
}
.button {
padding: 10px 20px 10px 20px;
border-radius: 5px;
border: none;
background-color: #609460;
color: white;
cursor: pointer;
transition: ease-in-out 0.2s;
}
.button:hover {
background-color: #486e48;
transition: ease-in-out 0.2s;
}
.button:active {
background-color: #243824;
}
.margin {
margin: 0.5em;
}
code {
font-family:
Menlo,
Monaco,
Lucida Console,
Liberation Mono,
DejaVu Sans Mono,
Bitstream Vera Sans Mono,
Courier New,
monospace;
}
</style>
|