cleanup
This commit is contained in:
parent
64943b7cdf
commit
799254dd6e
3 changed files with 17 additions and 6 deletions
|
@ -4,5 +4,3 @@ import "context"
|
|||
|
||||
// Event handlers
|
||||
func HandleFooEvent(ctx context.Context, event any) {}
|
||||
|
||||
// func HandleFooEvent(ctx context.Context, event any) {}
|
||||
|
|
|
@ -6,10 +6,15 @@ import (
|
|||
|
||||
templ Index() {
|
||||
@layouts.App() {
|
||||
<div class="mt-20 text-center flex flex-col gap-10">
|
||||
<h1 class="max-w-xl mx-auto text-3xl lg:text-6xl font-bold">A single binary to change the world</h1>
|
||||
<div class="flex justify-center">
|
||||
<a href="https://github.com/anthdm/gothkit" target="_blank" class="bg-primary w-fit rounded-md px-4 py-2 text-primary-foreground">Getting started</a>
|
||||
<div class="h-screen text-center flex flex-col justify-center items-center">
|
||||
<div class="flex flex-col gap-10">
|
||||
<h1 class="inline-block text-transparent bg-clip-text max-w-2xl mx-auto text-4xl lg:text-7xl font-bold uppercase bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500">superkit</h1>
|
||||
<h1 class="max-w-2xl mx-auto text-2xl lg:text-4xl font-bold lg:leading-tight">
|
||||
Build high-performance apps swiftly with minimal team resources.
|
||||
</h1>
|
||||
<div class="flex justify-center">
|
||||
<a href="https://github.com/anthdm/gothkit" target="_blank" class="bg-primary w-fit rounded-md px-4 py-2 text-primary-foreground font-medium text-sm">What are you waiting for?</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
|
|
@ -135,6 +135,14 @@ func WithAuthentication(config AuthenticationConfig, strict bool) func(http.Hand
|
|||
}
|
||||
}
|
||||
|
||||
func Getenv(name string, def string) string {
|
||||
env := os.Getenv(name)
|
||||
if len(env) == 0 {
|
||||
return def
|
||||
}
|
||||
return env
|
||||
}
|
||||
|
||||
func IsDevelopment() bool {
|
||||
return os.Getenv("APP_ENV") == "development"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue