home page added
This commit is contained in:
@@ -1,13 +1,32 @@
|
||||
package homeview
|
||||
|
||||
import "git.haelnorr.com/h/oslstats/internal/db"
|
||||
import "git.haelnorr.com/h/oslstats/internal/view/baseview"
|
||||
|
||||
// Page content for the index page
|
||||
templ IndexPage() {
|
||||
@baseview.Layout("OSL Stats") {
|
||||
<div class="text-center mt-25">
|
||||
<div class="text-4xl lg:text-6xl">OSL Stats</div>
|
||||
<div>Placeholder text</div>
|
||||
templ IndexPage(season *db.Season, standings []LeagueStandings) {
|
||||
@baseview.Layout("Oceanic Slapshot League") {
|
||||
<div class="max-w-screen-2xl mx-auto px-2">
|
||||
<div class="mt-8 mb-12">
|
||||
<h1 class="text-5xl lg:text-6xl font-bold text-text mb-6 text-center">
|
||||
Oceanic Slapshot League
|
||||
</h1>
|
||||
<div class="max-w-3xl mx-auto bg-surface0 border border-surface1 rounded-lg p-6">
|
||||
<p class="text-base text-subtext0 leading-relaxed">
|
||||
The Oceanic Slapshot League (OSL) is a community for casual and competitive play of Slapshot: Rebound.
|
||||
It is managed by a small group of community members, and aims to provide a place for players in the Oceanic
|
||||
region (primarily Australia and New Zealand) to compete and play in organised League competitions, as well as
|
||||
casual pick-up games (RPUGs) and public matches (in-game matchmaking).
|
||||
The league is open to everyone, regardless of skill level.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="max-w-6xl mx-auto mb-12">
|
||||
@LatestStandings(season, standings)
|
||||
</div>
|
||||
<div class="max-w-6xl mx-auto mb-12">
|
||||
@ExternalLinks()
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user