This commit is contained in:
nelle 2024-08-11 01:32:31 -06:00
parent fa8684ed4b
commit d1ec38f706
7 changed files with 18 additions and 28 deletions

View file

@ -8,11 +8,7 @@ import Layout from "../layouts/Layout.astro";
<section class="content">
<h1 class="title">nelle.observer</h1>
</section>
<div class="container">
<section class="content" style="flex: 60%;">
<p>hello, what brings you here?</p>
</section>
<section class="content" style="flex: 1000%;">
<section class="content">
<p>hello, what brings you here?</p>
<p>
my name is nelle (not Nelle, nelle), some call me <span class="glitch">[data expunged]</span>.
@ -20,10 +16,6 @@ import Layout from "../layouts/Layout.astro";
i am a 20-something year old, <span class="glitch">[data expunged]</span>, with not much else going on.
</p>
</section>
<section class="content" style="flex: 60%;">
<p>hello, what brings you here?</p>
</section>
</div>
<section class="content">
<div id="lastfm-widget" style="text-align: center;">
<div id="widget">

1
ktor/.idea/.name Normal file
View file

@ -0,0 +1 @@
nelle-observer

6
ktor/.idea/vcs.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

View file

@ -40,3 +40,7 @@ dependencies {
kotlin {
jvmToolchain(21)
}
task<Exec>("buildAstro") {
commandLine("pnpm", "-C", "../astro/", "run", "build")
}

View file

@ -1,5 +1,5 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
rootProject.name = "nelleObserverSite"
rootProject.name = "nelle-observer"

View file

@ -10,7 +10,7 @@ fun main(args: Array<String>) {
}
fun Application.module() {
configureTemplating()
//configureTemplating()
configureSecurity()
configureRouting()
}

View file

@ -7,8 +7,9 @@ import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.server.plugins.statuspages.*
import kotlinx.css.html
import java.io.File
fun Application.configureRouting() {
fun Application.configureRouting() {/*
// Import status pages plugin
install(StatusPages) {
exception<IllegalStateException> { call, cause ->
@ -16,24 +17,10 @@ fun Application.configureRouting() {
}
statusFile(HttpStatusCode.NotFound, filePattern = "statusPages/404.html")
}
}*/
routing {
/*
// Status Page Test
get("/error-test") {
throw IllegalStateException("Too Busy")
}
// Resond with custom html content
get("/about") {
val text = "<h1>:3</h1>"
val type = ContentType.parse("text/html")
call.respondText(text, type)
}
*/
// Set a static resource path 'resources/content/' to be served
staticResources("/static", "static")
staticFiles("/", File("static"))
}
}