Optimize studio-sample: shared CSS, mobile nav, SEO, a11y, working filter
- Extract duplicated per-page CSS into one shared style.css - Add CSS-only hamburger menu for ≤720px (was overflowing) - Add meta description / Open Graph / favicon to all pages - Unify footers, fix dead links, distinct <title>s - :focus-visible outlines, aria-hidden on decorative text, contrast bumps - Make works.html category filter actually filter (data-cat) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,341 +3,24 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="theme-color" content="#e53935">
|
||||
<meta name="description" content="Studio Sample 工作室大事記 — 從 2020 年於東京創立至今的重要里程碑、獲獎、合作與作品上線紀錄。">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:locale" content="zh_TW">
|
||||
<meta property="og:site_name" content="Studio Sample">
|
||||
<meta property="og:title" content="Timeline — Studio Sample">
|
||||
<meta property="og:description" content="工作室從 2020 年創立至今的重要時刻。Key milestones from founding to now.">
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect width='64' height='64' rx='8' fill='%23e53935'/><text x='32' y='45' font-family='Arial,sans-serif' font-size='42' font-weight='bold' fill='white' text-anchor='middle'>S</text></svg>">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<title>Timeline — Studio Sample</title>
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
|
||||
"Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP",
|
||||
"Noto Sans TC", system-ui, sans-serif;
|
||||
background-color: #ffffff;
|
||||
color: #333333;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ─── NAV ─────────────────────────────────────────────── */
|
||||
nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background: #ffffff;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 clamp(16px, 5vw, 64px);
|
||||
height: 56px;
|
||||
}
|
||||
|
||||
.nav-logo {
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.12em;
|
||||
color: #e53935;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
gap: clamp(16px, 3vw, 40px);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: #555555;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.nav-links a:hover,
|
||||
.nav-links a.active {
|
||||
color: #e53935;
|
||||
}
|
||||
|
||||
/* ─── PAGE HEADER ─────────────────────────────────────── */
|
||||
.page-header {
|
||||
background: #f7f7f7;
|
||||
padding: clamp(48px, 8vw, 96px) clamp(24px, 8vw, 96px);
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
.page-header-label {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
color: #e53935;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.page-header-title {
|
||||
font-size: clamp(36px, 6vw, 72px);
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.05;
|
||||
color: #111111;
|
||||
}
|
||||
|
||||
.page-header-sub {
|
||||
margin-top: 16px;
|
||||
font-size: clamp(14px, 1.5vw, 16px);
|
||||
color: #777777;
|
||||
max-width: 480px;
|
||||
}
|
||||
|
||||
/* ─── TIMELINE WRAPPER ────────────────────────────────── */
|
||||
.timeline-section {
|
||||
padding: clamp(64px, 10vw, 120px) clamp(24px, 8vw, 96px);
|
||||
}
|
||||
|
||||
.timeline {
|
||||
position: relative;
|
||||
max-width: 860px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* vertical line */
|
||||
.timeline::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 140px;
|
||||
top: 8px;
|
||||
bottom: 8px;
|
||||
width: 1px;
|
||||
background: #e0e0e0;
|
||||
}
|
||||
|
||||
/* ─── YEAR GROUP ──────────────────────────────────────── */
|
||||
.timeline-year {
|
||||
margin-bottom: 56px;
|
||||
}
|
||||
|
||||
.timeline-year-label {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
color: #bbbbbb;
|
||||
width: 120px;
|
||||
text-align: right;
|
||||
padding-top: 4px;
|
||||
padding-right: 0;
|
||||
margin-bottom: 24px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
/* ─── SINGLE EVENT ────────────────────────────────────── */
|
||||
.timeline-item {
|
||||
display: grid;
|
||||
grid-template-columns: 120px 1fr;
|
||||
gap: 0 40px;
|
||||
position: relative;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
|
||||
.timeline-item:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* date column */
|
||||
.timeline-date {
|
||||
text-align: right;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
.timeline-date-month {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: #aaaaaa;
|
||||
}
|
||||
|
||||
.timeline-date-day {
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
color: #dddddd;
|
||||
line-height: 1;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* dot */
|
||||
.timeline-item::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 134px;
|
||||
top: 6px;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
border-radius: 50%;
|
||||
background: #ffffff;
|
||||
border: 2px solid #cccccc;
|
||||
transition: border-color 0.2s, background 0.2s;
|
||||
}
|
||||
|
||||
.timeline-item.highlight::after {
|
||||
background: #e53935;
|
||||
border-color: #e53935;
|
||||
}
|
||||
|
||||
/* content column */
|
||||
.timeline-content {
|
||||
padding-left: 20px;
|
||||
padding-bottom: 36px;
|
||||
border-bottom: 1px solid #f2f2f2;
|
||||
}
|
||||
|
||||
.timeline-item:last-child .timeline-content {
|
||||
border-bottom: none;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.timeline-tag {
|
||||
display: inline-block;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.15em;
|
||||
text-transform: uppercase;
|
||||
color: #e53935;
|
||||
background: #fdecea;
|
||||
border-radius: 2px;
|
||||
padding: 2px 7px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.timeline-tag.tag-launch { color: #1976d2; background: #e3f2fd; }
|
||||
.timeline-tag.tag-award { color: #388e3c; background: #e8f5e9; }
|
||||
.timeline-tag.tag-collab { color: #7b1fa2; background: #f3e5f5; }
|
||||
.timeline-tag.tag-studio { color: #e53935; background: #fdecea; }
|
||||
.timeline-tag.tag-article { color: #f57c00; background: #fff3e0; }
|
||||
|
||||
.timeline-title {
|
||||
font-size: clamp(15px, 2vw, 17px);
|
||||
font-weight: 700;
|
||||
color: #111111;
|
||||
line-height: 1.35;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.timeline-desc {
|
||||
font-size: 14px;
|
||||
color: #666666;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.timeline-desc span {
|
||||
display: block;
|
||||
color: #999999;
|
||||
margin-top: 2px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* ─── FOOTER ──────────────────────────────────────────── */
|
||||
footer {
|
||||
background: #111111;
|
||||
color: #aaaaaa;
|
||||
padding: clamp(32px, 6vw, 56px) clamp(24px, 8vw, 96px);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.footer-nav {
|
||||
display: flex;
|
||||
gap: clamp(16px, 3vw, 32px);
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.footer-nav a {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: #555555;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.footer-nav a:hover {
|
||||
color: #e53935;
|
||||
}
|
||||
|
||||
.footer-logo {
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.12em;
|
||||
color: #e53935;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.footer-copy {
|
||||
font-size: 12px;
|
||||
color: #555555;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
/* ─── RESPONSIVE ──────────────────────────────────────── */
|
||||
@media (max-width: 600px) {
|
||||
.timeline::before {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.timeline-item {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 4px 0;
|
||||
padding-left: 22px;
|
||||
}
|
||||
|
||||
.timeline-item::after {
|
||||
left: -6px;
|
||||
top: 4px;
|
||||
}
|
||||
|
||||
.timeline-date {
|
||||
text-align: left;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.timeline-date-day {
|
||||
font-size: 14px;
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
.timeline-content {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.timeline-year-label {
|
||||
width: auto;
|
||||
text-align: left;
|
||||
padding-left: 22px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- ─── NAV ─────────────────────────────────────────────── -->
|
||||
<nav>
|
||||
<a class="nav-logo" href="index.html">Studio Sample</a>
|
||||
<input type="checkbox" id="nav-toggle" class="nav-toggle">
|
||||
<label class="nav-burger" for="nav-toggle" aria-label="開啟選單">☰</label>
|
||||
<ul class="nav-links">
|
||||
<li><a href="services.html">Services</a></li>
|
||||
<li><a href="works.html">Works</a></li>
|
||||
|
||||
Reference in New Issue
Block a user