Skip to content

Commit c11c209

Browse files
styling
1 parent 57068a3 commit c11c209

File tree

2 files changed

+90
-10
lines changed

2 files changed

+90
-10
lines changed

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<script src="https://www.gstatic.com/firebasejs/9.22.2/firebase-auth-compat.js"></script>
88
<script src="https://www.gstatic.com/firebasejs/9.22.2/firebase-database-compat.js"></script>
99
<script defer src="app.js"></script>
10+
<link rel="stylesheet" href="style.css">
11+
<link rel="preconnect" href="https://fonts.googleapis.com">
12+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
13+
<link href="https://fonts.googleapis.com/css2?family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400&display=swap" rel="stylesheet">
1014
</head>
1115
<body>
1216
<h1>Welcome to the Year 8 Chess Tournament</h1>

style.css

Lines changed: 86 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,92 @@
1-
.matches-grid {
2-
display: grid;
3-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
4-
gap: 1rem;
5-
margin-bottom: 2rem;
1+
body {
2+
font-family: 'Inter', sans-serif;
3+
background-color: #f9f9f9;
4+
margin: 0;
5+
padding: 1rem;
6+
color: #222;
67
}
8+
79
.match-card {
8-
border: 1px solid #ccc;
9-
padding: 0.5rem;
10-
border-radius: 0.5rem;
10+
background: white;
11+
border-radius: 12px;
12+
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
13+
padding: 1rem;
14+
margin: 1rem 0;
15+
max-width: 260px;
1116
text-align: center;
1217
}
18+
1319
.match-title {
14-
font-weight: bold;
20+
font-weight: 600;
21+
margin-bottom: 0.5rem;
22+
}
23+
24+
iframe {
25+
border-radius: 8px;
26+
}
27+
28+
#leaderboard {
29+
margin-top: 2rem;
30+
}
31+
32+
#leaderboard table {
33+
width: 100%;
34+
border-collapse: collapse;
35+
}
36+
37+
#leaderboard td, #leaderboard th {
38+
padding: 0.5rem;
39+
text-align: left;
40+
border-bottom: 1px solid #eee;
41+
}
42+
43+
#leaderboard th {
44+
background: #f0f0f0;
45+
}
46+
47+
button, #googleSignInBtn {
48+
background-color: #4CAF50;
49+
color: white;
50+
padding: 0.6rem 1rem;
51+
border: none;
52+
border-radius: 6px;
53+
cursor: pointer;
54+
font-size: 1rem;
1555
margin: 0.5rem 0;
16-
}
56+
}
57+
58+
button:hover {
59+
background-color: #45a049;
60+
}
61+
62+
#live-matches, #finished-matches {
63+
display: flex;
64+
flex-wrap: wrap;
65+
gap: 1rem;
66+
margin-top: 1rem;
67+
}
68+
69+
@media (prefers-color-scheme: dark) {
70+
body {
71+
background-color: #1e1e1e;
72+
color: #ddd;
73+
}
74+
75+
.match-card {
76+
background: #2a2a2a;
77+
box-shadow: 0 2px 10px rgba(255,255,255,0.05);
78+
}
79+
80+
#leaderboard th {
81+
background: #333;
82+
}
83+
84+
button, #googleSignInBtn {
85+
background-color: #3b82f6;
86+
}
87+
88+
button:hover {
89+
background-color: #2563eb;
90+
}
91+
}
92+

0 commit comments

Comments
 (0)