Modularize CSS; add reset, theme and fonts
Introduce reset.css and theme.css and refactor style.css to import them via layers; add Unscii font files and preload links. Add RSS XSL/CSS and a css-test page; remove legacy snes.min.css. Tweak BaseLayout and contact layout (preloads, grid gaps). Rename index.astro to parallax.astro and created new basic index page. Improve input styles and contact form placeholders
This commit is contained in:
parent
7dd61775b3
commit
0350a4b8e3
15 changed files with 1749 additions and 1458 deletions
|
|
@ -3,9 +3,14 @@
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="preload" as="font" type="font/woff" href="unscii-16.woff" />
|
||||
<link rel="preload" as="font" type="font/woff" href="unscii-8.woff" />
|
||||
<link rel="preload" href="reset.css" as="style" />
|
||||
<link rel="preload" href="theme.css" as="style" />
|
||||
<link rel="stylesheet" type="text/css" href="/style.css" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<!--<link rel="stylesheet" type="text/css" href="/style.css" />-->
|
||||
<meta name="darkreader-lock" />
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
<script>
|
||||
const yearSpan = document.querySelector("#copyright-year");
|
||||
|
|
@ -13,131 +18,21 @@
|
|||
yearSpan.innerHTML = new Date().getFullYear().toString();
|
||||
}
|
||||
</script>
|
||||
<style is:inline>
|
||||
@font-face {
|
||||
font-family: "unscii16";
|
||||
src:
|
||||
url("unscii-16.woff") format("woff"),
|
||||
url("unscii-16.ttf") format("ttf");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "unscii8";
|
||||
src:
|
||||
url("unscii-8.woff") format("woff"),
|
||||
url("unscii-8.ttf") format("ttf");
|
||||
}
|
||||
a {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
|
||||
&:visited {
|
||||
color: #555;
|
||||
}
|
||||
&:hover {
|
||||
color: #555;
|
||||
text-decoration: underline;
|
||||
text-decoration-style: dashed;
|
||||
}
|
||||
}
|
||||
p a {
|
||||
margin: 0 -0.5rem;
|
||||
padding: 0 0.5rem;
|
||||
|
||||
&:hover::before {
|
||||
content: "[";
|
||||
}
|
||||
&:hover::after {
|
||||
content: "]";
|
||||
}
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: square;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
h1 {
|
||||
font-family: "unscii16", monospace;
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
}
|
||||
:root {
|
||||
--min-body-width: 30ch;
|
||||
--max-body-width: 120ch;
|
||||
font-size: 16px;
|
||||
font-family: "unscii16", monospace;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
body {
|
||||
display: grid;
|
||||
grid-template-columns:
|
||||
minmax(0.8rem, 1fr)
|
||||
minmax(var(--min-body-width), var(--max-body-width))
|
||||
minmax(0.8rem, 1fr);
|
||||
grid-template-rows: auto 1fr auto;
|
||||
grid-template-areas:
|
||||
". header ."
|
||||
". content ."
|
||||
". footer .";
|
||||
min-height: 100vh;
|
||||
place-items: center;
|
||||
width: 100%;
|
||||
min-width: var(--min-body-width);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: #ccc;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
header {
|
||||
grid-area: header;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
text-transform: none;
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
nav li {
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
nav li select {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
main {
|
||||
grid-area: content;
|
||||
}
|
||||
|
||||
footer {
|
||||
grid-area: footer;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
</style>
|
||||
<slot name="head" />
|
||||
</head>
|
||||
<body x-data="{ theme: 'winternight'}">
|
||||
<header>
|
||||
<h1><a href="/">badblocks.dev</a></h1>
|
||||
<h1>badblocks.dev</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<!-- <li>
|
||||
<select id="theme" x-model="theme">
|
||||
<option value="winternight">Winternight</option>
|
||||
<option value="sunnyvale-forest">SunnyVale</option>
|
||||
<option value="city-destroyed">Apocalypse</option>
|
||||
</select>
|
||||
</li>
|
||||
</li> -->
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="/contact">Contact</a></li>
|
||||
<li><a href="https://git.badblocks.dev" target="_blank">Git</a></li>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue