Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 121 additions & 121 deletions src/views/index.ejs
Original file line number Diff line number Diff line change
@@ -1,122 +1,122 @@
<!DOCTYPE html>
<html lang="en">

<head>
<%- include("../partials/head.ejs") %>
<title>Tridecco | Home</title>
<style>
.glass-btn {
display: block;
width: 100%;
padding: 1.1rem 0;
font-size: 1.25rem;
font-weight: bold;
color: #fff;
border: none;
border-radius: 1.5rem;
background: linear-gradient(120deg, rgba(59, 130, 246, 0.8) 0%, rgba(96, 165, 250, 0.8) 100%);
box-shadow: 0 4px 32px 0 rgba(59, 130, 246, 0.22), 0 1.5px 6px 0 rgba(0, 0, 0, 0.09);
backdrop-filter: blur(12px) saturate(140%);
transition: transform 0.18s cubic-bezier(.4, 2, .6, 1), box-shadow 0.18s;
cursor: pointer;
outline: none;
position: relative;
overflow: hidden;
z-index: 1;
}

.glass-btn:before {
content: "";
position: absolute;
left: -50%;
top: -50%;
width: 200%;
height: 200%;
background: linear-gradient(120deg, rgba(255, 255, 255, 0.18) 40%, rgba(59, 130, 246, 0.25) 60%, rgba(255, 255, 255, 0.09) 100%);
filter: blur(20px);
opacity: 0.7;
animation: btn-glow 2.5s linear infinite;
z-index: -1;
}

@keyframes btn-glow {
0% {
transform: rotate(0deg) scale(1);
}

100% {
transform: rotate(360deg) scale(1.03);
}
}

.glass-btn:hover,
.glass-btn:focus {
transform: scale(1.045);
box-shadow: 0 8px 40px 0 rgba(59, 130, 246, 0.32), 0 5px 18px 0 rgba(0, 0, 0, 0.19);
}

.glass-btn.disabled,
.glass-btn[disabled] {
cursor: not-allowed;
background: linear-gradient(120deg, rgba(156, 163, 175, 0.55) 0%, rgba(209, 213, 219, 0.7) 100%);
color: #e5e7eb;
box-shadow: 0 2px 14px 0 rgba(156, 163, 175, 0.22), 0 1.5px 6px 0 rgba(0, 0, 0, 0.05);
opacity: 0.78;
}

.glass-btn.disabled:before,
.glass-btn[disabled]:before {
display: none;
}

.glass-card {
background: rgba(255, 255, 255, 0.82);
border-radius: 2.5rem;
box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.13), 0 1.5px 8px 0 rgba(59, 130, 246, 0.08);
backdrop-filter: blur(18px) saturate(150%);
padding: 2.5rem 1.5rem 2.2rem;
max-width: 98vw;
width: 93vw;
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 2.4rem;
transition: box-shadow 0.24s;
}

@media (min-width: 450px) {
.glass-card {
width: 380px;
min-width: 320px;
}
}

@media (min-width: 640px) {
.glass-card {
width: 410px;
}
}
</style>
</head>

<body class="h-screen overflow-hidden" style="background: url('<%= env.CDN_URL %>/img/backgrounds/wooden-board.jpg') center center / cover no-repeat;">
<div id="board-container" class="absolute top-0 left-0 w-full h-full"></div>
<div class="absolute inset-0 bg-black bg-opacity-50 backdrop-filter backdrop-blur-lg"></div>

<div class="fixed inset-0 flex items-center justify-center z-10">
<div class="glass-card">
<h1 class="glow-title text-6xl sm:text-7xl text-center select-none text-[#fffde7] rounded-[1.2em] m-2 tracking-[0.10em]" style="
text-shadow: 3px 3px 3px #DAA520, 2px 3px 5px #8B4513, 0px 0px 20px #fffde7cc; font-family: 'tridecco', sans-serif;
">TRIDECCO</h1>
<div class="w-full flex flex-col gap-4">
<a href="/single" class="glass-btn text-center">Single Player</a>
<button class="glass-btn disabled" disabled>Multiplayer</button>
</div>
</div>
</div>

<%- include("../partials/tridecco-board-animator.ejs") %>
</body>

<!DOCTYPE html>
<html lang="en">
<head>
<%- include("../partials/head.ejs") %>
<title>Tridecco | Home</title>
<style>
.glass-btn {
display: block;
width: 100%;
padding: 1.1rem 0;
font-size: 1.25rem;
font-weight: bold;
color: #fff;
border: none;
border-radius: 1.5rem;
background: linear-gradient(120deg, rgba(59, 130, 246, 0.8) 0%, rgba(96, 165, 250, 0.8) 100%);
box-shadow: 0 4px 32px 0 rgba(59, 130, 246, 0.22), 0 1.5px 6px 0 rgba(0, 0, 0, 0.09);
backdrop-filter: blur(12px) saturate(140%);
transition: transform 0.18s cubic-bezier(.4, 2, .6, 1), box-shadow 0.18s;
cursor: pointer;
outline: none;
position: relative;
overflow: hidden;
z-index: 1;
}
.glass-btn:before {
content: "";
position: absolute;
left: -50%;
top: -50%;
width: 200%;
height: 200%;
background: linear-gradient(120deg, rgba(255, 255, 255, 0.18) 40%, rgba(59, 130, 246, 0.25) 60%, rgba(255, 255, 255, 0.09) 100%);
filter: blur(20px);
opacity: 0.7;
animation: btn-glow 2.5s linear infinite;
z-index: -1;
}
@keyframes btn-glow {
0% {
transform: rotate(0deg) scale(1);
}
100% {
transform: rotate(360deg) scale(1.03);
}
}
.glass-btn:hover,
.glass-btn:focus {
transform: scale(1.045);
box-shadow: 0 8px 40px 0 rgba(59, 130, 246, 0.32), 0 5px 18px 0 rgba(0, 0, 0, 0.19);
}
.glass-btn.disabled,
.glass-btn[disabled] {
cursor: not-allowed;
background: linear-gradient(120deg, rgba(156, 163, 175, 0.55) 0%, rgba(209, 213, 219, 0.7) 100%);
color: #e5e7eb;
box-shadow: 0 2px 14px 0 rgba(156, 163, 175, 0.22), 0 1.5px 6px 0 rgba(0, 0, 0, 0.05);
opacity: 0.78;
}
.glass-btn.disabled:before,
.glass-btn[disabled]:before {
display: none;
}
.glass-card {
background: rgba(255, 255, 255, 0.82);
border-radius: 2.5rem;
box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.13), 0 1.5px 8px 0 rgba(59, 130, 246, 0.08);
backdrop-filter: blur(18px) saturate(150%);
padding: 2.5rem 1.5rem 2.2rem;
max-width: 98vw;
width: 93vw;
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 2.4rem;
transition: box-shadow 0.24s;
}
@media (min-width: 450px) {
.glass-card {
width: 380px;
min-width: 320px;
}
}
@media (min-width: 640px) {
.glass-card {
width: 410px;
}
}
</style>
</head>
<body class="h-screen overflow-hidden" style="background: url('<%= env.CDN_URL %>/img/backgrounds/wooden-board.jpg') center center / cover no-repeat;">
<div id="board-container" class="absolute top-0 left-0 w-full h-full"></div>
<div class="absolute inset-0 bg-black bg-opacity-50 backdrop-filter backdrop-blur-lg"></div>
<div class="fixed inset-0 flex items-center justify-center z-10">
<div class="glass-card">
<h1 class="glow-title text-6xl sm:text-7xl text-center select-none text-[#fffde7] rounded-[1.2em] m-2 tracking-[0.10em]" style="
text-shadow: 3px 3px 3px #DAA520, 2px 3px 5px #8B4513, 0px 0px 20px #fffde7cc; font-family: 'tridecco', sans-serif;
">TRIDECCO</h1>
<div class="w-full flex flex-col gap-4">
<a href="/single" class="glass-btn text-center">Single Player</a>
<button class="glass-btn disabled" disabled>Multiplayer</button>
</div>
</div>
</div>
<%- include("../partials/tridecco-board-animator.ejs") %>
</body>
</html>
Loading