Updated website
This commit is contained in:
BIN
public/assets/img/291st-background.png
Normal file
BIN
public/assets/img/291st-background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
BIN
public/assets/img/header.png
Normal file
BIN
public/assets/img/header.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
public/assets/img/helicopter.gif
Normal file
BIN
public/assets/img/helicopter.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.0 MiB |
BIN
public/assets/img/logo.png
Normal file
BIN
public/assets/img/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
515
public/index.html
Normal file
515
public/index.html
Normal file
@@ -0,0 +1,515 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="291st Joint Task Force">
|
||||
<meta name="author" content="Zak Timson">
|
||||
<title>291st JTF</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Saira+Stencil+One&family=Roboto:wght@300;400;500&family=Share+Tech+Mono&display=swap" rel="stylesheet">
|
||||
<script src="login.mjs" type="module" defer></script>
|
||||
<style>
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
:root {
|
||||
--red: #b10000;
|
||||
--red-hover: #c00;
|
||||
--dark: #202225;
|
||||
--black: #000;
|
||||
--max-w: 1100px;
|
||||
}
|
||||
|
||||
html, body {
|
||||
background: var(--black);
|
||||
color: #fff;
|
||||
font-family: Roboto, sans-serif;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.stencil { font-family: 'Saira Stencil One', sans-serif; }
|
||||
|
||||
/* ── NAV ── */
|
||||
nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background: var(--dark);
|
||||
border-bottom: 2px solid var(--red);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: #aaa;
|
||||
text-decoration: none;
|
||||
padding: 1rem 1.25rem;
|
||||
font-size: 0.9rem;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
border-bottom: 3px solid transparent;
|
||||
transition: color 0.2s, border-color 0.2s;
|
||||
}
|
||||
|
||||
nav a:hover, nav a.active {
|
||||
color: #fff;
|
||||
border-bottom-color: var(--red);
|
||||
}
|
||||
|
||||
/* ── SHARED LAYOUT ── */
|
||||
.inner {
|
||||
max-width: var(--max-w);
|
||||
margin: 0 auto;
|
||||
padding: 0 2rem;
|
||||
}
|
||||
|
||||
.section-wrap {
|
||||
padding: 4rem 0;
|
||||
}
|
||||
|
||||
section {
|
||||
padding: 4rem 2rem;
|
||||
max-width: var(--max-w);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
section h2 { font-size: 2rem; margin-bottom: 0.5rem; }
|
||||
|
||||
.section-divider {
|
||||
width: 60px;
|
||||
height: 3px;
|
||||
background: var(--red);
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
/* ── ABOUT ── */
|
||||
#about p {
|
||||
color: #ccc;
|
||||
line-height: 1.8;
|
||||
max-width: 720px;
|
||||
}
|
||||
|
||||
.stats {
|
||||
display: flex;
|
||||
gap: 2rem;
|
||||
margin-top: 2rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.stat {
|
||||
background: var(--dark);
|
||||
border-left: 3px solid var(--red);
|
||||
padding: 1rem 1.5rem;
|
||||
min-width: 140px;
|
||||
}
|
||||
|
||||
.stat .num {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
color: var(--red);
|
||||
}
|
||||
|
||||
.stat .label {
|
||||
font-size: 0.8rem;
|
||||
color: #aaa;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
/* ── MISSION SET ── */
|
||||
#mission-set { background: #0a0a0a; }
|
||||
|
||||
/* Force 3 cols, drop to 2 then 1 on smaller screens */
|
||||
.services-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.services-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.services-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
.service-card {
|
||||
background: var(--dark);
|
||||
border-top: 3px solid transparent;
|
||||
padding: 1.5rem;
|
||||
transition: border-color 0.2s, transform 0.2s;
|
||||
}
|
||||
|
||||
.service-card:hover {
|
||||
border-top-color: var(--red);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
.service-card .icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
|
||||
.service-card .title { font-size: 1rem; font-weight: 500; margin-bottom: 0.25rem; }
|
||||
.service-card .desc { font-size: 0.82rem; color: #888; line-height: 1.5; }
|
||||
|
||||
/* ── OPERATIONS ── */
|
||||
.ops-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.op-item {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
align-items: flex-start;
|
||||
background: var(--dark);
|
||||
padding: 1.25rem 1.5rem;
|
||||
border-left: 4px solid var(--red);
|
||||
}
|
||||
|
||||
.op-item.upcoming { border-left-color: #4caf50; }
|
||||
|
||||
.op-item .op-date {
|
||||
font-size: 0.75rem;
|
||||
color: #888;
|
||||
white-space: nowrap;
|
||||
padding-top: 0.2rem;
|
||||
min-width: 90px;
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
}
|
||||
|
||||
.op-item .op-title { font-weight: 500; margin-bottom: 0.25rem; }
|
||||
.op-item .op-desc { font-size: 0.85rem; color: #aaa; }
|
||||
|
||||
.badge {
|
||||
display: inline-block;
|
||||
padding: 0.15rem 0.6rem;
|
||||
font-size: 0.7rem;
|
||||
border-radius: 2px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.badge-upcoming { background: #1a3a1a; color: #4caf50; }
|
||||
.badge-completed { background: #1a1a2e; color: #888; }
|
||||
|
||||
/* ── DISCORD ── */
|
||||
#discord { background: #050505; }
|
||||
|
||||
.discord-inner {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 2rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
@media (max-width: 700px) { .discord-inner { grid-template-columns: 1fr; } }
|
||||
|
||||
.discord-inner iframe { width: 100%; min-height: 420px; border: none; }
|
||||
|
||||
.discord-info p {
|
||||
color: #aaa;
|
||||
line-height: 1.7;
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 0.75rem 1.75rem;
|
||||
background: var(--red);
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
font-size: 0.85rem;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.btn:hover { background: var(--red-hover); }
|
||||
|
||||
/* ── LOCATION ── */
|
||||
#location { background: #080808; border-top: 1px solid #111; }
|
||||
|
||||
.location-inner {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 2fr;
|
||||
gap: 2rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@media (max-width: 700px) { .location-inner { grid-template-columns: 1fr; } }
|
||||
|
||||
.location-info p {
|
||||
color: #aaa;
|
||||
line-height: 1.7;
|
||||
font-size: 0.95rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.location-info .detail {
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.8rem;
|
||||
color: #555;
|
||||
margin-top: 1rem;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
#map-wrap {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
aspect-ratio: 16/9;
|
||||
overflow: hidden;
|
||||
border: 1px solid #1a1a1a;
|
||||
}
|
||||
|
||||
#map-wrap iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: none;
|
||||
filter: grayscale(1) invert(1) brightness(0.8) contrast(1.1);
|
||||
}
|
||||
|
||||
.map-pin {
|
||||
position: absolute;
|
||||
top: 50%; left: 50%;
|
||||
transform: translate(-50%, -100%);
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.map-pin .pin-dot {
|
||||
width: 14px; height: 14px;
|
||||
background: var(--red);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 0 3px rgba(177,0,0,0.3);
|
||||
animation: pulse 2s infinite;
|
||||
}
|
||||
|
||||
.map-pin .pin-line { width: 2px; height: 20px; background: var(--red); }
|
||||
|
||||
.map-pin .pin-label {
|
||||
background: var(--red);
|
||||
color: #fff;
|
||||
font-size: 0.65rem;
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
letter-spacing: 0.1em;
|
||||
padding: 0.2rem 0.5rem;
|
||||
white-space: nowrap;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% { box-shadow: 0 0 0 3px rgba(177,0,0,0.3); }
|
||||
50% { box-shadow: 0 0 0 8px rgba(177,0,0,0.1); }
|
||||
}
|
||||
|
||||
/* ── FOOTER ── */
|
||||
footer {
|
||||
background: var(--dark);
|
||||
border-top: 2px solid #111;
|
||||
text-align: center;
|
||||
padding: 1.5rem;
|
||||
font-size: 0.85rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
footer a, footer a:visited { color: var(--red); text-decoration: none; }
|
||||
footer a:hover { color: var(--red-hover); }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<jtf-login></jtf-login>
|
||||
|
||||
<nav id="main-nav">
|
||||
<a href="#about">About</a>
|
||||
<a href="#mission-set">Mission Set</a>
|
||||
<a href="#operations">Operations</a>
|
||||
<a href="#discord">Discord</a>
|
||||
</nav>
|
||||
|
||||
<!-- ABOUT -->
|
||||
<section id="about">
|
||||
<h2 class="stencil">About</h2>
|
||||
<div class="section-divider"></div>
|
||||
<p>
|
||||
The 291st Joint Task Force is a casual group of gamers focused on tactical & strategical cooperative play.
|
||||
We operate across multiple titles and timezones We run weekly operations and "book clubs" to enjoy singplayer games together.
|
||||
If youre looking for friends to enjoy games with on a regular baisis, you came to the right place. We're recruting.
|
||||
</p>
|
||||
<div class="stats">
|
||||
<div class="stat"><div class="num">291st</div><div class="label">Unit</div></div>
|
||||
<div class="stat"><div class="num">15+</div><div class="label">Members</div></div>
|
||||
<div class="stat"><div class="num">2015</div><div class="label">Founded</div></div>
|
||||
<div class="stat"><div class="num">1,000+</div><div class="label">Missions</div></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- MISSION SET -->
|
||||
<div id="mission-set" class="section-wrap">
|
||||
<div class="inner">
|
||||
<h2 class="stencil">Mission Set</h2>
|
||||
<div class="section-divider"></div>
|
||||
<div class="services-grid">
|
||||
<div class="service-card">
|
||||
<div class="icon">🎮</div>
|
||||
<div class="title">Wide Mission Set</div>
|
||||
<div class="desc">Solo, Shooters, Strategy and MMO's</div>
|
||||
</div>
|
||||
<div class="service-card">
|
||||
<div class="icon">📅</div>
|
||||
<div class="title">Weekly Operations</div>
|
||||
<div class="desc">Maintain high readiness at all times.</div>
|
||||
</div>
|
||||
<div class="service-card">
|
||||
<div class="icon">🖥️</div>
|
||||
<div class="title">24/7 Servers</div>
|
||||
<div class="desc">Requisition servers for any game.</div>
|
||||
</div>
|
||||
<div class="service-card">
|
||||
<div class="icon">🔒</div>
|
||||
<div class="title">VPN Access</div>
|
||||
<div class="desc">Private VPN access for members.</div>
|
||||
</div>
|
||||
<div class="service-card">
|
||||
<div class="icon">🎬</div>
|
||||
<div class="title">Private Media Server</div>
|
||||
<div class="desc">REDACTED</div>
|
||||
</div>
|
||||
<div class="service-card">
|
||||
<div class="icon">🌎</div>
|
||||
<div class="title">North American</div>
|
||||
<div class="desc">EDT timezone — All regions welcome</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- OPERATIONS -->
|
||||
<section id="operations">
|
||||
<h2 class="stencil">Operations</h2>
|
||||
<div class="section-divider"></div>
|
||||
<div class="ops-list" id="ops-list"></div>
|
||||
</section>
|
||||
|
||||
<!-- DISCORD -->
|
||||
<div id="discord" class="section-wrap">
|
||||
<div class="inner">
|
||||
<div class="discord-inner">
|
||||
<div class="discord-info">
|
||||
<h2 class="stencil">Join Us</h2>
|
||||
<div class="section-divider"></div>
|
||||
<p>
|
||||
Our Discord is the nerve centre of the 291st. Briefings, op schedules, voice comms,
|
||||
and unit announcements all live here. Active members are expected to stay connected.
|
||||
</p>
|
||||
<a class="btn" href="https://discord.gg/your-invite" target="_blank">Join Discord</a>
|
||||
</div>
|
||||
<iframe
|
||||
src="https://discordapp.com/widget?id=399625240927404033&theme=dark"
|
||||
allowtransparency="true"
|
||||
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts">
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- LOCATION -->
|
||||
<div id="location" class="section-wrap">
|
||||
<div class="inner">
|
||||
<div class="location-inner">
|
||||
<div class="location-info">
|
||||
<h2 class="stencil">Location</h2>
|
||||
<div class="section-divider"></div>
|
||||
<p>Based out of Ontario, Canada. Operating across North America on Eastern time.</p>
|
||||
<div class="detail">
|
||||
REGION: North America<br>
|
||||
PROVINCE: Ontario, CA<br>
|
||||
TIMEZONE: EDT / UTC-4<br>
|
||||
OP TIME: Sun 14:30–18:30
|
||||
</div>
|
||||
</div>
|
||||
<div id="map-wrap">
|
||||
<iframe
|
||||
src="https://www.openstreetmap.org/export/embed.html?bbox=-130.0%2C25.0%2C-55.0%2C55.0&layer=mapnik&marker=43.6532%2C-79.3832"
|
||||
style="pointer-events: none;"
|
||||
loading="lazy">
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- FOOTER -->
|
||||
<footer>
|
||||
<p>Copyright © 291st JTF 2025 | All Rights Reserved<br>
|
||||
Created by <a href="https://zakscode.com" target="_blank">Zak Timson</a> | Built with <a href="https://momentum.zakscode.com" target="_blank">Momentum</a></p>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
// ── DYNAMIC OPS (newest first) ──
|
||||
function getSundayOps() {
|
||||
const now = new Date();
|
||||
const day = now.getDay();
|
||||
|
||||
const lastSunday = new Date(now);
|
||||
lastSunday.setDate(now.getDate() - day);
|
||||
lastSunday.setHours(14, 30, 0, 0);
|
||||
|
||||
const todayEnd = new Date(now);
|
||||
todayEnd.setHours(18, 30, 0, 0);
|
||||
const upcomingDate = (day === 0 && now < todayEnd) ? lastSunday : new Date(lastSunday);
|
||||
if (!(day === 0 && now < todayEnd)) upcomingDate.setDate(lastSunday.getDate() + 7);
|
||||
|
||||
// newest first: upcoming, then prev 1, then prev 2
|
||||
const ops = [
|
||||
{ date: upcomingDate, upcoming: true },
|
||||
];
|
||||
for (let i = 1; i <= 2; i++) {
|
||||
const d = new Date(upcomingDate);
|
||||
d.setDate(upcomingDate.getDate() - 7 * i);
|
||||
ops.push({ date: d, upcoming: false });
|
||||
}
|
||||
return ops;
|
||||
}
|
||||
|
||||
function fmtDate(d) {
|
||||
return d.toLocaleDateString('en-CA', { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' });
|
||||
}
|
||||
|
||||
const list = document.getElementById('ops-list');
|
||||
getSundayOps().forEach(op => {
|
||||
const item = document.createElement('div');
|
||||
item.className = 'op-item' + (op.upcoming ? ' upcoming' : '');
|
||||
item.innerHTML = `
|
||||
<div class="op-date">${fmtDate(op.date)}</div>
|
||||
<div>
|
||||
<div class="op-title">
|
||||
Weekly Operation — Sunday Afternoon
|
||||
${op.upcoming ? ` <span class="badge badge-upcoming">Upcoming</span>` : ''}
|
||||
</div>
|
||||
<div class="op-desc">14:30 – 18:30 EDT | ${op.upcoming ? 'All squads report in, game TBD' : 'Operation Complete'}</div>
|
||||
</div>
|
||||
`;
|
||||
list.appendChild(item);
|
||||
});
|
||||
|
||||
// ── NAV HIGHLIGHT ──
|
||||
const navLinks = document.querySelectorAll('nav a');
|
||||
const observer = new IntersectionObserver(entries => {
|
||||
entries.forEach(e => {
|
||||
if (e.isIntersecting)
|
||||
navLinks.forEach(a => a.classList.toggle('active', a.getAttribute('href') === '#' + e.target.id));
|
||||
});
|
||||
}, { threshold: 0.4 });
|
||||
document.querySelectorAll('[id]').forEach(s => observer.observe(s));
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
311
public/login.mjs
Normal file
311
public/login.mjs
Normal file
@@ -0,0 +1,311 @@
|
||||
class JTFLogin extends HTMLElement {
|
||||
connectedCallback() {
|
||||
this.attachShadow({ mode: 'open' });
|
||||
this.shadowRoot.innerHTML = `
|
||||
<style>
|
||||
:host {
|
||||
display: flex;
|
||||
position: relative;
|
||||
height: 100vh;
|
||||
min-height: 500px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
background: radial-gradient(ellipse at center, #010d1a 0%, #000 100%);
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
}
|
||||
|
||||
/* ── BOX ── */
|
||||
.box {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
width: min(420px, 90vw);
|
||||
background: rgba(0, 8, 20, 0.92);
|
||||
border: 1px solid rgba(0,180,255,0.25);
|
||||
padding: 2.5rem;
|
||||
box-shadow:
|
||||
0 0 60px rgba(0,180,255,0.05),
|
||||
inset 0 0 40px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.box::before, .box::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0; right: 0;
|
||||
height: 1px;
|
||||
}
|
||||
.box::before { top: 6px; background: linear-gradient(90deg, transparent, rgba(0,180,255,0.3), transparent); }
|
||||
.box::after { bottom: 6px; background: linear-gradient(90deg, transparent, rgba(0,180,255,0.3), transparent); }
|
||||
|
||||
.corner {
|
||||
position: absolute;
|
||||
width: 12px; height: 12px;
|
||||
border-color: rgba(0,180,255,0.6);
|
||||
border-style: solid;
|
||||
}
|
||||
.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
|
||||
.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
|
||||
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
|
||||
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
|
||||
|
||||
/* ── HEADER ── */
|
||||
.header { text-align: center; margin-bottom: 2rem; }
|
||||
|
||||
.tag {
|
||||
font-size: 0.65rem;
|
||||
color: rgba(0,180,255,0.5);
|
||||
letter-spacing: 0.25em;
|
||||
text-transform: uppercase;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.logo-img {
|
||||
height: 120px;
|
||||
width: auto;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
margin: 0 auto 1rem;
|
||||
filter: drop-shadow(0 0 8px rgba(0,180,255,0.4));
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: 'Saira Stencil One', sans-serif;
|
||||
font-size: 1.8rem;
|
||||
color: #aaa;
|
||||
letter-spacing: 0.1em;
|
||||
margin-bottom: 0.2rem;
|
||||
text-shadow: 0 0 20px rgba(0,180,255,0.3);
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 0.65rem;
|
||||
color: rgba(0,180,255,0.4);
|
||||
letter-spacing: 0.2em;
|
||||
}
|
||||
|
||||
/* ── FIELDS ── */
|
||||
.field { margin-bottom: 1.25rem; }
|
||||
|
||||
.field label {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 0.65rem;
|
||||
color: rgba(0,180,255,0.4);
|
||||
letter-spacing: 0.2em;
|
||||
text-transform: uppercase;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.field label span { color: rgba(255,255,255,0.15); }
|
||||
|
||||
.field-value {
|
||||
width: 100%;
|
||||
padding: 0.5rem 0;
|
||||
border: none;
|
||||
border-bottom: 1px solid rgba(0,180,255,0.15);
|
||||
background: transparent;
|
||||
color: rgba(0,180,255,0.8);
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.95rem;
|
||||
letter-spacing: 0.08em;
|
||||
min-height: 2rem;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.field-value.filled {
|
||||
border-bottom-color: rgba(0,180,255,0.4);
|
||||
}
|
||||
|
||||
.field-value.locked {
|
||||
color: rgba(0,180,255,0.35);
|
||||
border-bottom-color: rgba(0,180,255,0.1);
|
||||
}
|
||||
|
||||
/* ── STATUS ── */
|
||||
.status {
|
||||
font-size: 0.68rem;
|
||||
color: rgba(0,180,255,0.4);
|
||||
letter-spacing: 0.1em;
|
||||
margin-bottom: 1.5rem;
|
||||
min-height: 1rem;
|
||||
}
|
||||
|
||||
.status.active { color: rgba(0,180,255,0.8); }
|
||||
.status.success { color: #00ff87; }
|
||||
.status.error { color: #b10000; }
|
||||
|
||||
/* ── BUTTON ── */
|
||||
button {
|
||||
width: 100%;
|
||||
padding: 0.85rem;
|
||||
background: transparent;
|
||||
border: 1px solid rgba(177,0,0,0.6);
|
||||
color: rgba(177,0,0,0.8);
|
||||
font-family: 'Share Tech Mono', monospace;
|
||||
font-size: 0.85rem;
|
||||
letter-spacing: 0.25em;
|
||||
text-transform: uppercase;
|
||||
cursor: default;
|
||||
transition: all 0.4s;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
button::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(90deg, transparent, rgba(177,0,0,0.05), transparent);
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
button.flash { animation: btnFlash 0.35s ease-in-out 4; }
|
||||
|
||||
button.proceed {
|
||||
border-color: rgba(0,255,135,0.5);
|
||||
color: #00ff87;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 20px rgba(0,255,135,0.1);
|
||||
}
|
||||
|
||||
button.proceed::before {
|
||||
animation: shimmer 2s infinite;
|
||||
}
|
||||
|
||||
button.proceed:hover {
|
||||
background: rgba(0,255,135,0.06);
|
||||
box-shadow: 0 0 30px rgba(0,255,135,0.15);
|
||||
}
|
||||
|
||||
@keyframes btnFlash {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.1; }
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% { transform: translateX(-100%); }
|
||||
100% { transform: translateX(100%); }
|
||||
}
|
||||
|
||||
/* ── DIVIDER ── */
|
||||
.divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 1.5rem;
|
||||
color: rgba(0,180,255,0.15);
|
||||
font-size: 0.6rem;
|
||||
letter-spacing: 0.2em;
|
||||
}
|
||||
.divider::before, .divider::after {
|
||||
content: '';
|
||||
flex: 1;
|
||||
height: 1px;
|
||||
background: rgba(0,180,255,0.1);
|
||||
}
|
||||
</style>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Saira+Stencil+One&family=Share+Tech+Mono&display=swap" rel="stylesheet">
|
||||
|
||||
<div class="box">
|
||||
<div class="corner corner-tl"></div>
|
||||
<div class="corner corner-tr"></div>
|
||||
<div class="corner corner-bl"></div>
|
||||
<div class="corner corner-br"></div>
|
||||
|
||||
<div class="header">
|
||||
<img class="logo-img" src="assets/img/logo.png" alt="291st JTF">
|
||||
<div class="title">291st JTF</div>
|
||||
<div class="subtitle">JOINT TASK FORCE</div>
|
||||
</div>
|
||||
|
||||
<div class="divider">OPERATOR AUTHENTICATION</div>
|
||||
|
||||
<div class="field">
|
||||
<label>Operator ID</label>
|
||||
<div class="field-value" id="f-user"></div>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label>Access Code</label>
|
||||
<div class="field-value" id="f-pass"></div>
|
||||
</div>
|
||||
|
||||
<div class="status" id="status"></div>
|
||||
<button id="btn" disabled>AUTHENTICATE</button>
|
||||
|
||||
<div class="tag">Status: SECURE | Version: 1.0.0</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
this._runSequence();
|
||||
}
|
||||
|
||||
_type(el, text, delay) {
|
||||
return new Promise(resolve => {
|
||||
let i = 0;
|
||||
const t = setInterval(() => {
|
||||
el.textContent = text.slice(0, ++i);
|
||||
if (i >= text.length) { clearInterval(t); resolve(); }
|
||||
}, delay);
|
||||
});
|
||||
}
|
||||
|
||||
_wait(ms) { return new Promise(r => setTimeout(r, ms)); }
|
||||
|
||||
_setStatus(msg, cls = '') {
|
||||
const s = this.shadowRoot.getElementById('status');
|
||||
s.textContent = msg;
|
||||
s.className = 'status ' + cls;
|
||||
}
|
||||
|
||||
async _runSequence() {
|
||||
const root = this.shadowRoot;
|
||||
const fUser = root.getElementById('f-user');
|
||||
const fPass = root.getElementById('f-pass');
|
||||
const btn = root.getElementById('btn');
|
||||
|
||||
await this._wait(700);
|
||||
this._setStatus('> INITIALISING ENCRYPTED CHANNEL...', 'active');
|
||||
|
||||
await this._wait(1200);
|
||||
this._setStatus('> BIOMETRIC HANDSHAKE CONFIRMED', 'active');
|
||||
|
||||
await this._wait(900);
|
||||
this._setStatus('> ENTER CREDENTIALS', 'active');
|
||||
|
||||
await this._wait(600);
|
||||
await this._type(fUser, 'OPERATOR_291', 75);
|
||||
fUser.classList.add('filled');
|
||||
|
||||
await this._wait(300);
|
||||
await this._type(fPass, '● ● ● ● ● ● ● ●', 55);
|
||||
fPass.classList.add('filled');
|
||||
|
||||
await this._wait(400);
|
||||
this._setStatus('> AUTHENTICATING — STANDBY...', 'active');
|
||||
|
||||
await this._wait(300);
|
||||
btn.disabled = false;
|
||||
btn.classList.add('flash');
|
||||
|
||||
await this._wait(1500);
|
||||
btn.classList.remove('flash');
|
||||
|
||||
this._setStatus('> ACCESS GRANTED — IDENTITY VERIFIED ✓', 'success');
|
||||
|
||||
fUser.classList.remove('filled');
|
||||
fPass.classList.remove('filled');
|
||||
fUser.classList.add('locked');
|
||||
fPass.classList.add('locked');
|
||||
|
||||
btn.textContent = 'PROCEED ▶';
|
||||
btn.classList.add('proceed');
|
||||
|
||||
btn.addEventListener('click', () => {
|
||||
document.getElementById('main-nav')?.scrollIntoView({ behavior: 'smooth' });
|
||||
}, { once: true });
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define('jtf-login', JTFLogin);
|
||||
Reference in New Issue
Block a user