Skip to content

Commit

Permalink
Text shadow and big button
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed May 7, 2024
1 parent 838114f commit 2b6569d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Disclosure
Expand Down
16 changes: 9 additions & 7 deletions src/pages/projects/planner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,33 @@ const Planner = () => (
<div className="mx-8 lg:mx-16 xl:mx-32 pt-6 px-6 flex flex-col items-center gap-8 rounded-3xl text-white relative overflow-hidden">
<Image src={Rectangle} alt="project background" fill className="-z-20" />
<a
className="justify-self-end w-max px-16 py-2 rounded-full border-2 border-white whitespace-nowrap font-kallisto"
className="justify-self-end w-max px-16 py-2 rounded-full border-2 border-white whitespace-nowrap font-kallisto drop-shadow"
href="https://planner.utdnebula.com/"
target="_blank"
>
PLANNER
</a>
<h1 className="text-6xl font-bold text-center">
<h1 className="text-6xl font-bold text-center text-shadow">
Plan your degree
<br />
with ease
</h1>
<h2 className="text-3xl text-center">
<h2 className="text-3xl text-center text-shadow">
Blast off your academic journey with Planner - the ultimate tool for customizing your
four-year degree.
</h2>
<div className="md:mx-4 lg:mx-8 xl:mx-16 rounded-t-2xl overflow-hidden md:mb-[-4rem] lg:mb-[-8rem] xl:mb-[-16rem] ">
<Image src={Cover} alt="Planner screenshot" />
</div>
</div>
<div className="relative -top-10 w-full flex justify-center">
<a
className="px-6 py-3 text-white bg-royal rounded-full hover:bg-[#3634BB] transition-colors"
className="px-10 py-6 text-2xl text-white bg-royal rounded-full hover:bg-[#3634BB] transition-colors drop-shadow"
href="https://planner.utdnebula.com/auth/login"
target="_blank"
>
Get Started
</a>
<div className="md:mx-4 lg:mx-8 xl:mx-16 rounded-t-2xl overflow-hidden md:mb-[-4rem] lg:mb-[-8rem] xl:mb-[-16rem] ">
<Image src={Cover} alt="Planner screenshot" className="" />
</div>
</div>
<div className="px-8 lg:px-16 xl:px-32 py-24 flex flex-col items-center gap-12">
<h2 className="text-5xl font-bold text-center">Features</h2>
Expand Down
7 changes: 7 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2b6569d

Please sign in to comment.