Make the nav and hero more mobile responsive
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m1s
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m1s
This commit is contained in:
parent
e7bdfe1f65
commit
e8000a1fbc
@ -45,7 +45,7 @@ const GitHubStarButton = (): ReactElement => {
|
|||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<MinecraftButton className="flex gap-1.5 items-center group/star">
|
<MinecraftButton className="px-3 xs:px-5 flex gap-1.5 items-center group/star">
|
||||||
{/* Star Count */}
|
{/* Star Count */}
|
||||||
<Suspense
|
<Suspense
|
||||||
fallback={<Skeleton className="w-4 h-5 rounded-md" />}
|
fallback={<Skeleton className="w-4 h-5 rounded-md" />}
|
||||||
|
@ -29,9 +29,9 @@ const Hero = (): ReactElement => (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Links */}
|
{/* Links */}
|
||||||
<div className="flex gap-5 xs:gap-10">
|
<div className="flex gap-3.5 xs:gap-5 sm:gap-10">
|
||||||
<Link href="/docs">
|
<Link href="/docs">
|
||||||
<MinecraftButton className="w-44 h-12">
|
<MinecraftButton className="w-36 xs:w-44 h-12">
|
||||||
Get Started
|
Get Started
|
||||||
</MinecraftButton>
|
</MinecraftButton>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -17,8 +17,8 @@ import { ReactElement } from "react";
|
|||||||
const Navbar = (): ReactElement => {
|
const Navbar = (): ReactElement => {
|
||||||
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-2.5 xs:px-5 sm:px-12 bg-navbar-background transition-all transform-gpu z-50">
|
<nav className="fixed inset-x-0 flex h-16 px-3 xs:px-5 sm:px-12 bg-navbar-background transition-all transform-gpu z-50">
|
||||||
<div className="relative w-full flex justify-between items-center">
|
<div className="w-full flex justify-between items-center">
|
||||||
{/* App Branding - Left */}
|
{/* App Branding - Left */}
|
||||||
<Link
|
<Link
|
||||||
className={cn(
|
className={cn(
|
||||||
@ -41,7 +41,7 @@ const Navbar = (): ReactElement => {
|
|||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
{/* Center - Links */}
|
{/* Center - Links */}
|
||||||
<div className="absolute inset-x-0 md:left-20 lg:left-0 flex justify-center md:justify-start lg:justify-center">
|
<div className="ml-auto absolute right-3 xs:inset-x-0 md:left-28 lg:left-0 flex justify-center md:justify-start lg:justify-center">
|
||||||
<div className="flex gap-7">
|
<div className="flex gap-7">
|
||||||
{Object.entries(config.navbarLinks).map(
|
{Object.entries(config.navbarLinks).map(
|
||||||
(link: [string, string], index: number) => {
|
(link: [string, string], index: number) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user