Rebuild site with Hugo: unified dark theme, SVG logo, data-driven content
This commit is contained in:
@@ -0,0 +1,454 @@
|
||||
/* ===== SNOWARE Unified Dark Theme ===== */
|
||||
|
||||
:root {
|
||||
--bg-deep: #060612;
|
||||
--bg-card: rgba(15, 25, 55, 0.6);
|
||||
--bg-glass: rgba(20, 35, 70, 0.35);
|
||||
--accent: #4fc3f7;
|
||||
--accent-alt: #7c4dff;
|
||||
--text: #e8eaf6;
|
||||
--text-muted: #90a4ae;
|
||||
--radius: 12px;
|
||||
--font: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
||||
--transition: 0.3s ease;
|
||||
}
|
||||
|
||||
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
body {
|
||||
font-family: var(--font);
|
||||
background: var(--bg-deep);
|
||||
color: var(--text);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
|
||||
|
||||
/* ===== Navigation ===== */
|
||||
.site-nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background: rgba(6, 6, 18, 0.85);
|
||||
backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid rgba(79, 195, 247, 0.1);
|
||||
padding: 12px 0;
|
||||
}
|
||||
.nav-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.nav-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
color: var(--text);
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.nav-logo { border-radius: 50%; }
|
||||
.nav-links { display: flex; gap: 20px; }
|
||||
.nav-links a {
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
font-size: 14px;
|
||||
transition: color var(--transition);
|
||||
position: relative;
|
||||
}
|
||||
.nav-links a:hover { color: var(--accent); }
|
||||
.nav-links a::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -4px;
|
||||
left: 0;
|
||||
width: 0;
|
||||
height: 2px;
|
||||
background: var(--accent);
|
||||
transition: width var(--transition);
|
||||
}
|
||||
.nav-links a:hover::after { width: 100%; }
|
||||
|
||||
/* ===== Homepage ===== */
|
||||
#star-canvas-wrap {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
#star-canvas {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.home-overlay {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
.logo-wrap {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.logo-wrap::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -8px;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, rgba(79,195,247,0.25), transparent 70%);
|
||||
}
|
||||
.home-logo {
|
||||
border-radius: 50%;
|
||||
border: 2px solid rgba(79,195,247,0.5);
|
||||
background: rgba(15,25,55,0.6);
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
.home-title {
|
||||
font-size: 48px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 8px;
|
||||
color: var(--accent);
|
||||
text-shadow: 0 0 30px rgba(79,195,247,0.4), 0 0 60px rgba(79,195,247,0.2);
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.home-nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 14px;
|
||||
justify-content: center;
|
||||
}
|
||||
.home-btn {
|
||||
display: inline-block;
|
||||
padding: 12px 28px;
|
||||
border-radius: 50px;
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid rgba(79,195,247,0.3);
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
transition: all var(--transition);
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
.home-btn:hover {
|
||||
background: rgba(79,195,247,0.15);
|
||||
border-color: var(--accent);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 20px rgba(79,195,247,0.2);
|
||||
}
|
||||
|
||||
/* ===== Page Hero ===== */
|
||||
.page-hero {
|
||||
text-align: center;
|
||||
padding: 80px 24px 40px;
|
||||
background: linear-gradient(180deg, rgba(6,6,18,0) 0%, rgba(6,6,18,1) 100%);
|
||||
}
|
||||
.page-hero h1 {
|
||||
font-size: 40px;
|
||||
font-weight: 800;
|
||||
color: var(--accent);
|
||||
text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.page-hero .subtitle {
|
||||
color: var(--text-muted);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
/* ===== Page Content ===== */
|
||||
.page-content { padding: 20px 24px 60px; }
|
||||
|
||||
/* ===== Buttons ===== */
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 10px 24px;
|
||||
border-radius: 8px;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
transition: all var(--transition);
|
||||
cursor: pointer;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
color: #0a0a2e;
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
|
||||
.btn-accent {
|
||||
background: color-mix(in srgb, var(--accent) 20%, var(--bg-card));
|
||||
color: var(--accent);
|
||||
border-color: color-mix(in srgb, var(--accent) 40%, transparent);
|
||||
}
|
||||
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 30%, var(--bg-card)); }
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
border-color: rgba(144,164,174,0.3);
|
||||
}
|
||||
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }
|
||||
.btn-lg { padding: 14px 32px; font-size: 17px; }
|
||||
|
||||
/* ===== Glass Cards ===== */
|
||||
.feature-card {
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid rgba(79,195,247,0.1);
|
||||
border-radius: var(--radius);
|
||||
padding: 24px;
|
||||
text-align: center;
|
||||
backdrop-filter: blur(8px);
|
||||
transition: border-color var(--transition);
|
||||
}
|
||||
.feature-card:hover { border-color: rgba(79,195,247,0.3); }
|
||||
.feature-card h3 { color: var(--accent); margin-bottom: 8px; }
|
||||
.feature-card p { color: var(--text-muted); font-size: 14px; }
|
||||
.feature-icon { font-size: 32px; margin-bottom: 12px; }
|
||||
|
||||
/* ===== Resources Section ===== */
|
||||
.res-intro {
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.res-intro-text { color: var(--text); font-size: 16px; }
|
||||
.res-intro-note { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
|
||||
.res-actions {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
justify-content: center;
|
||||
margin-bottom: 40px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.res-features {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 20px;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
/* ===== File List ===== */
|
||||
.filelist-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 20px;
|
||||
}
|
||||
.subject-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 28px 20px;
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid color-mix(in srgb, var(--color) 25%, transparent);
|
||||
border-radius: var(--radius);
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
backdrop-filter: blur(8px);
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.subject-card:hover {
|
||||
border-color: var(--color);
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 8px 24px color-mix(in srgb, var(--color) 15%, transparent);
|
||||
}
|
||||
.subject-icon { color: var(--color); }
|
||||
.subject-card h3 { font-size: 18px; }
|
||||
.subject-pw { font-size: 13px; color: var(--text-muted); }
|
||||
.subject-pw code {
|
||||
background: rgba(255,255,255,0.08);
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
color: var(--color);
|
||||
}
|
||||
|
||||
/* ===== Software Section ===== */
|
||||
.about-intro {
|
||||
text-align: center;
|
||||
margin-bottom: 40px;
|
||||
padding: 24px;
|
||||
background: var(--bg-glass);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
.about-intro p { color: var(--text-muted); margin-bottom: 16px; }
|
||||
.project-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 24px;
|
||||
}
|
||||
.project-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 28px;
|
||||
background: var(--bg-glass);
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
|
||||
border-radius: var(--radius);
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
backdrop-filter: blur(8px);
|
||||
transition: all var(--transition);
|
||||
}
|
||||
.project-card:hover {
|
||||
border-color: var(--accent);
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
}
|
||||
.card-header { display: flex; justify-content: space-between; align-items: flex-start; }
|
||||
.card-header h3 { font-size: 20px; color: var(--accent); }
|
||||
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
.tag {
|
||||
font-size: 11px;
|
||||
padding: 3px 10px;
|
||||
border-radius: 50px;
|
||||
background: color-mix(in srgb, var(--accent) 15%, var(--bg-card));
|
||||
color: var(--accent);
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
|
||||
}
|
||||
.card-desc { color: var(--text-muted); font-size: 14px; }
|
||||
.card-links { margin-top: auto; }
|
||||
.card-link { font-size: 14px; color: var(--accent); }
|
||||
|
||||
/* ===== Software Detail ===== */
|
||||
.sw-links {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
justify-content: center;
|
||||
margin-bottom: 40px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.sw-features {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 16px;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.sw-section {
|
||||
margin-bottom: 32px;
|
||||
padding: 24px;
|
||||
background: var(--bg-glass);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
.sw-section h2 {
|
||||
color: var(--accent);
|
||||
margin-bottom: 12px;
|
||||
font-size: 22px;
|
||||
}
|
||||
.sw-code {
|
||||
background: rgba(255,255,255,0.06);
|
||||
padding: 12px 18px;
|
||||
border-radius: 8px;
|
||||
font-family: 'Cascadia Code', 'Fira Code', monospace;
|
||||
font-size: 14px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
.usage-list { display: flex; flex-direction: column; gap: 12px; }
|
||||
.usage-item {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
.usage-item code {
|
||||
background: rgba(255,255,255,0.06);
|
||||
padding: 6px 12px;
|
||||
border-radius: 6px;
|
||||
font-family: 'Cascadia Code', 'Fira Code', monospace;
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.usage-item span { color: var(--text-muted); }
|
||||
|
||||
/* ===== Drag Ball ===== */
|
||||
.drag-ball-area {
|
||||
text-align: center;
|
||||
padding: 24px;
|
||||
margin: 40px 0;
|
||||
background: var(--bg-glass);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
.drag-hint { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
|
||||
|
||||
/* ===== XAGuarder ===== */
|
||||
.xag-intro {
|
||||
text-align: center;
|
||||
padding: 40px;
|
||||
background: var(--bg-glass);
|
||||
border-radius: var(--radius);
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.xag-logo { border-radius: 50%; margin-bottom: 16px; }
|
||||
.xag-intro h2 { margin-bottom: 16px; color: var(--accent); }
|
||||
.xag-intro p { color: var(--text-muted); margin-bottom: 20px; }
|
||||
|
||||
/* ===== Warning Page ===== */
|
||||
.warning-page {
|
||||
min-height: 80vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.warning-content {
|
||||
text-align: center;
|
||||
padding: 60px;
|
||||
background: rgba(244,67,54,0.08);
|
||||
border: 2px solid rgba(244,67,54,0.3);
|
||||
border-radius: var(--radius);
|
||||
max-width: 500px;
|
||||
}
|
||||
.warning-logo { border-radius: 50%; margin-bottom: 20px; }
|
||||
.warning-content h1 { color: #f44336; font-size: 28px; margin-bottom: 16px; }
|
||||
.warning-text { font-size: 18px; color: var(--text); margin-bottom: 8px; }
|
||||
.warning-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
|
||||
|
||||
/* ===== Error Page ===== */
|
||||
.error-page {
|
||||
min-height: 80vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.error-content { text-align: center; }
|
||||
.error-logo { border-radius: 50%; margin-bottom: 20px; }
|
||||
.error-content h1 { font-size: 72px; color: var(--accent); margin-bottom: 12px; }
|
||||
.error-content p { color: var(--text-muted); }
|
||||
.error-hint { font-size: 14px; margin-bottom: 24px; }
|
||||
|
||||
/* ===== Footer ===== */
|
||||
.site-footer {
|
||||
text-align: center;
|
||||
padding: 24px;
|
||||
border-top: 1px solid rgba(79,195,247,0.08);
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
/* ===== Responsive ===== */
|
||||
@media (max-width: 768px) {
|
||||
.nav-inner { flex-direction: column; gap: 12px; }
|
||||
.nav-links { gap: 12px; }
|
||||
.home-title { font-size: 32px; letter-spacing: 4px; }
|
||||
.home-logo { width: 140px; height: 140px; }
|
||||
.home-nav { gap: 10px; }
|
||||
.home-btn { padding: 10px 22px; font-size: 14px; }
|
||||
.page-hero h1 { font-size: 28px; }
|
||||
.project-grid { grid-template-columns: 1fr; }
|
||||
.filelist-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.res-features, .sw-features { grid-template-columns: 1fr 1fr; }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.filelist-grid { grid-template-columns: 1fr; }
|
||||
.res-features, .sw-features { grid-template-columns: 1fr; }
|
||||
.sw-links { flex-direction: column; align-items: center; }
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
(function () {
|
||||
const canvas = document.getElementById('drag-ball');
|
||||
if (!canvas) return;
|
||||
const ctx = canvas.getContext('2d');
|
||||
const W = 200, H = 200;
|
||||
canvas.width = W;
|
||||
canvas.height = H;
|
||||
|
||||
let ballX = W / 2, ballY = H / 2;
|
||||
let dragging = false;
|
||||
let offsetX = 0, offsetY = 0;
|
||||
|
||||
function drawBall() {
|
||||
ctx.clearRect(0, 0, W, H);
|
||||
const r = 30;
|
||||
const grad = ctx.createRadialGradient(ballX, ballY, 0, ballX, ballY, r);
|
||||
grad.addColorStop(0, '#ffb300');
|
||||
grad.addColorStop(1, '#ff6f00');
|
||||
ctx.beginPath();
|
||||
ctx.arc(ballX, ballY, r, 0, Math.PI * 2);
|
||||
ctx.fillStyle = grad;
|
||||
ctx.fill();
|
||||
ctx.fillStyle = '#fff';
|
||||
ctx.font = '14px sans-serif';
|
||||
ctx.textAlign = 'center';
|
||||
ctx.textBaseline = 'middle';
|
||||
ctx.fillText('(¬‿¬)', ballX, ballY);
|
||||
}
|
||||
|
||||
function getPos(e) {
|
||||
const rect = canvas.getBoundingClientRect();
|
||||
const scaleX = W / rect.width;
|
||||
const scaleY = H / rect.height;
|
||||
if (e.touches) {
|
||||
return {
|
||||
x: (e.touches[0].clientX - rect.left) * scaleX,
|
||||
y: (e.touches[0].clientY - rect.top) * scaleY
|
||||
};
|
||||
}
|
||||
return {
|
||||
x: (e.clientX - rect.left) * scaleX,
|
||||
y: (e.clientY - rect.top) * scaleY
|
||||
};
|
||||
}
|
||||
|
||||
canvas.addEventListener('mousedown', (e) => {
|
||||
const pos = getPos(e);
|
||||
const dist = Math.hypot(pos.x - ballX, pos.y - ballY);
|
||||
if (dist < 30) { dragging = true; offsetX = pos.x - ballX; offsetY = pos.y - ballY; }
|
||||
});
|
||||
canvas.addEventListener('touchstart', (e) => {
|
||||
e.preventDefault();
|
||||
const pos = getPos(e);
|
||||
const dist = Math.hypot(pos.x - ballX, pos.y - ballY);
|
||||
if (dist < 30) { dragging = true; offsetX = pos.x - ballX; offsetY = pos.y - ballY; }
|
||||
}, { passive: false });
|
||||
|
||||
window.addEventListener('mousemove', (e) => {
|
||||
if (!dragging) return;
|
||||
const pos = getPos(e);
|
||||
ballX = Math.max(30, Math.min(W - 30, pos.x - offsetX));
|
||||
ballY = Math.max(30, Math.min(H - 30, pos.y - offsetY));
|
||||
drawBall();
|
||||
});
|
||||
window.addEventListener('touchmove', (e) => {
|
||||
if (!dragging) return;
|
||||
const pos = getPos(e);
|
||||
ballX = Math.max(30, Math.min(W - 30, pos.x - offsetX));
|
||||
ballY = Math.max(30, Math.min(H - 30, pos.y - offsetY));
|
||||
drawBall();
|
||||
});
|
||||
|
||||
window.addEventListener('mouseup', () => { dragging = false; });
|
||||
window.addEventListener('touchend', () => { dragging = false; });
|
||||
|
||||
drawBall();
|
||||
})();
|
||||
@@ -0,0 +1,68 @@
|
||||
(function () {
|
||||
const canvas = document.getElementById('star-canvas');
|
||||
if (!canvas) return;
|
||||
const ctx = canvas.getContext('2d');
|
||||
let w, h;
|
||||
|
||||
function resize() {
|
||||
w = canvas.width = canvas.parentElement.clientWidth;
|
||||
h = canvas.height = canvas.parentElement.clientHeight;
|
||||
}
|
||||
resize();
|
||||
window.addEventListener('resize', resize);
|
||||
|
||||
const STAR_COUNT = 300;
|
||||
const colors = ['#ffffff', '#e0f7fa', '#fff9c4', '#fce4ec', '#4fc3f7'];
|
||||
const stars = [];
|
||||
|
||||
for (let i = 0; i < STAR_COUNT; i++) {
|
||||
stars.push({
|
||||
x: Math.random() * w,
|
||||
y: Math.random() * h,
|
||||
baseR: Math.random() * 1.5 + 0.3,
|
||||
phase: Math.random() * Math.PI * 2,
|
||||
speed: Math.random() * 0.02 + 0.005,
|
||||
color: colors[Math.floor(Math.random() * colors.length)],
|
||||
glow: Math.random() > 0.7
|
||||
});
|
||||
}
|
||||
|
||||
function draw() {
|
||||
ctx.clearRect(0, 0, w, h);
|
||||
const t = performance.now() * 0.001;
|
||||
|
||||
for (const s of stars) {
|
||||
const r = s.baseR + Math.sin(t * s.speed * 10 + s.phase) * s.baseR * 0.6;
|
||||
const alpha = 0.4 + Math.sin(t * s.speed * 8 + s.phase) * 0.35;
|
||||
|
||||
ctx.globalAlpha = Math.max(0.1, alpha);
|
||||
ctx.beginPath();
|
||||
ctx.arc(s.x, s.y, Math.max(0.1, r), 0, Math.PI * 2);
|
||||
ctx.fillStyle = s.color;
|
||||
ctx.fill();
|
||||
|
||||
if (s.glow) {
|
||||
const gr = ctx.createRadialGradient(s.x, s.y, 0, s.x, s.y, r * 3);
|
||||
gr.addColorStop(0, s.color);
|
||||
gr.addColorStop(1, 'transparent');
|
||||
ctx.globalAlpha = alpha * 0.15;
|
||||
ctx.beginPath();
|
||||
ctx.arc(s.x, s.y, r * 3, 0, Math.PI * 2);
|
||||
ctx.fillStyle = gr;
|
||||
ctx.fill();
|
||||
}
|
||||
}
|
||||
ctx.globalAlpha = 1;
|
||||
requestAnimationFrame(draw);
|
||||
}
|
||||
|
||||
draw();
|
||||
|
||||
// reposition on resize
|
||||
window.addEventListener('resize', () => {
|
||||
for (const s of stars) {
|
||||
s.x = (s.x / w) * canvas.width;
|
||||
s.y = (s.y / h) * canvas.height;
|
||||
}
|
||||
});
|
||||
})();
|
||||
@@ -0,0 +1,47 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" width="200" height="200">
|
||||
<defs>
|
||||
<radialGradient id="bg-grad" cx="50%" cy="50%" r="50%">
|
||||
<stop offset="0%" stop-color="#1a237e"/>
|
||||
<stop offset="100%" stop-color="#0a0a2e"/>
|
||||
</radialGradient>
|
||||
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
|
||||
<stop offset="60%" stop-color="#4fc3f7" stop-opacity="0"/>
|
||||
<stop offset="100%" stop-color="#4fc3f7" stop-opacity="0.3"/>
|
||||
</radialGradient>
|
||||
<filter id="blur">
|
||||
<feGaussianBlur stdDeviation="2"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<!-- Outer glow ring -->
|
||||
<circle cx="100" cy="100" r="96" fill="none" stroke="#4fc3f7" stroke-width="1" opacity="0.4" filter="url(#blur)"/>
|
||||
<circle cx="100" cy="100" r="96" fill="none" stroke="#4fc3f7" stroke-width="0.5" opacity="0.6"/>
|
||||
<!-- Main circle background -->
|
||||
<circle cx="100" cy="100" r="90" fill="url(#bg-grad)"/>
|
||||
<circle cx="100" cy="100" r="90" fill="url(#glow)"/>
|
||||
<!-- Snowflake pattern: 6 arms -->
|
||||
<g stroke="#4fc3f7" stroke-width="2" fill="none" opacity="0.85" stroke-linecap="round">
|
||||
<!-- Main 6 arms -->
|
||||
<line x1="100" y1="45" x2="100" y2="155"/>
|
||||
<line x1="52" y1="72" x2="148" y2="128"/>
|
||||
<line x1="52" y1="128" x2="148" y2="72"/>
|
||||
<!-- Branches on vertical arm -->
|
||||
<line x1="100" y1="55" x2="88" y2="62"/>
|
||||
<line x1="100" y1="55" x2="112" y2="62"/>
|
||||
<line x1="100" y1="145" x2="88" y2="138"/>
|
||||
<line x1="100" y1="145" x2="112" y2="138"/>
|
||||
<!-- Branches on upper-right arm -->
|
||||
<line x1="140" y1="78" x2="148" y2="68"/>
|
||||
<line x1="140" y1="78" x2="130" y2="75"/>
|
||||
<line x1="60" y1="122" x2="52" y2="132"/>
|
||||
<line x1="60" y1="122" x2="70" y2="125"/>
|
||||
<!-- Branches on upper-left arm -->
|
||||
<line x1="60" y1="78" x2="52" y2="68"/>
|
||||
<line x1="60" y1="78" x2="70" y2="75"/>
|
||||
<line x1="140" y1="122" x2="148" y2="132"/>
|
||||
<line x1="140" y1="122" x2="130" y2="125"/>
|
||||
</g>
|
||||
<!-- Center dot -->
|
||||
<circle cx="100" cy="100" r="4" fill="#4fc3f7"/>
|
||||
<!-- S.A. text -->
|
||||
<text x="100" y="108" text-anchor="middle" font-family="'Segoe UI', system-ui, sans-serif" font-size="24" font-weight="700" fill="#e0e0e0" letter-spacing="2">S.A.</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
Reference in New Issue
Block a user