Skip to content

Commit e51f266

Browse files
committed
Serve static files før endepunkter
1 parent efc90f4 commit e51f266

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

backend/src/main/kotlin/no/nais/cloud/testnais/sandbox/bachelorurlforkorter/UrlForkorterApi.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ fun main() {
2525

2626
fun startAppServer(config: Config) {
2727
val app = Javalin.create { javalinConfig ->
28+
javalinConfig.staticFiles.add("/public", Location.CLASSPATH)
2829
javalinConfig.router.apiBuilder {
2930
path("api") {
3031
post("sjekk", UrlForkorterController::sjekk, Rolle.Alle)
@@ -33,7 +34,6 @@ fun startAppServer(config: Config) {
3334
}
3435
get("{korturl}", UrlForkorterController::redirect, Rolle.Alle)
3536
}
36-
javalinConfig.staticFiles.add("/public", Location.CLASSPATH)
3737
// TODO: Kun for lokal utvikling med hot reload
3838
javalinConfig.bundledPlugins.enableCors {cors ->
3939
cors.addRule {it.allowHost("http://localhost:5173")}

frontend/src/App.css

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
box-sizing: border-box;
99
--theme-color: #535bf2;
1010
--theme-color-focus: #464ee3;
11+
font-family: "Roboto Light", sans-serif;
1112
}
1213

1314
@media (prefers-color-scheme: dark) {

frontend/src/components/ShowAll/showall.style.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const TableContainer = styled.div`
55
margin: 20px auto;
66
padding: 15px;
77
border-radius: 10px;
8-
background-color: #fcfcfc;
8+
background-color: #fdfdfd;
99
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
1010
`;
1111

@@ -32,11 +32,13 @@ export const TableCell = styled.td`
3232
padding: 6px;
3333
border: 1px solid #ddd;
3434
text-align: left;
35+
font-size: 14px;
3536
`;
3637

3738
export const TableHeaderCell = styled.th`
38-
padding: 7.5px;
39+
padding: 7px;
3940
text-align: left;
41+
font-size: 14px;
4042
border: 1px solid #ddd;
4143
`;
4244

0 commit comments

Comments
 (0)