fixed the unstyled list vibes
This commit is contained in:
46
index.html
46
index.html
@@ -1,20 +1,28 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta name="description" content="Deaf-led community builder & creator advocate. Projects, socials, and contact.">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<link rel="icon" href="/resources/img/pp.jpg" type="image/jpeg">
|
||||||
<title>Peter Baker</title>
|
<meta name="color-scheme" content="dark light">
|
||||||
|
<meta property="og:title" content="Petrus Pistor — Peter Baker">
|
||||||
|
<meta property="og:description" content="Deaf-led community builder & creator advocate.">
|
||||||
|
<meta property="og:image" content="/resources/img/pb_16_9_under512kb.webp">
|
||||||
|
|
||||||
<!-- Google Font -->
|
<!-- Your stylesheet MUST be inside the head, before <body> -->
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Iceland&display=swap" rel="stylesheet">
|
<link rel="stylesheet" href="/resources/css/index.css">
|
||||||
<link rel="stylesheet" href="/resources/css/index.css" />
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<header class="site-header">
|
<a href="#main" class="skip-link">Skip to content</a>
|
||||||
<img src="/resources/img/pb.png" alt="Portrait of Peter Baker" width="1280" height="372"/>
|
<header class="site-header" role="banner">
|
||||||
|
<picture>
|
||||||
|
<source srcset="/resources/img/pb_16_9_under512kb.webp" type="image/webp">
|
||||||
|
<img src="/resources/img/pb.png" alt="Portrait of Peter Baker" width="1280" height="372" loading="eager" decoding="async">
|
||||||
|
</picture>
|
||||||
|
<h1 class="site-title">Petrus Pistor</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<nav class="site-nav" aria-label="Primary">
|
<nav class="site-nav" aria-label="Primary">…</nav>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#social">Social</a></li>
|
<li><a href="#social">Social</a></li>
|
||||||
<li><a href="#projects">Projects</a></li>
|
<li><a href="#projects">Projects</a></li>
|
||||||
@@ -22,13 +30,21 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- Hero title that pops up from the top of nav -->
|
<main id="main" class="content">
|
||||||
<section class="hero">
|
<section id="social" aria-labelledby="h-social">
|
||||||
<h1 class="pop-title">Peter Baker</h1>
|
<h2 id="h-social">Social</h2>
|
||||||
|
<!-- links here -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<main class="content" id="main">
|
<section id="projects" aria-labelledby="h-projects">
|
||||||
<!-- your sections -->
|
<h2 id="h-projects">Projects</h2>
|
||||||
</main>
|
<!-- cards/list here -->
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section id="contact" aria-labelledby="h-contact">
|
||||||
|
<h2 id="h-contact">Contact</h2>
|
||||||
|
<!-- email/form -->
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -1,103 +1,84 @@
|
|||||||
/* ========== Base ========== */
|
/* style.css (minimal baseline) */
|
||||||
:root {
|
:root { --bg:#0e0e10; --text:#eaeaea; --accent:#ffd700; }
|
||||||
--nav-h: 64px; /* tweak nav height */
|
|
||||||
--bg: #0e0e10; /* page background */
|
|
||||||
--text: #eaeaea; /* body text color */
|
|
||||||
--gold: #ffd700; /* title gold */
|
|
||||||
--ring: rgba(255,255,255,.08); /* nav border */
|
|
||||||
}
|
|
||||||
|
|
||||||
* { box-sizing: border-box; }
|
* { box-sizing: border-box; }
|
||||||
html, body { margin: 0; padding: 0; }
|
html, body { margin:0; padding:0; }
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Iceland", sans-serif;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
header { text-align:center; padding:2rem 1rem; }
|
||||||
|
h1, h3 { font-family: "Iceland", sans-serif; letter-spacing:.5px; }
|
||||||
|
nav ul { list-style:none; display:flex; gap:1rem; justify-content:center; padding:0; margin:0 0 2rem; }
|
||||||
|
nav a, nav li { text-decoration:none; color:#ddd; padding:.4rem .6rem; border-radius:.5rem; }
|
||||||
|
nav a:hover, nav li:hover { background:rgba(255,255,255,.08); }
|
||||||
|
main { max-width: 900px; margin: 0 auto; padding: 0 1rem 3rem; }
|
||||||
|
|
||||||
|
/* Normalize nav list look */
|
||||||
|
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========== Sticky Nav ========== */
|
.site-nav a { text-decoration: none;
|
||||||
.site-nav {
|
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
z-index: 20;
|
|
||||||
height: var(--nav-h);
|
|
||||||
display: flex;
|
|
||||||
gap: 1rem;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 0 1rem;
|
|
||||||
background: rgba(14,14,16,.7);
|
|
||||||
backdrop-filter: blur(6px);
|
|
||||||
border-bottom: 1px solid var(--ring);
|
|
||||||
}
|
|
||||||
.site-nav ul {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
list-style: none;
|
|
||||||
display: flex;
|
|
||||||
gap: 1rem;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
.site-nav a {
|
|
||||||
font-family: 'Iceland', sans-serif;
|
|
||||||
text-decoration: none;
|
|
||||||
color: #ddd;
|
|
||||||
padding: .35rem .6rem;
|
|
||||||
border-radius: .5rem;
|
|
||||||
}
|
|
||||||
.site-nav a:hover,
|
|
||||||
.site-nav a:focus-visible {
|
|
||||||
background: rgba(255,255,255,.08);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========== Title (pops from nav) ========== */
|
.site-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px;
|
||||||
.site-title {
|
|
||||||
font-family: 'Iceland', sans-serif;
|
|
||||||
font-size: clamp(2.4rem, 6vw, 6rem);
|
|
||||||
line-height: 1;
|
|
||||||
margin: 0;
|
|
||||||
color: var(--gold);
|
|
||||||
text-shadow: 0 4px 12px rgba(0,0,0,.6);
|
|
||||||
|
|
||||||
position: absolute;
|
|
||||||
left: 50%;
|
|
||||||
bottom: calc(var(--nav-h) * 0.15);
|
|
||||||
transform: translate(-50%, 0);
|
|
||||||
|
|
||||||
opacity: 0;
|
|
||||||
animation: popFromNav 900ms cubic-bezier(.2,.75,.15,1.1) forwards,
|
|
||||||
underlineIn 700ms ease-out 650ms forwards;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========== Content + Footer ========== */
|
/* Skip link utility */
|
||||||
.content {
|
.skip-link {
|
||||||
max-width: 1000px;
|
position: absolute; left: -9999px; top: 0;
|
||||||
margin: 2rem auto 4rem;
|
|
||||||
padding: 0 1rem;
|
|
||||||
}
|
}
|
||||||
.site-footer {
|
.skip-link:focus {
|
||||||
text-align: center;
|
left: 1rem; top: 1rem; z-index: 1000;
|
||||||
color: #bdbdbd;
|
background: #000; color: #fff; padding: .5rem .75rem; border-radius: .5rem;
|
||||||
padding: 1.5rem 1rem 3rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ========== Responsive Tweaks ========== */
|
/* ===== Header & title (pop from nav) ===== */
|
||||||
@media (max-width: 800px) {
|
.site-header img{display:block;width:100%;height:auto
|
||||||
:root { --nav-h: 56px; }
|
|
||||||
.site-title::after { height: 2px; }
|
|
||||||
}
|
}
|
||||||
@media (max-width: 480px) {
|
.site-title{
|
||||||
:root { --nav-h: 52px; }
|
font-family:"Iceland",sans-serif;
|
||||||
.site-title { font-size: clamp(2rem, 9vw, 3.2rem); }
|
font-size:clamp(2.4rem,6vw,6rem);
|
||||||
.site-title::after { width: 60%; }
|
line-height:1; margin:.75rem 0 0;
|
||||||
|
color:var(--gold); text-align:center;
|
||||||
|
text-shadow:0 4px 12px rgba(0,0,0,.6);
|
||||||
|
opacity:0; transform:translateY(calc(-1*var(--nav-h))) scale(.98);
|
||||||
|
animation:popFromNav 900ms cubic-bezier(.2,.75,.15,1.1) forwards,
|
||||||
|
underlineDelay 1ms linear 900ms forwards;
|
||||||
}
|
}
|
||||||
@media (prefers-reduced-motion: reduce) {
|
.site-title::after{
|
||||||
.site-title,
|
content:""; display:block; height:3px; width:0%;
|
||||||
.site-title::after {
|
margin:.6rem auto 0;
|
||||||
animation: none !important;
|
background:linear-gradient(90deg,#b8860b,#ffd700,#b8860b);
|
||||||
opacity: 1 !important;
|
border-radius:999px;
|
||||||
transform: translate(-50%, 0) !important;
|
animation:underlineGrow 700ms ease-out 1200ms forwards;
|
||||||
width: 56%;
|
}
|
||||||
}
|
|
||||||
|
/* ===== Keyframes ===== */
|
||||||
|
@keyframes popFromNav{
|
||||||
|
0%{opacity:0; transform:translateY(calc(-1*var(--nav-h))) scale(.98)}
|
||||||
|
60%{opacity:1; transform:translateY(-8px) scale(1.02)}
|
||||||
|
100%{opacity:1; transform:translateY(0) scale(1)}
|
||||||
|
}
|
||||||
|
@keyframes underlineGrow{to{width:54%}}
|
||||||
|
@keyframes underlineDelay{} /* just to offset ::after timing */
|
||||||
|
|
||||||
|
/* ===== Content container ===== */
|
||||||
|
.content{max-width:1000px; margin:2rem auto 4rem; padding:0 1rem}
|
||||||
|
|
||||||
|
/* ===== Responsive ===== */
|
||||||
|
@media (max-width:800px){
|
||||||
|
:root{--nav-h:56px}
|
||||||
|
.site-title::after{height:2px}
|
||||||
|
}
|
||||||
|
@media (max-width:480px){
|
||||||
|
:root{--nav-h:52px}
|
||||||
|
.site-title{font-size:clamp(2rem,9vw,3.2rem)}
|
||||||
|
.site-title::after{width:60%}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Respect reduced motion */
|
||||||
|
@media (prefers-reduced-motion:reduce){
|
||||||
|
.site-title,.site-title::after{animation:none !important; opacity:1 !important; transform:none !important}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user