Compare commits

...

13 Commits

3 changed files with 89 additions and 156 deletions

View File

@@ -1,38 +1,68 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Peter the Baker</title> <title>Website Under Construction</title>
<style>
<!-- Optional: system fonts for speed; swap later if you like --> /* Global styles */
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> * {
<link href="https://fonts.googleapis.com/css2?family=Iceland&display=swap" rel="stylesheet"> box-sizing: border-box;
<link rel="stylesheet" href="/resources/css/index.css" /> }
body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
/* Create a subtle diagonal caution stripe background */
background: repeating-linear-gradient(
-45deg,
#ffeb3b 0,
#ffeb3b 20px,
#f5c542 20px,
#f5c542 40px
);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.overlay {
background: rgba(255, 255, 255, 0.9);
padding: 40px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 500px;
text-align: center;
}
h1 {
margin-bottom: 20px;
font-size: 2.4rem;
color: #333;
}
p {
margin-bottom: 20px;
font-size: 1.2rem;
color: #555;
}
.contact {
font-size: 1rem;
color: #555;
}
a {
color: #007bff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head> </head>
<body> <body>
<header class="site-header"> <div class="overlay">
<img src="/resources/img/pb.png" alt="Portrait of Peter Baker" width="1280" height="372"/> <h1>Under Construction</h1>
<h1 class="site-title">Peter Baker</h1> <p>I'm currently working on bringing you an amazing website. Please check back soon!</p>
</header> <p class="contact">If you have any questions, feel free to <a href="mailto:connect+pp@petruspistor.com">contact me</a>.</p>
</div>
<nav class="site-nav" aria-label="Primary">
<ul>
<li><a href="#social">Social</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
<main id="main" class="content">
</main>
<footer class="site-footer">
<small>© <span id="year"></span> Peter Baker</small>
</footer>
<script>
document.getElementById('year').textContent = new Date().getFullYear();
</script>
</body> </body>
</html> </html>

View File

@@ -1,133 +1,36 @@
/* ========== Base ========== */ * {
:root {
--nav-h: 64px; /* tweak nav height */ margin: 0;
--bg: #0e0e10; /* page background */ padding: 0;
--text: #eaeaea; /* body text color */ box-sizing: border-box;
--gold: #ffd700; /* title gold */
--ring: rgba(255,255,255,.08); /* nav border */
} }
* { box-sizing: border-box; } html, body {
html, body { margin: 0; padding: 0; }
height: 100%;
}
body { body {
background: var(--bg);
color: var(--text);
font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
/* ========== Sticky Nav ========== */
.site-nav {
position: sticky;
top: 0;
z-index: 20;
height: var(--nav-h);
display: flex; display: flex;
gap: 1rem;
align-items: center;
justify-content: center; justify-content: center;
padding: 0 1rem; aligin-times: center;
background: rgba(14,14,16,.7); background: linear-gradient(180deg, #f7d34b, #e0a82e);
backdrop-filter: blur(6px);
border-bottom: 1px solid var(--ring); /* fallback solid background */
}
.site-nav ul { background-color: #f7d34b;
margin: 0; font-family: Arial, san-serif;
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);
} }
/* ========== Header + Banner ========== */ /* Center the Image */
.site-header {
position: relative; .container img {
margin: 0;
padding: 0; max-width: 90%;
}
.site-header img {
display: block;
width: 100%;
height: auto; height: auto;
} border: 6px solid #e0a82e;
border-radius: 12px;
/* ========== Title (pops from nav) ========== */ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
.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;
}
.site-title::after {
content: "";
display: block;
height: 3px;
width: 0%;
margin: .55rem auto 0;
background: var(--gold);
border-radius: 999px;
}
/* ========== Keyframes ========== */
@keyframes popFromNav {
0% { opacity: 0; transform: translate(-50%, calc(var(--nav-h) * .6)); }
60% { opacity: 1; transform: translate(-50%, -8px); }
100% { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes underlineIn { to { width: 56%; } }
/* ========== Content + Footer ========== */
.content {
max-width: 1000px;
margin: 2rem auto 4rem;
padding: 0 1rem;
}
.site-footer {
text-align: center;
color: #bdbdbd;
padding: 1.5rem 1rem 3rem;
}
/* ========== Responsive Tweaks ========== */
@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%; }
}
@media (prefers-reduced-motion: reduce) {
.site-title,
.site-title::after {
animation: none !important;
opacity: 1 !important;
transform: translate(-50%, 0) !important;
width: 56%;
}
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB