Revert "Replace PNG icons with Habbo-style SVG pixel art icons across index, nav, and mobile nav"
This reverts commit ac16df98c3.
This commit is contained in:
1 parent
ac16df98c3
commit
36d9046a8d
5 files changed
+218
-480
No files matched your search
+75
-120
File diff suppressed because it is too large.
Load diff
@@ -1,10 +1,10 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { AnimatePresence, motion } from "framer-motion";
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
|
import Image from "next/image";
|
||||||
import { type ReactNode, useRef, useState } from "react";
|
import { type ReactNode, useRef, useState } from "react";
|
||||||
import { FALLBACK_HOTEL_NAME } from "@/lib/brand";
|
import { FALLBACK_HOTEL_NAME } from "@/lib/brand";
|
||||||
import { mobileMenuVariants } from "@/lib/motion";
|
import { mobileMenuVariants } from "@/lib/motion";
|
||||||
import { HabboHome } from "@/components/shared/habbo-icons";
|
|
||||||
|
|
||||||
interface MobileNavProps {
|
interface MobileNavProps {
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
@@ -88,7 +88,13 @@ export function MobileNav({
|
|||||||
"color-mix(in srgb, var(--color-primary) 12%, transparent)",
|
"color-mix(in srgb, var(--color-primary) 12%, transparent)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<HabboHome size={22} />
|
<Image
|
||||||
|
src="/assets/images/icons/navigation/home.png"
|
||||||
|
alt=""
|
||||||
|
width={22}
|
||||||
|
height={22}
|
||||||
|
className="shrink-0"
|
||||||
|
/>
|
||||||
<span
|
<span
|
||||||
className="text-sm font-extrabold uppercase tracking-wide"
|
className="text-sm font-extrabold uppercase tracking-wide"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { AnimatePresence, motion } from "framer-motion";
|
import { AnimatePresence, motion } from "framer-motion";
|
||||||
|
import Image from "next/image";
|
||||||
import { type ReactNode, useEffect, useRef, useState } from "react";
|
import { type ReactNode, useEffect, useRef, useState } from "react";
|
||||||
import { dropdownVariants } from "@/lib/motion";
|
import { dropdownVariants } from "@/lib/motion";
|
||||||
|
|
||||||
interface NavDropdownProps {
|
interface NavDropdownProps {
|
||||||
label: string;
|
label: string;
|
||||||
icon?: ReactNode;
|
icon?: string;
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,7 +45,14 @@ export function NavDropdown({ label, icon, children }: NavDropdownProps) {
|
|||||||
aria-expanded={open}
|
aria-expanded={open}
|
||||||
>
|
>
|
||||||
{icon ? (
|
{icon ? (
|
||||||
<span className="mr-1.5 flex items-center">{icon}</span>
|
<Image
|
||||||
|
src={icon}
|
||||||
|
alt=""
|
||||||
|
width={20}
|
||||||
|
height={20}
|
||||||
|
className="mr-1.5"
|
||||||
|
unoptimized
|
||||||
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
{label}
|
{label}
|
||||||
<motion.svg
|
<motion.svg
|
||||||
|
|||||||
+125
-46
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user