Initial icosin.org website
Static site for ICOSIN (International Conference on Smart Informatics), organized by the Department of Informatics, Universitas Tanjungpura. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -0,0 +1,317 @@
|
||||
/* ICOSIN — International Conference on Smart Informatics
|
||||
Palette "Borneo Heritage": sand, deep forest green, terracotta (Dayak carving red-ochre), arc gold.
|
||||
Type: Plus Jakarta Sans (designed in Jakarta) for display and UI. */
|
||||
:root {
|
||||
--bg: #fffdf8;
|
||||
--surface: #f5eee2;
|
||||
--surface-2: #efe5d4;
|
||||
--ink: #1f2a26;
|
||||
--ink-soft: #5f655c;
|
||||
--line: #e7dccb;
|
||||
--primary: #0e5a4a;
|
||||
--primary-deep: #093d33;
|
||||
--primary-soft: #e3eee9;
|
||||
--accent: #b5532f;
|
||||
--accent-soft: #f6e2d8;
|
||||
--gold: #c9a54a;
|
||||
--white: #ffffff;
|
||||
--radius: 14px;
|
||||
--shadow: 0 14px 40px -26px rgba(31, 42, 38, .45);
|
||||
--max: 1200px;
|
||||
--font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html { scroll-behavior: smooth; }
|
||||
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
|
||||
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
|
||||
img { max-width: 100%; display: block; }
|
||||
a { color: var(--primary); text-underline-offset: 3px; }
|
||||
a:hover { color: var(--accent); }
|
||||
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; text-wrap: balance; }
|
||||
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
|
||||
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
|
||||
p { margin: 0 0 1em; }
|
||||
[id] { scroll-margin-top: 90px; }
|
||||
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
|
||||
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
|
||||
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }
|
||||
|
||||
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
|
||||
.eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
|
||||
|
||||
/* ---------- Header ---------- */
|
||||
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 253, 248, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
|
||||
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
|
||||
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
|
||||
.brand img { width: 40px; height: auto; }
|
||||
.brand b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: .05em; color: var(--primary); line-height: 1.1; }
|
||||
.brand small { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
|
||||
@media (max-width: 480px) { .site-header .brand small { display: none; } }
|
||||
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; align-items: center; }
|
||||
.nav-links > li { position: relative; }
|
||||
.nav-links a, .nav-links button { font: 600 .88rem var(--font); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 9px 11px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
|
||||
.nav-links a:hover, .nav-links button:hover, .nav-links a[aria-current="page"], .has-sub:focus-within > button { background: var(--surface); color: var(--primary); }
|
||||
.nav-links button svg { width: 12px; height: 12px; transition: transform .2s; }
|
||||
.has-sub:hover > button svg, .has-sub:focus-within > button svg { transform: rotate(180deg); }
|
||||
.submenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; }
|
||||
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
|
||||
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
|
||||
.submenu a { display: block; padding: 8px 12px; font-weight: 500; }
|
||||
.nav-cta { margin-left: 8px; }
|
||||
.nav-links a.btn-primary { background: var(--primary); color: var(--white); padding: 9px 16px; }
|
||||
.nav-links a.btn-primary:hover { background: var(--primary-deep); color: var(--white); }
|
||||
.menu-toggle { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
|
||||
.menu-toggle svg { width: 22px; height: 22px; }
|
||||
@media (min-width: 1160px) { .nav-links { display: flex; } .menu-toggle { display: none; } }
|
||||
.mobile-menu { display: none; position: fixed; inset: 72px 0 0 0; background: var(--bg); padding: 12px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); z-index: 49; overflow-y: auto; border-top: 1px solid var(--line); }
|
||||
.mobile-menu.open { display: block; }
|
||||
.mobile-menu a { display: block; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; padding: 12px 4px; border-bottom: 1px solid var(--line); }
|
||||
.mobile-menu .group { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding: 20px 4px 4px; }
|
||||
.mobile-menu .sub { font-weight: 500; font-size: .98rem; padding-left: 14px; }
|
||||
.mobile-menu .btn { margin-top: 20px; display: inline-flex; border: 0; color: var(--white); }
|
||||
|
||||
/* ---------- Buttons ---------- */
|
||||
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .92rem var(--font); text-decoration: none; cursor: pointer; padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
|
||||
.btn:hover { transform: translateY(-1px); }
|
||||
.btn-primary { background: var(--primary); color: var(--white); }
|
||||
.btn-primary:hover { background: var(--primary-deep); color: var(--white); }
|
||||
.btn-accent { background: var(--accent); color: var(--white); }
|
||||
.btn-accent:hover { background: #9a4426; color: var(--white); }
|
||||
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
|
||||
.btn-outline:hover { background: var(--primary-soft); color: var(--primary); }
|
||||
.btn-light { background: var(--white); color: var(--primary); }
|
||||
.btn-light:hover { background: var(--surface); color: var(--primary); }
|
||||
.btn-sm { padding: 8px 14px; font-size: .84rem; }
|
||||
|
||||
/* ---------- Hero (home) ---------- */
|
||||
.hero { position: relative; overflow: hidden; background: radial-gradient(90% 120% at 85% 30%, var(--surface) 0%, var(--bg) 60%); border-bottom: 1px solid var(--line); }
|
||||
.hero .wrap { display: grid; gap: 24px; align-items: center; padding-block: 56px 48px; }
|
||||
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-block: 72px 64px; } }
|
||||
.hero-copy { position: relative; z-index: 1; min-width: 0; }
|
||||
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
|
||||
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
|
||||
.badge.green { background: var(--primary); border-color: var(--primary); color: var(--white); }
|
||||
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
|
||||
.hero-kicker { font-size: 1.02rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
|
||||
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; color: var(--primary); margin-bottom: 16px; }
|
||||
.hero h1 span { color: var(--accent); }
|
||||
.hero-theme { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink); max-width: 34em; }
|
||||
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 22px 0 28px; font-weight: 600; }
|
||||
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
|
||||
.hero-meta svg { width: 19px; height: 19px; flex: none; color: var(--accent); }
|
||||
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
|
||||
.hero-art { position: relative; min-width: 0; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
|
||||
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
|
||||
.hero-art .fallback { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, var(--primary-soft), transparent 70%); }
|
||||
.has-3d .hero-art .fallback { display: none; }
|
||||
.map-label { position: absolute; left: 0; top: 0; pointer-events: none; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); white-space: nowrap; opacity: 0; transition: opacity .6s; }
|
||||
.map-label.show { opacity: 1; }
|
||||
.map-label small { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--ink-soft); }
|
||||
@media (max-width: 959px) { .hero-art { max-width: 420px; } }
|
||||
|
||||
/* Carved border — a band of repeated hooks, used as a divider */
|
||||
.carve { height: 14px; background:
|
||||
radial-gradient(circle at 7px 14px, transparent 5px, var(--accent) 5.5px, var(--accent) 7px, transparent 7.5px) 0 0/28px 14px repeat-x,
|
||||
radial-gradient(circle at 21px 0, transparent 5px, var(--primary) 5.5px, var(--primary) 7px, transparent 7.5px) 0 0/28px 14px repeat-x;
|
||||
opacity: .55; }
|
||||
|
||||
/* ---------- Sections ---------- */
|
||||
section { padding-block: 80px; }
|
||||
@media (max-width: 719px) { section { padding-block: 56px; } }
|
||||
.band { background: var(--surface); }
|
||||
.band-green { background: var(--primary); color: rgba(255,255,255,.88); }
|
||||
.band-green h2, .band-green h3 { color: var(--white); }
|
||||
.band-green .eyebrow { color: var(--gold); }
|
||||
.band-green a:not(.btn) { color: var(--gold); }
|
||||
.section-head { max-width: 720px; margin-bottom: 36px; }
|
||||
.section-head p { color: var(--ink-soft); font-size: 1.04rem; }
|
||||
.band-green .section-head p { color: rgba(255,255,255,.75); }
|
||||
|
||||
.grid { display: grid; gap: 20px; }
|
||||
.grid > *, .split > *, .with-toc > * { min-width: 0; }
|
||||
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
|
||||
.split { display: grid; gap: 40px; align-items: start; }
|
||||
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }
|
||||
|
||||
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
|
||||
.band .card { border-color: var(--surface-2); }
|
||||
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); }
|
||||
.icon-tile svg { width: 22px; height: 22px; }
|
||||
|
||||
/* Welcome text */
|
||||
.welcome { max-width: 780px; font-size: 1.06rem; }
|
||||
.welcome p:first-of-type { font-size: 1.14rem; color: var(--primary); font-weight: 500; }
|
||||
|
||||
/* Welcome video (16:9 YouTube embed) */
|
||||
.video { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--primary-deep); margin-top: 8px; box-shadow: var(--shadow); }
|
||||
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
|
||||
|
||||
/* Tracks */
|
||||
.track { padding: 28px; }
|
||||
.track .tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
|
||||
.track h3 { color: var(--primary); font-size: 1.3rem; }
|
||||
.track ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
|
||||
.track li { padding-left: 22px; position: relative; color: var(--ink); }
|
||||
.track li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
|
||||
.track .more { margin-top: 14px; font-weight: 700; font-size: .9rem; }
|
||||
|
||||
/* Important dates */
|
||||
.dates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
|
||||
.dates li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
|
||||
.dates time { font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
|
||||
.dates s { display: block; font-weight: 500; font-size: .82rem; color: var(--ink-soft); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
|
||||
.dates time.changed { color: var(--accent); }
|
||||
.dates strong { font-weight: 600; }
|
||||
.dates li.past { opacity: .5; }
|
||||
.dates li.next strong::after { content: "Up next"; margin-left: 10px; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--white); padding: 3px 8px; border-radius: 999px; vertical-align: 2px; }
|
||||
.dates li.main strong { font-weight: 800; color: var(--primary); }
|
||||
@media (max-width: 560px) { .dates li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
|
||||
|
||||
.countdown-card { background: var(--primary); color: var(--white); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
|
||||
.countdown-card h3 { color: var(--white); margin-bottom: 4px; }
|
||||
.countdown-card p { color: rgba(255,255,255,.75); margin: 0 0 20px; font-size: .92rem; }
|
||||
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
|
||||
.countdown div { background: rgba(255,255,255,.1); border-radius: 10px; padding: 12px 4px; text-align: center; }
|
||||
.countdown b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.05; color: var(--white); font-variant-numeric: tabular-nums; }
|
||||
.countdown small { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
|
||||
.countdown-card .venue { margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.85); }
|
||||
|
||||
/* People */
|
||||
.person { text-align: center; padding: 28px 20px; }
|
||||
.person .ph { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; background: var(--surface); outline: 2px solid var(--gold); outline-offset: 4px; }
|
||||
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
|
||||
.person h3 { font-size: 1rem; margin-bottom: 4px; }
|
||||
.person p { color: var(--ink-soft); font-size: .9rem; margin: 0; }
|
||||
.person .flag { display: inline-block; margin-top: 10px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
|
||||
.people-label { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 40px 0 16px; }
|
||||
|
||||
/* General chair */
|
||||
.chair { display: grid; gap: 30px; align-items: start; }
|
||||
@media (min-width: 860px) { .chair { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
|
||||
.chair-photo { aspect-ratio: 4 / 5; max-width: 240px; border-radius: var(--radius); overflow: hidden; background: var(--primary-soft); display: grid; place-items: center; border: 1px solid var(--line); }
|
||||
.chair-photo img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.chair-photo span { font-size: 3.2rem; font-weight: 800; color: var(--primary); opacity: .6; }
|
||||
.chair blockquote { margin: 0; font-size: 1.06rem; max-width: 66ch; }
|
||||
.chair blockquote p:first-child::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
|
||||
.chair .sig b { display: block; font-weight: 800; color: var(--primary); }
|
||||
.chair .sig span { color: var(--ink-soft); font-size: .92rem; }
|
||||
|
||||
/* Proceedings volumes */
|
||||
.vol-grid { display: grid; gap: 16px; }
|
||||
@media (min-width: 760px) { .vol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
|
||||
.vol { border-radius: var(--radius); padding: 24px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 180px; text-decoration: none; color: var(--ink); }
|
||||
.vol b { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
|
||||
.vol .grow { flex: 1; margin-top: 10px; }
|
||||
.vol .muted { font-size: .88rem; }
|
||||
.vol.ghost { background: transparent; border-style: dashed; color: var(--ink-soft); }
|
||||
.vol.ghost b { color: var(--ink-soft); }
|
||||
|
||||
/* Logo strip */
|
||||
.logo-strip { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-start; }
|
||||
.logo-group h4 { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
|
||||
.logo-group .row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
|
||||
.logo-tile { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; height: 84px; display: grid; place-items: center; }
|
||||
.logo-tile img { max-height: 60px; width: auto; }
|
||||
.logo-tile.wide img { max-height: 44px; }
|
||||
.logo-group p { margin: 10px 0 0; font-size: .86rem; color: var(--ink-soft); max-width: 320px; }
|
||||
|
||||
/* CTA */
|
||||
.cta { display: grid; gap: 20px; align-items: center; background: var(--primary); color: var(--white); border-radius: 18px; padding: 40px; position: relative; overflow: hidden; }
|
||||
@media (min-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr) auto; padding: 44px 52px; } }
|
||||
.cta h2 { color: var(--white); margin-bottom: 6px; }
|
||||
.cta p { margin: 0; color: rgba(255,255,255,.8); max-width: 60ch; }
|
||||
.cta .hero-actions { justify-content: flex-start; }
|
||||
.cta::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 22px solid rgba(201,165,74,.18); pointer-events: none; }
|
||||
|
||||
/* ---------- Inner pages ---------- */
|
||||
.page-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 56px 44px; }
|
||||
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; color: var(--primary); }
|
||||
.page-hero p { color: var(--ink-soft); max-width: 680px; font-size: 1.05rem; margin: 0; }
|
||||
.page-hero .hero-meta { margin-bottom: 0; }
|
||||
.crumbs { font-size: .84rem; color: var(--ink-soft); margin-bottom: 12px; }
|
||||
|
||||
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
|
||||
th { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); background: var(--bg); }
|
||||
tr:last-child td { border-bottom: 0; }
|
||||
td.num { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--primary); white-space: nowrap; }
|
||||
|
||||
.prose { max-width: 780px; }
|
||||
.prose h2 { font-size: 1.5rem; margin-top: 1.9em; }
|
||||
.prose h2:first-child { margin-top: 0; }
|
||||
.prose ul, .prose ol { padding-left: 1.2em; }
|
||||
.prose li { margin-bottom: .45em; }
|
||||
.toc { position: sticky; top: 100px; }
|
||||
.toc a { display: block; padding: 7px 0 7px 14px; text-decoration: none; color: var(--ink-soft); border-left: 2px solid var(--line); font-size: .9rem; }
|
||||
.toc a:hover { color: var(--primary); border-color: var(--accent); }
|
||||
.with-toc { display: grid; gap: 40px; }
|
||||
@media (min-width: 960px) { .with-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
|
||||
@media (max-width: 959px) { .toc { display: none; } }
|
||||
.note { border-left: 4px solid var(--gold); background: var(--surface); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 1.2em 0; }
|
||||
|
||||
.download { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-decoration: none; color: var(--ink); margin-bottom: 10px; }
|
||||
.download:hover { border-color: var(--primary); color: var(--ink); }
|
||||
.download .ext { width: 46px; height: 46px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--white); background: var(--primary); }
|
||||
.download b { display: block; }
|
||||
.download span { font-size: .86rem; color: var(--ink-soft); }
|
||||
.download.soon { pointer-events: none; }
|
||||
.download.soon .ext { background: var(--surface-2); color: var(--ink-soft); }
|
||||
.download.soon b::after { content: "Coming soon"; margin-left: 8px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
|
||||
|
||||
.role-group { margin-bottom: 44px; }
|
||||
.role-group > h3 { font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
|
||||
.names { display: grid; gap: 12px; }
|
||||
@media (min-width: 720px) { .names { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
@media (min-width: 1000px) { .names { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
|
||||
.names div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
|
||||
.names b { display: block; font-weight: 700; color: var(--ink); }
|
||||
.names span { color: var(--ink-soft); font-size: .86rem; }
|
||||
.names div.lead { border-color: var(--primary); background: var(--primary-soft); }
|
||||
|
||||
details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
|
||||
summary { cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 700; list-style: none; position: relative; }
|
||||
summary::-webkit-details-marker { display: none; }
|
||||
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
|
||||
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
|
||||
details > div { padding: 0 18px 16px; color: var(--ink-soft); }
|
||||
|
||||
.map { border: 0; width: 100%; aspect-ratio: 16 / 10; max-width: 100%; border-radius: var(--radius); background: var(--surface); }
|
||||
|
||||
.edition { display: grid; overflow: hidden; padding: 0; text-decoration: none; color: var(--ink); }
|
||||
@media (min-width: 800px) { .edition { grid-template-columns: 260px minmax(0, 1fr); } }
|
||||
.edition .ed-year { background: var(--primary); color: var(--white); padding: 30px; display: flex; flex-direction: column; justify-content: center; }
|
||||
.edition .ed-year small { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
|
||||
.edition .ed-year b { font-size: 3.2rem; font-weight: 800; line-height: 1; }
|
||||
.edition .ed-body { padding: 26px 30px; }
|
||||
.edition.soon .ed-year { background: var(--surface-2); color: var(--ink-soft); }
|
||||
.edition.soon .ed-year small { color: var(--accent); }
|
||||
|
||||
/* ---------- Footer ---------- */
|
||||
.site-footer { background: var(--primary-deep); color: rgba(255,255,255,.7); padding-block: 60px 26px; font-size: .9rem; }
|
||||
.site-footer .brand b { color: var(--white); }
|
||||
.site-footer .brand small { color: rgba(255,255,255,.6); }
|
||||
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
|
||||
.site-footer a:hover { color: var(--gold); }
|
||||
.foot-grid { display: grid; gap: 32px; margin-bottom: 40px; }
|
||||
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
|
||||
.site-footer h4 { color: var(--white); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
|
||||
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
|
||||
.foot-owner { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
|
||||
.foot-owner .logo-tile { height: 58px; padding: 8px 12px; border: 0; }
|
||||
.foot-owner .logo-tile img { max-height: 40px; }
|
||||
.foot-owner .logo-tile.wide img { max-height: 30px; }
|
||||
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .8rem; }
|
||||
|
||||
/* Entrance — content is visible at rest; this only adds a gentle lift when supported */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.rise { animation: rise .7s ease both; }
|
||||
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
|
||||
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
|
||||
}
|
||||
|
||||
.muted { color: var(--ink-soft); }
|
||||
.center { text-align: center; }
|
||||
|
After Width: | Height: | Size: 184 KiB |
|
After Width: | Height: | Size: 276 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 46 KiB |
@@ -0,0 +1,300 @@
|
||||
/*
|
||||
* ICOSIN hero accent — a node network in the shape of Borneo (Equator through Pontianak,
|
||||
* link to the co-host campus). Every few seconds the same particles regroup into the
|
||||
* logos of the organizer and the co-host side by side, then return to the map.
|
||||
* Logos come from the current edition's partners in data/editions.js.
|
||||
*/
|
||||
import * as THREE from "https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js";
|
||||
|
||||
const box = document.querySelector(".hero-art");
|
||||
const canvas = box && box.querySelector("canvas");
|
||||
const reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
||||
const root = document.body.getAttribute("data-root") || "";
|
||||
|
||||
function hasWebGL() {
|
||||
try { const c = document.createElement("canvas"); return !!(c.getContext("webgl2") || c.getContext("webgl")); }
|
||||
catch (e) { return false; }
|
||||
}
|
||||
|
||||
if (canvas && hasWebGL()) {
|
||||
document.documentElement.classList.add("has-3d");
|
||||
init();
|
||||
}
|
||||
|
||||
/* Timeline (seconds): logos → morph → map → morph back → logos … (starts on the logos) */
|
||||
const T_LOGO = 4, T_MORPH = 1.6, T_MAP = 5;
|
||||
const CYCLE = T_LOGO + T_MORPH + T_MAP + T_MORPH;
|
||||
|
||||
function loadImage(src) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const img = new Image();
|
||||
img.onload = () => resolve(img);
|
||||
img.onerror = reject;
|
||||
img.src = src;
|
||||
});
|
||||
}
|
||||
|
||||
/* The logo's ink pixels when drawn `W` pixels wide (white fill and transparent areas skipped). */
|
||||
function inkPixels(img, W) {
|
||||
const H = Math.round(W * img.height / img.width);
|
||||
const c = document.createElement("canvas"); c.width = W; c.height = H;
|
||||
const g = c.getContext("2d");
|
||||
g.drawImage(img, 0, 0, W, H);
|
||||
const data = g.getImageData(0, 0, W, H).data;
|
||||
const ink = [];
|
||||
for (let y = 0; y < H; y++) {
|
||||
for (let x = 0; x < W; x++) {
|
||||
const i = (y * W + x) * 4;
|
||||
const r = data[i], gg = data[i + 1], b = data[i + 2], a = data[i + 3];
|
||||
if (a < 140 || Math.min(r, gg, b) > 205) continue;
|
||||
ink.push([x, y, r, gg, b]);
|
||||
}
|
||||
}
|
||||
return { ink, W, H };
|
||||
}
|
||||
|
||||
/* Lay the dots on a regular grid over the logo: one dot per ink pixel, at the finest grid
|
||||
that still fits `count` dots. Random sampling leaves uneven holes that read as scratches. */
|
||||
function sampleLogo(img, count, cx, size) {
|
||||
let lo = 40, hi = 1200, best = inkPixels(img, lo);
|
||||
while (hi - lo > 4) {
|
||||
const mid = (lo + hi) >> 1;
|
||||
const s = inkPixels(img, mid);
|
||||
if (s.ink.length <= count) { best = s; lo = mid; } else hi = mid;
|
||||
}
|
||||
const { ink, W, H } = best;
|
||||
const scale = size / Math.max(W, H);
|
||||
const out = [];
|
||||
ink.forEach((p) => {
|
||||
// pixel colours are sRGB; three.js works in linear colour, so convert or the logos look washed out
|
||||
const c = new THREE.Color().setRGB(p[2] / 255, p[3] / 255, p[4] / 255, THREE.SRGBColorSpace);
|
||||
out.push({ pos: [cx + (p[0] + 0.5 - W / 2) * scale, (H / 2 - p[1] - 0.5) * scale, 0], col: [c.r, c.g, c.b] });
|
||||
});
|
||||
// spare particles sit exactly on existing dots, so they add nothing visible
|
||||
for (let k = 0; out.length < count; k++) out.push(out[k % ink.length]);
|
||||
out.spacing = scale;
|
||||
return out;
|
||||
}
|
||||
|
||||
function init() {
|
||||
const COAST = [
|
||||
[109.6, 2.1], [110.3, 1.7], [111.2, 2.4], [111.8, 2.9], [113.0, 3.2], [114.0, 4.6], [115.0, 4.9],
|
||||
[115.5, 5.3], [116.1, 6.0], [116.8, 7.0], [117.3, 6.6], [117.7, 5.9], [119.2, 5.1], [118.3, 4.4],
|
||||
[117.8, 4.0], [117.6, 3.0], [118.0, 2.3], [118.9, 1.1], [117.9, 0.8], [117.5, 0.0], [117.5, -0.9],
|
||||
[116.9, -1.5], [116.5, -2.5], [116.2, -3.3], [116.0, -3.9], [115.0, -4.0], [114.5, -3.5],
|
||||
[113.0, -3.2], [112.0, -3.4], [111.6, -3.0], [110.7, -3.0], [110.2, -2.9], [110.0, -1.8],
|
||||
[109.4, -0.9], [109.0, 0.0], [108.9, 0.8], [109.0, 1.5]
|
||||
];
|
||||
const S = 0.62, C0 = [114.0, 1.4];
|
||||
const geo = ([lon, lat]) => [(lon - C0[0]) * S, (lat - C0[1]) * S];
|
||||
const poly = COAST.map(geo);
|
||||
const PNK = geo([109.33, -0.03]);
|
||||
const SMH = geo([110.5, 1.46]);
|
||||
const EQ_Y = geo([0, 0])[1];
|
||||
|
||||
const inside = (x, y) => {
|
||||
let c = false;
|
||||
for (let i = 0, j = poly.length - 1; i < poly.length; j = i++) {
|
||||
const [xi, yi] = poly[i], [xj, yj] = poly[j];
|
||||
if ((yi > y) !== (yj > y) && x < ((xj - xi) * (y - yi)) / (yj - yi) + xi) c = !c;
|
||||
}
|
||||
return c;
|
||||
};
|
||||
|
||||
/* Map layout: the first NET nodes carry the network links, up to MAP_N fill the island lightly.
|
||||
The logos need many more dots, so particles beyond MAP_N wait stacked on a map node
|
||||
(invisible in the map) and spread out only when the logos form. */
|
||||
const NET = 380;
|
||||
const MAP_N = 1200;
|
||||
const N = window.innerWidth < 720 ? 16000 : 40000;
|
||||
const map = [];
|
||||
let perim = 0;
|
||||
const segs = poly.map((p, i) => { const q = poly[(i + 1) % poly.length]; const l = Math.hypot(q[0] - p[0], q[1] - p[1]); perim += l; return { p, q, l }; });
|
||||
const EDGE = 120;
|
||||
for (let k = 0; k < EDGE; k++) {
|
||||
let d = (k / EDGE) * perim;
|
||||
for (const s of segs) { if (d <= s.l) { const t = d / s.l; map.push([s.p[0] + (s.q[0] - s.p[0]) * t, s.p[1] + (s.q[1] - s.p[1]) * t, 0]); break; } d -= s.l; }
|
||||
}
|
||||
while (map.length < MAP_N) {
|
||||
const x = (Math.random() - 0.5) * 7.2, y = (Math.random() - 0.5) * 7.4;
|
||||
if (inside(x, y)) map.push([x, y, (Math.random() - 0.5) * (map.length < NET ? 0.8 : 0.3)]);
|
||||
}
|
||||
for (let i = MAP_N; i < N; i++) map.push(map[i % MAP_N].slice());
|
||||
|
||||
const renderer = new THREE.WebGLRenderer({ canvas, antialias: true, alpha: true });
|
||||
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
|
||||
const scene = new THREE.Scene();
|
||||
const camera = new THREE.PerspectiveCamera(36, 1, 0.1, 100);
|
||||
camera.position.set(0, -0.2, 12.4);
|
||||
const group = new THREE.Group();
|
||||
scene.add(group);
|
||||
|
||||
const GREEN = new THREE.Color("#0e5a4a"), TERRA = new THREE.Color("#b5532f"), GOLD = new THREE.Color("#c9a54a");
|
||||
|
||||
/* Particles: position and colour are blended between the map and the logo layouts. */
|
||||
const pos = new Float32Array(N * 3), col = new Float32Array(N * 3);
|
||||
const mapCol = new Float32Array(N * 3);
|
||||
let logoPos = null, logoCol = null;
|
||||
for (let i = 0; i < N; i++) {
|
||||
pos.set(map[i], i * 3);
|
||||
if (i >= MAP_N) { mapCol.set(mapCol.subarray((i % MAP_N) * 3, (i % MAP_N) * 3 + 3), i * 3); continue; }
|
||||
const c = i < NET ? (Math.random() < 0.12 ? TERRA : GREEN) : GREEN;
|
||||
mapCol.set([c.r, c.g, c.b], i * 3);
|
||||
}
|
||||
col.set(mapCol);
|
||||
const pGeo = new THREE.BufferGeometry();
|
||||
pGeo.setAttribute("position", new THREE.BufferAttribute(pos, 3));
|
||||
pGeo.setAttribute("color", new THREE.BufferAttribute(col, 3));
|
||||
const dot = (() => {
|
||||
const c = document.createElement("canvas"); c.width = c.height = 64;
|
||||
const g = c.getContext("2d"); g.beginPath(); g.arc(32, 32, 28, 0, Math.PI * 2); g.fillStyle = "#fff"; g.fill();
|
||||
return new THREE.CanvasTexture(c);
|
||||
})();
|
||||
let logoDot = 0.06;
|
||||
const pMat = new THREE.PointsMaterial({ size: 0.06, vertexColors: true, map: dot, transparent: true, alphaTest: 0.4 });
|
||||
group.add(new THREE.Points(pGeo, pMat));
|
||||
|
||||
/* Network links among the first NET nodes (map state only). */
|
||||
const pairs = [];
|
||||
for (let i = 0; i < NET; i++) {
|
||||
let f = 0;
|
||||
for (let j = i + 1; j < NET && f < 3; j++) {
|
||||
const dx = map[i][0] - map[j][0], dy = map[i][1] - map[j][1];
|
||||
if (dx * dx + dy * dy < 0.36) { pairs.push(i, j); f++; }
|
||||
}
|
||||
}
|
||||
const lPos = new Float32Array(pairs.length * 3);
|
||||
const lGeo = new THREE.BufferGeometry();
|
||||
lGeo.setAttribute("position", new THREE.BufferAttribute(lPos, 3));
|
||||
const lMat = new THREE.LineBasicMaterial({ color: GREEN, transparent: true, opacity: 0.22 });
|
||||
group.add(new THREE.LineSegments(lGeo, lMat));
|
||||
|
||||
/* Map furniture: Equator, the two campuses and the link between them. */
|
||||
const furniture = [];
|
||||
const eqMat = new THREE.LineDashedMaterial({ color: GOLD, dashSize: 0.14, gapSize: 0.1, transparent: true });
|
||||
const eq = new THREE.Line(new THREE.BufferGeometry().setFromPoints([new THREE.Vector3(-4.6, EQ_Y, 0), new THREE.Vector3(4.6, EQ_Y, 0)]), eqMat);
|
||||
eq.computeLineDistances(); group.add(eq); furniture.push({ m: eqMat, o: 1 });
|
||||
|
||||
const A = new THREE.Vector3(PNK[0], PNK[1], 0), B = new THREE.Vector3(SMH[0], SMH[1], 0);
|
||||
const rings = [];
|
||||
[A, B].forEach((v) => {
|
||||
const dm = new THREE.MeshBasicMaterial({ color: TERRA, transparent: true });
|
||||
const m = new THREE.Mesh(new THREE.SphereGeometry(0.11, 24, 16), dm);
|
||||
m.position.copy(v); group.add(m); furniture.push({ m: dm, o: 1 });
|
||||
const rm = new THREE.MeshBasicMaterial({ color: TERRA, transparent: true, opacity: 0.5, side: THREE.DoubleSide });
|
||||
const ring = new THREE.Mesh(new THREE.RingGeometry(0.18, 0.21, 40), rm);
|
||||
ring.position.copy(v); group.add(ring); rings.push(ring); furniture.push({ m: rm, o: 0.5 });
|
||||
});
|
||||
const mid = A.clone().add(B).multiplyScalar(0.5).add(new THREE.Vector3(-0.3, 0.1, 0.9));
|
||||
const arcMat = new THREE.LineBasicMaterial({ color: TERRA, transparent: true });
|
||||
group.add(new THREE.Line(new THREE.BufferGeometry().setFromPoints(new THREE.QuadraticBezierCurve3(A, mid, B).getPoints(40)), arcMat));
|
||||
furniture.push({ m: arcMat, o: 1 });
|
||||
|
||||
const labels = [
|
||||
{ el: box.querySelector("[data-city=pnk]"), v: A },
|
||||
{ el: box.querySelector("[data-city=smh]"), v: B }
|
||||
];
|
||||
|
||||
/* Logo layout, built once the logo images load. */
|
||||
const ed = window.ICOSIN && window.ICOSIN.editions[window.ICOSIN.current];
|
||||
const host = ed && ed.partners.find((p) => p.role === "Organizer");
|
||||
const cohost = ed && ed.partners.find((p) => p.role === "Co-host");
|
||||
if (!reduceMotion && host && cohost) {
|
||||
group.visible = false; // stay hidden until the logos are ready, so the map never flashes first
|
||||
Promise.all([loadImage(root + "assets/img/logos/" + host.logos[0]), loadImage(root + "assets/img/logos/" + cohost.logos[0])])
|
||||
.then(([imgA, imgB]) => {
|
||||
const half = Math.floor(N / 2);
|
||||
const a = sampleLogo(imgA, half, -1.95, 3.6);
|
||||
const b = sampleLogo(imgB, N - half, 1.95, 3.6);
|
||||
// round dots just large enough to close the gaps of the grid (diagonals included)
|
||||
logoDot = Math.max(a.spacing, b.spacing) * 1.7;
|
||||
const all = a.concat(b);
|
||||
// pair map nodes with logo points left-to-right so the regrouping flows sideways
|
||||
const mapOrder = [...Array(N).keys()].sort((i, j) => map[i][0] - map[j][0]);
|
||||
const logoOrder = [...Array(N).keys()].sort((i, j) => all[i].pos[0] - all[j].pos[0]);
|
||||
logoPos = new Float32Array(N * 3); logoCol = new Float32Array(N * 3);
|
||||
mapOrder.forEach((mi, r) => { const L = all[logoOrder[r]]; logoPos.set(L.pos, mi * 3); logoCol.set(L.col, mi * 3); });
|
||||
clock.start();
|
||||
group.visible = true;
|
||||
})
|
||||
.catch((err) => { console.warn("[icosin-hero] logos unavailable, keeping the map:", err); group.visible = true; });
|
||||
}
|
||||
|
||||
function resize() {
|
||||
const w = box.clientWidth, h = box.clientHeight;
|
||||
renderer.setSize(w, h, false);
|
||||
camera.aspect = w / h;
|
||||
camera.updateProjectionMatrix();
|
||||
}
|
||||
resize();
|
||||
window.addEventListener("resize", resize);
|
||||
|
||||
const mouse = { x: 0, y: 0 };
|
||||
if (!reduceMotion) {
|
||||
box.addEventListener("pointermove", (e) => {
|
||||
const r = box.getBoundingClientRect();
|
||||
mouse.x = ((e.clientX - r.left) / r.width - 0.5) * 2;
|
||||
mouse.y = ((e.clientY - r.top) / r.height - 0.5) * 2;
|
||||
});
|
||||
box.addEventListener("pointerleave", () => { mouse.x = 0; mouse.y = 0; });
|
||||
}
|
||||
|
||||
const ease = (t) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2);
|
||||
// 0 = map, 1 = logos
|
||||
function logoAmount(t) {
|
||||
const c = t % CYCLE;
|
||||
if (c < T_LOGO) return 1;
|
||||
if (c < T_LOGO + T_MORPH) return 1 - ease((c - T_LOGO) / T_MORPH);
|
||||
if (c < T_LOGO + T_MORPH + T_MAP) return 0;
|
||||
return ease((c - T_LOGO - T_MORPH - T_MAP) / T_MORPH);
|
||||
}
|
||||
|
||||
const tmp = new THREE.Vector3();
|
||||
const clock = new THREE.Clock();
|
||||
const spin = new THREE.Clock();
|
||||
let visible = true;
|
||||
new IntersectionObserver(([e]) => { visible = e.isIntersecting; }).observe(box);
|
||||
|
||||
let lastK = -1;
|
||||
function frame() {
|
||||
const t = reduceMotion ? 0 : spin.getElapsedTime();
|
||||
const k = logoPos ? logoAmount(clock.getElapsedTime()) : 0;
|
||||
|
||||
if (k !== lastK) {
|
||||
for (let i = 0; i < N * 3; i++) {
|
||||
pos[i] = map[(i / 3) | 0][i % 3] + ((logoPos ? logoPos[i] : 0) - map[(i / 3) | 0][i % 3]) * k;
|
||||
col[i] = mapCol[i] + ((logoCol ? logoCol[i] : 0) - mapCol[i]) * k;
|
||||
}
|
||||
pGeo.attributes.position.needsUpdate = true;
|
||||
pGeo.attributes.color.needsUpdate = true;
|
||||
for (let p = 0; p < pairs.length; p++) { const i = pairs[p]; lPos.set([pos[i * 3], pos[i * 3 + 1], pos[i * 3 + 2]], p * 3); }
|
||||
lGeo.attributes.position.needsUpdate = true;
|
||||
lastK = k;
|
||||
}
|
||||
|
||||
const fade = Math.max(0, 1 - k * 2.5); // map details vanish early in the morph and return late
|
||||
lMat.opacity = 0.22 * fade;
|
||||
furniture.forEach((f) => { f.m.opacity = f.o * fade; });
|
||||
pMat.size = 0.06 + (logoDot - 0.06) * k;
|
||||
|
||||
// turn gently on the map; face the viewer squarely while showing the logos
|
||||
const swayY = (Math.sin(t * 0.25) * 0.35 + mouse.x * 0.25) * (1 - k);
|
||||
const swayX = (-0.12 + mouse.y * 0.12) * (1 - k);
|
||||
group.rotation.y += (swayY - group.rotation.y) * 0.06;
|
||||
group.rotation.x += (swayX - group.rotation.x) * 0.06;
|
||||
rings.forEach((r) => r.scale.setScalar(1 + 0.25 * Math.sin(t * 2.4)));
|
||||
renderer.render(scene, camera);
|
||||
|
||||
const w = box.clientWidth, h = box.clientHeight;
|
||||
group.updateMatrixWorld();
|
||||
labels.forEach((l) => {
|
||||
if (!l.el) return;
|
||||
tmp.copy(l.v).applyMatrix4(group.matrixWorld).project(camera);
|
||||
l.el.style.transform = `translate(${((tmp.x + 1) / 2) * w + 14}px, ${((1 - tmp.y) / 2) * h}px) translateY(-50%)`;
|
||||
l.el.classList.toggle("show", group.visible && fade > 0.5);
|
||||
});
|
||||
}
|
||||
|
||||
if (reduceMotion) { frame(); window.addEventListener("resize", frame); }
|
||||
else renderer.setAnimationLoop(() => { if (visible) frame(); });
|
||||
}
|
||||
@@ -0,0 +1,223 @@
|
||||
/* ICOSIN site — shared header/footer, menus, and data-driven blocks. */
|
||||
(function () {
|
||||
"use strict";
|
||||
document.documentElement.classList.remove("no-js");
|
||||
|
||||
var D = window.ICOSIN;
|
||||
var ed = D.editions[D.current];
|
||||
var root = document.body.getAttribute("data-root") || "";
|
||||
var page = document.body.getAttribute("data-page") || "";
|
||||
var cfp = D.pretalxBase + "/" + ed.pretalxSlug + "/";
|
||||
var Y = ed.year + "/";
|
||||
|
||||
var icon = {
|
||||
menu: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M4 7h16M4 12h16M4 17h16"/></svg>',
|
||||
close: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M6 6l12 12M18 6L6 18"/></svg>',
|
||||
chev: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><path d="M6 9l6 6 6-6"/></svg>'
|
||||
};
|
||||
|
||||
var NAV = [
|
||||
{ label: "Call for Papers", href: Y, id: "edition" },
|
||||
{ label: "Committees", id: "committee", sub: [
|
||||
{ label: "Advisory Board", href: "committee/#advisory" },
|
||||
{ label: "Technical Program Committee", href: "committee/#tpc" },
|
||||
{ label: "Reviewers", href: "reviewers/" },
|
||||
{ label: "Organizing Committee", href: "committee/#organizing" }
|
||||
] },
|
||||
{ label: "Speakers", href: Y + "#speakers" },
|
||||
{ label: "For Authors", id: "authors", sub: [
|
||||
{ label: "Submission Guidelines", href: "authors/#guidelines" },
|
||||
{ label: "Paper Template", href: "authors/#template" },
|
||||
{ label: "Registration Fee", href: "authors/#fees" },
|
||||
{ label: "Program Schedule", href: "authors/#schedule" },
|
||||
{ label: "Presentation Template", href: "authors/#presentation" },
|
||||
{ label: "Virtual Background (Zoom)", href: "authors/#background" },
|
||||
{ label: "Flyer", href: "authors/#flyer" }
|
||||
] },
|
||||
{ label: "Proceedings", href: "proceedings/", id: "proceedings" },
|
||||
{ label: "Previous ICOSIN", href: "past/", id: "past" },
|
||||
{ label: "Contact", href: "contact/", id: "contact" }
|
||||
];
|
||||
|
||||
function esc(s) { return String(s).replace(/[&<>"]/g, function (c) { return { "&": "&", "<": "<", ">": ">", '"': """ }[c]; }); }
|
||||
|
||||
/* ---------- header ---------- */
|
||||
var header = document.getElementById("site-header");
|
||||
if (header) {
|
||||
var desktop = NAV.map(function (n) {
|
||||
var cur = n.id === page ? ' aria-current="page"' : "";
|
||||
if (n.sub) {
|
||||
return '<li class="has-sub"><button type="button" aria-haspopup="true"' + cur + ">" + n.label + icon.chev + '</button><ul class="submenu">' +
|
||||
n.sub.map(function (s) { return '<li><a href="' + root + s.href + '">' + s.label + "</a></li>"; }).join("") + "</ul></li>";
|
||||
}
|
||||
return '<li><a href="' + root + n.href + '"' + cur + ">" + n.label + "</a></li>";
|
||||
}).join("");
|
||||
var mobile = '<a href="' + root + '">Home</a>' + NAV.map(function (n) {
|
||||
if (n.sub) return '<div class="group">' + n.label + "</div>" + n.sub.map(function (s) { return '<a class="sub" href="' + root + s.href + '">' + s.label + "</a>"; }).join("");
|
||||
return '<a href="' + root + n.href + '">' + n.label + "</a>";
|
||||
}).join("");
|
||||
|
||||
header.className = "site-header";
|
||||
header.innerHTML =
|
||||
'<div class="wrap nav">' +
|
||||
'<a class="brand" href="' + root + '" aria-label="ICOSIN home">' +
|
||||
'<img src="' + root + 'assets/img/icosin-mark.png" alt="" width="40" height="39">' +
|
||||
"<span><b>ICOSIN</b><small>Int'l Conference on Smart Informatics</small></span>" +
|
||||
"</a>" +
|
||||
'<ul class="nav-links">' + desktop +
|
||||
'<li class="nav-cta"><a class="btn btn-primary btn-sm" href="' + cfp + '" target="_blank" rel="noopener">Author Portal</a></li>' +
|
||||
"</ul>" +
|
||||
'<button class="menu-toggle" aria-label="Open menu" aria-expanded="false">' + icon.menu + "</button>" +
|
||||
"</div>" +
|
||||
'<nav class="mobile-menu" aria-label="Mobile">' + mobile +
|
||||
'<a class="btn btn-primary" href="' + cfp + '" target="_blank" rel="noopener">Author Portal</a>' +
|
||||
"</nav>";
|
||||
|
||||
var toggle = header.querySelector(".menu-toggle");
|
||||
var menu = header.querySelector(".mobile-menu");
|
||||
toggle.addEventListener("click", function () {
|
||||
var open = menu.classList.toggle("open");
|
||||
toggle.setAttribute("aria-expanded", open);
|
||||
toggle.innerHTML = open ? icon.close : icon.menu;
|
||||
document.body.style.overflow = open ? "hidden" : "";
|
||||
});
|
||||
menu.addEventListener("click", function (e) { if (e.target.tagName === "A") toggle.click(); });
|
||||
}
|
||||
|
||||
/* ---------- footer ---------- */
|
||||
function logoTile(file, alt, wide) {
|
||||
return '<div class="logo-tile' + (wide ? " wide" : "") + '"><img src="' + root + "assets/img/logos/" + file + '" alt="' + esc(alt) + '" loading="lazy"></div>';
|
||||
}
|
||||
var footer = document.getElementById("site-footer");
|
||||
if (footer) {
|
||||
footer.className = "site-footer";
|
||||
footer.innerHTML =
|
||||
'<div class="wrap">' +
|
||||
'<div class="foot-grid">' +
|
||||
"<div>" +
|
||||
'<a class="brand" href="' + root + '"><img src="' + root + 'assets/img/icosin-mark.png" alt="" width="40" height="39"><span><b>ICOSIN</b><small>Int\'l Conference on Smart Informatics</small></span></a>' +
|
||||
'<p style="margin-top:16px;max-width:380px">An annual international conference on artificial intelligence, informatics and computing, organized by the ' + esc(D.owner.name) + ", Pontianak — on the Equator, in the heart of Borneo.</p>" +
|
||||
'<div class="foot-owner">' + D.owner.logos.map(function (l) { return logoTile(l.file, l.alt, l.wide); }).join("") + "</div>" +
|
||||
"</div>" +
|
||||
"<div><h4>Conference</h4><ul>" +
|
||||
'<li><a href="' + root + Y + '">ICOSIN ' + ed.year + "</a></li>" +
|
||||
'<li><a href="' + root + Y + '#speakers">Speakers</a></li>' +
|
||||
'<li><a href="' + root + 'committee/">Committees</a></li>' +
|
||||
'<li><a href="' + root + 'reviewers/">Reviewers</a></li>' +
|
||||
'<li><a href="' + root + 'past/">Previous ICOSIN</a></li>' +
|
||||
"</ul></div>" +
|
||||
"<div><h4>For Authors</h4><ul>" +
|
||||
'<li><a href="' + root + 'authors/#guidelines">Submission Guidelines</a></li>' +
|
||||
'<li><a href="' + root + 'authors/#template">Paper Template</a></li>' +
|
||||
'<li><a href="' + root + 'authors/#fees">Registration Fee</a></li>' +
|
||||
'<li><a href="' + root + 'proceedings/">Proceedings & Policies</a></li>' +
|
||||
"</ul></div>" +
|
||||
"<div><h4>Contact</h4><ul>" +
|
||||
'<li><a href="mailto:' + D.email + '">' + D.email + "</a></li>" +
|
||||
"<li>" + esc(D.owner.name) + "</li>" +
|
||||
"<li>Jl. Prof. Dr. H. Hadari Nawawi, Pontianak 78124, West Kalimantan, Indonesia</li>" +
|
||||
'<li><a href="' + cfp + '" target="_blank" rel="noopener">Author Portal ↗</a></li>' +
|
||||
"</ul></div>" +
|
||||
"</div>" +
|
||||
'<div class="foot-bottom"><span>© ' + new Date().getFullYear() + " ICOSIN · " + esc(D.owner.name) + "</span><span>ICOSIN " + ed.year + " co-hosted with Universiti Malaysia Sarawak (UNIMAS)</span></div>" +
|
||||
"</div>";
|
||||
}
|
||||
|
||||
/* ---------- helpers ---------- */
|
||||
var MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
||||
function fmtDate(iso) { var p = iso.split("-"); return MONTHS[+p[1] - 1] + " " + +p[2] + ", " + p[0]; }
|
||||
function todayISO() { return new Date(Date.now() + 7 * 3600 * 1000).toISOString().slice(0, 10); }
|
||||
function idr(n) { return "IDR " + n.toLocaleString("en-US"); }
|
||||
|
||||
document.querySelectorAll("[data-ed]").forEach(function (el) { var v = ed[el.getAttribute("data-ed")]; if (v != null) el.textContent = v; });
|
||||
document.querySelectorAll("[data-cfp]").forEach(function (el) { el.href = cfp; });
|
||||
document.querySelectorAll("[data-mail]").forEach(function (el) { el.href = "mailto:" + D.email; if (!el.textContent.trim()) el.textContent = D.email; });
|
||||
|
||||
/* Important dates, with changed dates struck through */
|
||||
document.querySelectorAll("[data-render=dates]").forEach(function (el) {
|
||||
var today = todayISO(), nextDone = false;
|
||||
el.innerHTML = ed.dates.map(function (d) {
|
||||
var cls = [];
|
||||
if (d.date < today) cls.push("past");
|
||||
else if (!nextDone) { cls.push("next"); nextDone = true; }
|
||||
if (d.main) cls.push("main");
|
||||
return '<li class="' + cls.join(" ") + '"><time datetime="' + d.date + '"' + (d.was ? ' class="changed"' : "") + ">" +
|
||||
(d.was ? '<s title="Original date">' + fmtDate(d.was) + "</s>" : "") + fmtDate(d.date) +
|
||||
"</time><strong>" + esc(d.label) + "</strong></li>";
|
||||
}).join("");
|
||||
});
|
||||
|
||||
document.querySelectorAll("[data-render=fees]").forEach(function (el) {
|
||||
el.innerHTML = "<table><thead><tr><th>Category</th><th>Fee</th></tr></thead><tbody>" +
|
||||
ed.fees.map(function (f) { return "<tr><td>" + esc(f.who) + '</td><td class="num">' + idr(f.idr) + "</td></tr>"; }).join("") +
|
||||
"</tbody></table>";
|
||||
});
|
||||
|
||||
function personCard(p, flag) {
|
||||
return '<div class="card person reveal"><div class="ph"><img src="' + root + "assets/img/people/" + p.photo + '" alt="' + esc(p.name) + '" loading="lazy"></div>' +
|
||||
"<h3>" + esc(p.name) + "</h3><p>" + esc(p.affiliation) + "</p>" + (flag && p.country ? '<span class="flag">' + esc(p.country) + "</span>" : "") + "</div>";
|
||||
}
|
||||
document.querySelectorAll("[data-render=keynotes]").forEach(function (el) { el.innerHTML = ed.keynotes.map(function (p) { return personCard(p, true); }).join(""); });
|
||||
document.querySelectorAll("[data-render=welcoming]").forEach(function (el) { el.innerHTML = ed.welcoming.map(function (p) { return personCard(p, false); }).join(""); });
|
||||
document.querySelectorAll("[data-render=speakers-row]").forEach(function (el) {
|
||||
var list = el.getAttribute("data-list") === "welcoming" ? ed.welcoming : ed.keynotes;
|
||||
el.innerHTML = list.map(function (p) {
|
||||
return '<div class="speaker"><div class="ph"><img src="' + root + "assets/img/people/" + p.photo + '" alt="" loading="lazy"></div><div><b>' + esc(p.name) + "</b><span>" + esc(p.affiliation) + "</span></div></div>";
|
||||
}).join("");
|
||||
});
|
||||
|
||||
document.querySelectorAll("[data-render=tracks]").forEach(function (el) {
|
||||
var limit = +(el.getAttribute("data-limit") || 0);
|
||||
el.innerHTML = ed.tracks.map(function (t) {
|
||||
var list = limit ? t.topics.slice(0, limit) : t.topics;
|
||||
var more = limit && t.topics.length > limit ? '<a class="more" href="' + root + Y + '#tracks">+ ' + (t.topics.length - limit) + " more topics →</a>" : "";
|
||||
return '<div class="card track"><span class="tag">' + esc(t.code) + "</span><h3>" + esc(t.name) + "</h3><ul>" +
|
||||
list.map(function (x) { return "<li>" + esc(x) + "</li>"; }).join("") + "</ul>" + more + "</div>";
|
||||
}).join("");
|
||||
});
|
||||
|
||||
/* Partners of the edition, grouped by role */
|
||||
document.querySelectorAll("[data-render=partners]").forEach(function (el) {
|
||||
el.className += " logo-strip";
|
||||
el.innerHTML = ed.partners.map(function (p) {
|
||||
return '<div class="logo-group"><h4>' + esc(p.role) + '</h4><div class="row">' +
|
||||
p.logos.map(function (f) { return logoTile(f, p.name, /informatika/.test(f)); }).join("") +
|
||||
"</div><p>" + esc(p.name) + "</p></div>";
|
||||
}).join("");
|
||||
});
|
||||
|
||||
/* General chair welcome message */
|
||||
document.querySelectorAll("[data-render=chair]").forEach(function (el) {
|
||||
var c = ed.generalChair;
|
||||
var initials = c.name.replace(/(Prof|Dr|S\.T|M\.T)\.?/g, "").match(/\b[A-Z]/g) || [];
|
||||
el.innerHTML = '<div class="chair">' +
|
||||
'<div class="chair-photo">' + (c.photo ? '<img src="' + root + "assets/img/people/" + c.photo + '" alt="' + esc(c.name) + '">' : "<span>" + initials.slice(0, 2).join("") + "</span>") + "</div>" +
|
||||
"<div><blockquote>" + c.message.map(function (p) { return "<p>" + esc(p) + "</p>"; }).join("") + "</blockquote>" +
|
||||
'<div class="sig"><b>' + esc(c.name) + "</b><span>" + esc(c.title) + "</span></div></div></div>";
|
||||
});
|
||||
|
||||
/* Countdown */
|
||||
document.querySelectorAll("[data-render=countdown]").forEach(function (cd) {
|
||||
var target = new Date(ed.startTime).getTime();
|
||||
cd.innerHTML = ["Days", "Hours", "Minutes", "Seconds"].map(function (p) { return "<div><b>0</b><small>" + p + "</small></div>"; }).join("");
|
||||
var cells = cd.querySelectorAll("b");
|
||||
var tick = function () {
|
||||
var s = Math.max(0, Math.floor((target - Date.now()) / 1000));
|
||||
[Math.floor(s / 86400), Math.floor(s % 86400 / 3600), Math.floor(s % 3600 / 60), s % 60].forEach(function (v, i) {
|
||||
cells[i].textContent = i ? String(v).padStart(2, "0") : v;
|
||||
});
|
||||
};
|
||||
tick(); setInterval(tick, 1000);
|
||||
});
|
||||
|
||||
/* Reveal on scroll */
|
||||
var els = document.querySelectorAll(".reveal");
|
||||
if ("IntersectionObserver" in window) {
|
||||
var io = new IntersectionObserver(function (entries) {
|
||||
entries.forEach(function (e) { if (e.isIntersecting) { e.target.classList.add("in"); io.unobserve(e.target); } });
|
||||
}, { rootMargin: "0px 0px -8% 0px" });
|
||||
els.forEach(function (el) { io.observe(el); });
|
||||
} else {
|
||||
els.forEach(function (el) { el.classList.add("in"); });
|
||||
}
|
||||
})();
|
||||