From 2b6569d4cbc99c4b1b46a68afbd689ccbe4152b8 Mon Sep 17 00:00:00 2001 From: Tyler Hill Date: Tue, 7 May 2024 02:44:40 -0500 Subject: [PATCH] Text shadow and big button --- src/components/Navbar.tsx | 4 ++-- src/pages/projects/planner.tsx | 16 +++++++++------- src/styles/globals.css | 7 +++++++ 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 6c1ce77..97795c3 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -149,8 +149,8 @@ const Navbar = (props: Props) => { }; }, [ref]); - const textShadow = props.shadow ? '[text-shadow:_0_0_4px_rgb(0_0_0_/_0.4)]' : ''; - const dropShadow = props.shadow ? '[filter:_drop-shadow(0_0_4px_rgb(0_0_0_/_0.4))]' : ''; + const dropShadow = props.shadow ? 'drop-shadow' : ''; + const textShadow = props.shadow ? 'text-shadow' : ''; return ( (
project background PLANNER -

+

Plan your degree
with ease

-

+

Blast off your academic journey with Planner - the ultimate tool for customizing your four-year degree.

+
+ Planner screenshot +
+
+
Get Started -
- Planner screenshot -

Features

diff --git a/src/styles/globals.css b/src/styles/globals.css index e0666b3..25dc08f 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -16,6 +16,13 @@ html { background-repeat: repeat-x, no-repeat, no-repeat; } +.drop-shadow { + filter: drop-shadow(0 0 4px rgb(0 0 0 / 0.4)); +} +.text-shadow { + text-shadow: 0 0 4px rgb(0 0 0 / 0.4); +} + @layer utilities { /* adapted from https://dev.to/derick1530/how-to-create-scrollable-element-in-tailwind-without-a-scrollbar-4mbd */ /* Hide scrollbar for Chrome, Safari and Opera */