diff --git a/src/app/components/loading.rs b/src/app/components/loading.rs
index 800aea9..82110bd 100644
--- a/src/app/components/loading.rs
+++ b/src/app/components/loading.rs
@@ -7,8 +7,11 @@ pub fn Loading(
) -> impl IntoView {
view! {
-
{title}
-
+
+
{title}
}
}
diff --git a/src/app/pages/posts.rs b/src/app/pages/posts.rs
index a246158..a632c75 100644
--- a/src/app/pages/posts.rs
+++ b/src/app/pages/posts.rs
@@ -80,7 +80,7 @@ pub fn PostElement() -> impl IntoView {
};
view! {
- }>
+ }>
{post_view}
diff --git a/style/loading.css b/style/loading.css
new file mode 100644
index 0000000..8fac803
--- /dev/null
+++ b/style/loading.css
@@ -0,0 +1,15 @@
+@layer components {
+ .loading {
+ @apply bg-surface dark:bg-dark_surface text-on_surface dark:text-dark_on_surface;
+ @apply min-h-screen p-5;
+ @apply flex flex-col justify-center;
+
+ & svg {
+ @apply mx-auto w-12 h-12;
+ }
+
+ & p {
+ @apply text-center;
+ }
+ }
+}
\ No newline at end of file
diff --git a/style/portfolio.css b/style/portfolio.css
index f2240c2..da8be78 100644
--- a/style/portfolio.css
+++ b/style/portfolio.css
@@ -3,6 +3,7 @@
@import "tailwindcss/utilities";
@import './link.css';
+@import './loading.css';
@import './project.css';
@import './post.css';
@import './social_links.css';
diff --git a/style/title.css b/style/title.css
index 245345d..1f6e1a4 100644
--- a/style/title.css
+++ b/style/title.css
@@ -3,7 +3,7 @@
@apply flex flex-col md:flex-row items-center justify-between p-5;
& h1 {
- @apply text-center text-6xl mb-5 flex-1;
+ @apply my-3 font-bold text-center text-6xl mb-5 flex-1;
}
}
}