Added routs/Lib Components and assets.

This commit is contained in:
Giac
2025-12-08 20:45:05 -06:00
parent 250cad6dab
commit 9d06bd7610
13 changed files with 1193 additions and 70 deletions

View File

@@ -1 +1,111 @@
<h1>Are you <b>On The Spectrum?</b></h1>
<script lang="ts">
import { goto } from '$app/navigation';
function navigate(page: string) {
goto(`/${page}`);
}
</script>
<div class="home-container">
<div class="home-content">
<h1 class="title">On the Spectrum!</h1>
<p class="subtitle">Well...are ya?</p>
<div class="tabs">
<button class="tab-button" on:click={() => navigate('play')}>
<span class="tab-icon">🎮</span>
<span>Play</span>
</button>
<button class="tab-button" on:click={() => navigate('rules')}>
<span class="tab-icon">📖</span>
<span>Rules</span>
</button>
</div>
</div>
</div>
<style>
.home-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 20px;
}
.home-content {
text-align: center;
max-width: 600px;
width: 100%;
}
.title {
font-size: 3.5rem;
font-weight: bold;
color: white;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
line-height: 1.2;
}
@media (max-width: 768px) {
.title {
font-size: 2.5rem;
}
}
.subtitle {
font-size: 1.5rem;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 3rem;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.tabs {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
}
.tab-button {
background: white;
border: none;
border-radius: 15px;
padding: 30px 50px;
font-size: 1.5rem;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
min-width: 200px;
}
.tab-button:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.tab-icon {
font-size: 3rem;
}
@media (max-width: 768px) {
.tab-button {
padding: 20px 40px;
font-size: 1.2rem;
min-width: 150px;
}
.tab-icon {
font-size: 2rem;
}
}
</style>