diff --git a/doordesk/app/src/components/article.rs b/doordesk/app/src/components/article.rs index b617bf9..b045cb5 100644 --- a/doordesk/app/src/components/article.rs +++ b/doordesk/app/src/components/article.rs @@ -12,7 +12,8 @@ pub struct ArticleData { #[component] pub fn Article(data: ArticleData) -> impl IntoView { view! { -
+ // Shadow styling is in main .css file +

{&data.title}


{&data.date} diff --git a/doordesk/style/tailwind.css b/doordesk/style/tailwind.css index 8fea53f..996e19c 100644 --- a/doordesk/style/tailwind.css +++ b/doordesk/style/tailwind.css @@ -19,6 +19,11 @@ nav li:has(> a[aria-current="page"]) { @apply border-b-orange-700 border-b-2; } +/* Shadows don't work inline for some reason */ +article { + @apply shadow-lg shadow-black; +} + /* for innerHTML articles */ article p { @apply mt-5 indent-4;