Make the nav and landing page better on mobile
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m5s
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m5s
This commit is contained in:
@ -14,7 +14,10 @@ const Hero = (): JSX.Element => (
|
|||||||
<div className="flex flex-col gap-4 items-center text-center">
|
<div className="flex flex-col gap-4 items-center text-center">
|
||||||
{/* Title */}
|
{/* Title */}
|
||||||
<h1
|
<h1
|
||||||
className={cn("text-6xl text-minecraft-green-3", minecrafter.className)}
|
className={cn(
|
||||||
|
"text-5xl sm:text-6xl text-minecraft-green-3",
|
||||||
|
minecrafter.className
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
{config.siteName}
|
{config.siteName}
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -20,20 +20,20 @@ import { Suspense } from "react";
|
|||||||
const Navbar = (): JSX.Element => {
|
const Navbar = (): JSX.Element => {
|
||||||
const path: string = usePathname(); // Get the current path
|
const path: string = usePathname(); // Get the current path
|
||||||
return (
|
return (
|
||||||
<nav className="fixed inset-x-0 flex h-16 px-12 justify-center sm:justify-between items-center bg-navbar-background z-50">
|
<nav className="fixed inset-x-0 flex h-16 sm:px-12 justify-center sm:justify-between items-center bg-navbar-background z-50">
|
||||||
{/* Left */}
|
{/* Left */}
|
||||||
<div className="flex gap-7 lg:gap-12 items-center transition-all transform-gpu">
|
<div className="flex gap-3 xs:gap-7 lg:gap-12 items-center transition-all transform-gpu">
|
||||||
{/* App Branding */}
|
{/* App Branding */}
|
||||||
<Link
|
<Link
|
||||||
className={cn(
|
className={cn(
|
||||||
"hidden sm:flex text-3xl text-minecraft-green-3 hover:opacity-85 transition-all transform-gpu",
|
"text-3xl text-minecraft-green-3 hover:opacity-85 transition-all transform-gpu",
|
||||||
minecrafter.className
|
minecrafter.className
|
||||||
)}
|
)}
|
||||||
href="/"
|
href="/"
|
||||||
>
|
>
|
||||||
{/* Small Screens */}
|
{/* Small Screens */}
|
||||||
<Image
|
<Image
|
||||||
className="hidden sm:flex lg:hidden"
|
className="lg:hidden"
|
||||||
src="/media/logo.webp"
|
src="/media/logo.webp"
|
||||||
alt="Site Logo"
|
alt="Site Logo"
|
||||||
width={42}
|
width={42}
|
||||||
|
Reference in New Issue
Block a user