494 lines
14 KiB
HTML
494 lines
14 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Djosen</title>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
height: 100%;
|
|
background: #000;
|
|
overflow: hidden;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
}
|
|
canvas {
|
|
display: block;
|
|
position: fixed;
|
|
inset: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
touch-action: none;
|
|
z-index: 0;
|
|
}
|
|
#fallback {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #888;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* ---------- DOM overlay ---------- */
|
|
#overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1.5rem;
|
|
color: #fff;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
#overlay > * {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* nav bar */
|
|
nav {
|
|
position: absolute;
|
|
top: 6vh;
|
|
display: flex;
|
|
gap: clamp(1.5rem, 8vw, 5rem);
|
|
}
|
|
nav button {
|
|
font: inherit;
|
|
font-size: clamp(0.7rem, 1.6vw, 1rem);
|
|
letter-spacing: 0.15em;
|
|
background: transparent;
|
|
border: none;
|
|
color: rgba(255, 255, 255, 0.55);
|
|
cursor: pointer;
|
|
padding: 0.25rem 0.5rem;
|
|
transition: color 0.2s ease;
|
|
}
|
|
nav button:hover { color: rgba(255, 255, 255, 0.9); }
|
|
nav button.active {
|
|
color: #fff;
|
|
text-shadow: 0 0 12px rgba(120, 200, 255, 0.8);
|
|
}
|
|
|
|
/* scene content */
|
|
#scene-content {
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
max-width: min(90vw, 720px);
|
|
max-height: 76vh;
|
|
overflow-y: auto;
|
|
padding-bottom: 2rem;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(255,255,255,0.15) transparent;
|
|
}
|
|
#scene-content::-webkit-scrollbar { width: 5px; }
|
|
#scene-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
|
|
#scene-title {
|
|
font-size: clamp(1.6rem, 5vw, 3rem);
|
|
margin: 0;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
#scene-subtitle {
|
|
font-size: clamp(0.9rem, 2vw, 1.25rem);
|
|
margin: 0;
|
|
opacity: 0.85;
|
|
}
|
|
#scene-body {
|
|
font-size: clamp(0.8rem, 1.6vw, 1rem);
|
|
margin: 0;
|
|
opacity: 0.7;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
/* ---------- resume section ---------- */
|
|
@keyframes resumeFadeIn {
|
|
from { opacity: 0; transform: translateX(-50%) translateY(18px); }
|
|
to { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
}
|
|
|
|
#resume-section {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 14vh;
|
|
transform: translateX(-50%);
|
|
width: min(90vw, 780px);
|
|
max-height: 76vh;
|
|
overflow-y: auto;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(255,255,255,0.15) transparent;
|
|
}
|
|
#resume-section.visible {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
animation: resumeFadeIn 0.45s ease-out;
|
|
}
|
|
#resume-section::-webkit-scrollbar { width: 5px; }
|
|
#resume-section::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
|
|
|
|
.resume-container { padding-bottom: 2rem; }
|
|
|
|
/* --- header --- */
|
|
.resume-header {
|
|
text-align: center;
|
|
margin-bottom: 1.6rem;
|
|
}
|
|
.resume-header h2 {
|
|
font-size: clamp(1.4rem, 3.5vw, 2rem);
|
|
font-weight: 600;
|
|
margin: 0 0 0.3rem;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.resume-contact {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 0.4rem 1rem;
|
|
font-size: clamp(0.72rem, 1.4vw, 0.85rem);
|
|
color: rgba(255,255,255,0.65);
|
|
margin-bottom: 0.2rem;
|
|
}
|
|
.resume-contact a {
|
|
color: #4a9eff;
|
|
text-decoration: none;
|
|
transition: color 0.2s;
|
|
}
|
|
.resume-contact a:hover { color: #7fbaff; }
|
|
.resume-contact .sep { color: rgba(255,255,255,0.25); }
|
|
.resume-location {
|
|
font-size: clamp(0.68rem, 1.2vw, 0.8rem);
|
|
color: rgba(255,255,255,0.45);
|
|
}
|
|
|
|
/* --- sections --- */
|
|
.resume-section { margin-bottom: 1.6rem; }
|
|
.section-title {
|
|
font-size: clamp(0.85rem, 1.6vw, 1rem);
|
|
font-weight: 600;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: rgba(255,255,255,0.5);
|
|
margin: 0 0 0.75rem;
|
|
padding-bottom: 0.4rem;
|
|
border-bottom: 1px solid rgba(255,255,255,0.08);
|
|
}
|
|
.summary-text {
|
|
font-size: clamp(0.78rem, 1.3vw, 0.9rem);
|
|
line-height: 1.55;
|
|
color: rgba(255,255,255,0.75);
|
|
margin: 0;
|
|
}
|
|
|
|
/* --- cards (work / education) --- */
|
|
.resume-card {
|
|
background: rgba(255,255,255,0.035);
|
|
border: 1px solid rgba(255,255,255,0.06);
|
|
border-radius: 10px;
|
|
padding: 1rem 1.2rem;
|
|
margin-bottom: 0.75rem;
|
|
transition: background 0.25s ease, border-color 0.25s ease;
|
|
}
|
|
.resume-card:hover {
|
|
background: rgba(255,255,255,0.06);
|
|
border-color: rgba(74,158,255,0.2);
|
|
}
|
|
.card-date {
|
|
font-size: clamp(0.7rem, 1.1vw, 0.78rem);
|
|
color: #4a9eff;
|
|
font-weight: 500;
|
|
margin-bottom: 0.2rem;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.card-role {
|
|
font-size: clamp(0.82rem, 1.4vw, 0.95rem);
|
|
font-weight: 600;
|
|
color: #fff;
|
|
margin-bottom: 0.1rem;
|
|
}
|
|
.card-company {
|
|
font-size: clamp(0.75rem, 1.2vw, 0.85rem);
|
|
color: rgba(255,255,255,0.55);
|
|
margin-bottom: 0.4rem;
|
|
}
|
|
.card-thesis {
|
|
font-size: clamp(0.72rem, 1.2vw, 0.82rem);
|
|
color: rgba(255,255,255,0.6);
|
|
font-style: italic;
|
|
}
|
|
.resume-card ul {
|
|
margin: 0.3rem 0 0;
|
|
padding-left: 1.2rem;
|
|
list-style: none;
|
|
}
|
|
.resume-card ul li {
|
|
font-size: clamp(0.72rem, 1.2vw, 0.82rem);
|
|
line-height: 1.5;
|
|
color: rgba(255,255,255,0.72);
|
|
margin-bottom: 0.2rem;
|
|
position: relative;
|
|
}
|
|
.resume-card ul li::before {
|
|
content: '—';
|
|
color: #4a9eff;
|
|
position: absolute;
|
|
left: -1.1rem;
|
|
}
|
|
|
|
/* --- skills --- */
|
|
.skills-group {
|
|
margin-bottom: 0.6rem;
|
|
}
|
|
.skills-group h4 {
|
|
font-size: clamp(0.75rem, 1.2vw, 0.85rem);
|
|
font-weight: 600;
|
|
color: rgba(255,255,255,0.6);
|
|
margin: 0 0 0.35rem;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
.skill-pills {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
}
|
|
.pill {
|
|
display: inline-block;
|
|
font-size: clamp(0.68rem, 1.1vw, 0.78rem);
|
|
padding: 0.2rem 0.65rem;
|
|
border-radius: 999px;
|
|
background: rgba(74,158,255,0.1);
|
|
border: 1px solid rgba(74,158,255,0.18);
|
|
color: rgba(255,255,255,0.85);
|
|
transition: background 0.2s, border-color 0.2s;
|
|
}
|
|
.pill:hover {
|
|
background: rgba(74,158,255,0.18);
|
|
border-color: rgba(74,158,255,0.35);
|
|
}
|
|
|
|
/* --- hide/show --- */
|
|
@keyframes sceneContentFadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
#scene-content {
|
|
opacity: 1;
|
|
animation: sceneContentFadeIn 0.3s ease-out;
|
|
}
|
|
#scene-content.hidden {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
animation: none;
|
|
}
|
|
|
|
/* ---------- projects section ---------- */
|
|
@keyframes projectsFadeIn {
|
|
from { opacity: 0; transform: translateX(-50%) translateY(18px); }
|
|
to { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
}
|
|
|
|
#projects-section {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 14vh;
|
|
transform: translateX(-50%);
|
|
width: min(90vw, 780px);
|
|
max-height: 76vh;
|
|
overflow-y: auto;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(255,255,255,0.15) transparent;
|
|
}
|
|
#projects-section.visible {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
animation: projectsFadeIn 0.45s ease-out;
|
|
}
|
|
#projects-section::-webkit-scrollbar { width: 5px; }
|
|
#projects-section::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
|
|
|
|
.projects-container { padding-bottom: 2rem; }
|
|
|
|
.projects-intro {
|
|
font-size: clamp(0.75rem, 1.3vw, 0.85rem);
|
|
line-height: 1.55;
|
|
color: rgba(255,255,255,0.55);
|
|
margin: 0 0 1.2rem;
|
|
white-space: pre-line;
|
|
}
|
|
|
|
.cat-intro {
|
|
font-size: clamp(0.75rem, 1.3vw, 0.85rem);
|
|
line-height: 1.5;
|
|
color: rgba(255,255,255,0.5);
|
|
margin: 0.6rem 0 1rem;
|
|
}
|
|
|
|
.project-card {
|
|
background: rgba(255,255,255,0.035);
|
|
border: 1px solid rgba(255,255,255,0.06);
|
|
border-radius: 10px;
|
|
padding: 1.2rem;
|
|
margin-bottom: 0.75rem;
|
|
cursor: pointer;
|
|
transition: background 0.25s ease, border-color 0.25s ease;
|
|
}
|
|
.project-card:hover {
|
|
background: rgba(255,255,255,0.06);
|
|
border-color: rgba(74,158,255,0.2);
|
|
}
|
|
.project-date {
|
|
font-size: clamp(0.68rem, 1.1vw, 0.76rem);
|
|
color: #4a9eff;
|
|
font-weight: 500;
|
|
margin-bottom: 0.2rem;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.project-name {
|
|
font-size: clamp(0.9rem, 1.6vw, 1.1rem);
|
|
font-weight: 600;
|
|
color: #fff;
|
|
margin: 0 0 0.15rem;
|
|
}
|
|
.project-tagline {
|
|
font-size: clamp(0.75rem, 1.2vw, 0.85rem);
|
|
color: rgba(255,255,255,0.5);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.project-desc {
|
|
font-size: clamp(0.72rem, 1.2vw, 0.82rem);
|
|
line-height: 1.5;
|
|
color: rgba(255,255,255,0.72);
|
|
margin: 0 0 0.6rem;
|
|
}
|
|
.project-tech {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
/* --- category grid --- */
|
|
.cat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 0.75rem;
|
|
padding-bottom: 2rem;
|
|
}
|
|
@media (max-width: 500px) {
|
|
.cat-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
.cat-card {
|
|
background: rgba(255,255,255,0.035);
|
|
border: 1px solid rgba(255,255,255,0.06);
|
|
border-radius: 10px;
|
|
padding: 1.4rem;
|
|
cursor: pointer;
|
|
transition: background 0.25s ease, border-color 0.25s ease;
|
|
}
|
|
.cat-card:hover {
|
|
background: rgba(255,255,255,0.06);
|
|
border-color: rgba(74,158,255,0.2);
|
|
}
|
|
.cat-label {
|
|
font-size: clamp(0.95rem, 1.8vw, 1.15rem);
|
|
font-weight: 600;
|
|
color: #fff;
|
|
margin: 0 0 0.3rem;
|
|
}
|
|
.cat-desc {
|
|
font-size: clamp(0.72rem, 1.2vw, 0.82rem);
|
|
line-height: 1.45;
|
|
color: rgba(255,255,255,0.55);
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
.cat-count {
|
|
font-size: clamp(0.65rem, 1vw, 0.72rem);
|
|
color: rgba(74,158,255,0.7);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.cat-empty {
|
|
font-size: clamp(0.8rem, 1.3vw, 0.9rem);
|
|
color: rgba(255,255,255,0.35);
|
|
margin: 0;
|
|
}
|
|
|
|
.cat-list { padding-bottom: 2rem; }
|
|
.cat-list .project-back { margin-bottom: 1rem; }
|
|
|
|
/* --- project detail --- */
|
|
.project-detail { padding-bottom: 2rem; }
|
|
|
|
.project-back {
|
|
font: inherit;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
font-size: clamp(0.75rem, 1.2vw, 0.85rem);
|
|
background: transparent;
|
|
border: none;
|
|
color: #4a9eff;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
margin-bottom: 1.2rem;
|
|
transition: color 0.2s;
|
|
}
|
|
.project-back:hover { color: #7fbaff; }
|
|
|
|
.project-detail .project-name {
|
|
font-size: clamp(1.1rem, 2.5vw, 1.5rem);
|
|
margin: 0.15rem 0;
|
|
}
|
|
.project-detail .project-date { margin-bottom: 0.1rem; }
|
|
.project-detail .project-tagline { margin-bottom: 0.75rem; }
|
|
.project-detail .project-tech { margin-bottom: 1rem; }
|
|
|
|
.project-body {
|
|
font-size: clamp(0.78rem, 1.3vw, 0.9rem);
|
|
line-height: 1.65;
|
|
color: rgba(255,255,255,0.78);
|
|
}
|
|
.project-body p {
|
|
margin: 0 0 0.75rem;
|
|
}
|
|
.project-body p:last-child { margin-bottom: 0; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<canvas id="gpu"></canvas>
|
|
<div id="overlay">
|
|
<nav>
|
|
<button data-nav="0">Home</button>
|
|
<button data-nav="1">About</button>
|
|
<button data-nav="2">Projects</button>
|
|
<button data-nav="3">Resume</button>
|
|
</nav>
|
|
<div id="scene-content">
|
|
<h1 id="scene-title"></h1>
|
|
<h2 id="scene-subtitle"></h2>
|
|
<div id="scene-body"></div>
|
|
</div>
|
|
<div id="resume-section"></div>
|
|
<div id="projects-section"></div>
|
|
</div>
|
|
<div id="fallback">
|
|
<div>
|
|
<h2>Graphics not available</h2>
|
|
<p>Your browser doesn't support WebGPU or WebGL. Open this page in a recent Chrome, Edge, or Firefox.</p>
|
|
</div>
|
|
</div>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
</html> |