Skip to content

Commit 06477b2

Browse files
committed
style(ui): modify
1 parent cc599b8 commit 06477b2

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/components/Header.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</script>
99

1010
<header
11-
class="shadow-md flex flex-col items-center justify-center bg-gradient-to-r from-blue-100 dark:from-blue-500/50 to-cyan-100 dark:to-cyan-500/50"
11+
class="shadow-md flex flex-col items-center justify-center bg-gradient-to-r from-blue-100 dark:from-blue-500/50 to-cyan-100 dark:to-cyan-500/50 z-10"
1212
>
1313
<div class="p-4 flex flex-col md:flex-row gap-4 items-center">
1414
<img

src/lib/assets/style.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
body,
2-
h1 {
1+
body {
32
margin: 0;
3+
background-color: rgb(241 245 249);
44
}
55

66
html {
@@ -32,6 +32,7 @@ h1 {
3232
font-size: 2.25rem; /* 36px */
3333
line-height: 2.5rem; /* 40px */
3434
font-weight: 500;
35+
margin: 0;
3536
}
3637

3738
h2 {
@@ -77,6 +78,9 @@ code {
7778
html {
7879
color-scheme: dark;
7980
}
81+
body {
82+
background-color: rgb(2 6 23)
83+
}
8084
*,
8185
*::before,
8286
*::after {

src/routes/+layout.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
<link rel="canonical" href="https://insli.cc" />
2323
</svelte:head>
2424

25-
<div class="flex flex-col min-h-svh">
25+
<div class="max-w-2xl mx-auto flex flex-col min-h-svh">
2626
<Header />
27-
<main class="flex-auto p-4 max-w-2xl mx-auto w-full">
28-
<slot />
27+
<main class="flex-auto w-full">
28+
<section class="p-4 bg-white dark:bg-slate-800 shadow rounded-b-md">
29+
<slot />
30+
</section>
2931
</main>
3032
<footer>
3133
<p class="text-center text-sm">

0 commit comments

Comments
 (0)