Compare commits

..

13 Commits

3 changed files with 89 additions and 156 deletions

View File

@@ -1,38 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Peter the Baker</title>
<!-- Optional: system fonts for speed; swap later if you like -->
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Iceland&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/resources/css/index.css" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website Under Construction</title>
<style>
/* Global styles */
* {
box-sizing: border-box;
}
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>
<body>
<header class="site-header">
<img src="/resources/img/pb.png" alt="Portrait of Peter Baker" width="1280" height="372"/>
<h1 class="site-title">Peter Baker</h1>
</header>
<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>
<div class="overlay">
<h1>Under Construction</h1>
<p>I'm currently working on bringing you an amazing website. Please check back soon!</p>
<p class="contact">If you have any questions, feel free to <a href="mailto:connect+pp@petruspistor.com">contact me</a>.</p>
</div>
</body>
</html>

View File

@@ -1,133 +1,36 @@
/* ========== Base ========== */
:root {
--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 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body {
height: 100%;
}
body {
background: var(--bg);
color: var(--text);
font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
display: flex;
justify-content: center;
aligin-times: center;
background: linear-gradient(180deg, #f7d34b, #e0a82e);
/* fallback solid background */
background-color: #f7d34b;
font-family: Arial, san-serif;
}
/* ========== Sticky Nav ========== */
.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);
}
/* Center the Image */
/* ========== Header + Banner ========== */
.site-header {
position: relative;
margin: 0;
padding: 0;
}
.site-header img {
display: block;
width: 100%;
height: auto;
}
/* ========== Title (pops from nav) ========== */
.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%;
}
.container img {
max-width: 90%;
height: auto;
border: 6px solid #e0a82e;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB