1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 03:14:40 -05:00

make it months instead wawa :3

This commit is contained in:
ashley 2024-10-04 14:43:35 +00:00
parent 27ae6acc87
commit 786704bcde

View file

@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="manifest" href="/manifest.json"> <link rel="manifest" href="/manifest.json">
<link href="css/yt-ukraine.svg" rel=icon> <link href="css/yt-ukraine.svg" rel="icon">
<title>Poke! Calendar</title> <title>Poke! Calendar</title>
</head> </head>
<body> <body>
@ -13,10 +13,6 @@ body {
background-color: #121212; background-color: #121212;
color: #ffffff; color: #ffffff;
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0; margin: 0;
} }
@ -28,9 +24,29 @@ body {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: 90%; width: 90%;
max-width: 800px; max-width: 800px;
margin: auto;
} }
h1, h2, h3 { .navbar {
background-color: #333333;
padding: 10px;
display: flex;
justify-content: space-between; /* Aligns items on both ends */
align-items: center; /* Centers items vertically */
}
.navbar h1 {
margin: 0;
color: #bb86fc;
}
.navbar .years {
color: #bb86fc; /* Year text color */
display: flex; /* Use flexbox for alignment */
gap: 20px; /* Space between year elements */
}
h2, h3 {
color: #bb86fc; color: #bb86fc;
} }
@ -72,20 +88,23 @@ h1, h2, h3 {
.button:hover { .button:hover {
background-color: #9c62f3; background-color: #9c62f3;
} }
</style> </style>
<div class="container">
<div class="container">
<div class="navbar">
<h1>Poke Calendar!! woaww</h1> <h1>Poke Calendar!! woaww</h1>
<div class="years">
<h2>Gregorian Year: <%= year %></h2> <h2>Gregorian Year: <%= year %></h2>
<h2>Islamic Year: <%= islamicYear %></h2> <h2>Islamic Year: <%= islamicYear %></h2>
<h2>Persian Year: <%= persianYear %></h2> <h2>Persian Year: <%= persianYear %></h2>
<h3>Week of <%= currentDate.toDateString() %></h3> </div>
</div>
<table class="calendar-table"> <table class="calendar-table">
<thead> <thead>
<tr> <tr>
<th>Sunday!!!!</th> <th>Sunday</th>
<th>Monday :c</th> <th>Monday</th>
<th>Tuesday</th> <th>Tuesday</th>
<th>Wednesday</th> <th>Wednesday</th>
<th>Thursday</th> <th>Thursday</th>
@ -94,18 +113,23 @@ h1, h2, h3 {
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<% for (let i = 0; i < 6; i++) { %>
<tr> <tr>
<% days.forEach(day => { %> <% for (let j = 0; j < 7; j++) { %>
<td><%= day.getDate() %> - <%= day.toDateString() %></td> <td>
<% }) %> <% const day = days[i * 7 + j]; %>
<%= day ? day.getDate() : '' %>
</td>
<% } %>
</tr> </tr>
<% } %>
</tbody> </tbody>
</table> </table>
<div class="nav-links"> <div class="nav-links">
<a href="/calendar?date=<%= currentDate.toISOString() %>&week=-1" class="button">Previous Week</a> <a href="/calendar?date=<%= currentDate.toISOString() %>&month=<%= month - 1 < 0 ? 11 : month - 1 %>&year=<%= month - 1 < 0 ? year - 1 : year %>" class="button">Previous Month</a>
<a href="/calendar?date=<%= currentDate.toISOString() %>&week=1" class="button">Next Week</a> <a href="/calendar?date=<%= currentDate.toISOString() %>&month=<%= (month + 1) % 12 %>&year=<%= month + 1 > 11 ? year + 1 : year %>" class="button">Next Month</a>
</div>
</div> </div>
</div>
</body> </body>
</html> </html>