Skip to content

Commit

Permalink
chore: update font display swap
Browse files Browse the repository at this point in the history
  • Loading branch information
ivalshamkya committed Jan 25, 2024
1 parent a3cb02d commit d97923c
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 32 deletions.
8 changes: 4 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { Inter, IBM_Plex_Mono, Darker_Grotesque, Bricolage_Grotesque } from 'nex
import './globals.css'
import Navbar from '@/components/Navbar'

const inter = Inter({ subsets: ['latin'] })
const ibm = IBM_Plex_Mono({ subsets: ['latin'], weight: "500" })
const Grotesque = Darker_Grotesque({ subsets: ['latin'], weight: "500" })
const bricolage = Bricolage_Grotesque({ subsets: ['latin'] })
const inter = Inter({ subsets: ['latin'], display: 'swap', adjustFontFallback: false })
const ibm = IBM_Plex_Mono({ subsets: ['latin'], weight: "500", display: 'swap', adjustFontFallback: false })
const Grotesque = Darker_Grotesque({ subsets: ['latin'], weight: "500", display: 'swap', adjustFontFallback: false })
const bricolage = Bricolage_Grotesque({ subsets: ['latin'], display: 'swap', adjustFontFallback: false })

export const metadata: Metadata = {
title: 'NeoBruu',
Expand Down
19 changes: 0 additions & 19 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,10 @@
import Link from "next/link";
import { useEffect, useState } from "react";
import { AiFillGithub } from "react-icons/ai";
import { CgDarkMode, CgMoon, CgSun } from "react-icons/cg";
import { IoIosMoon, IoIosSunny } from "react-icons/io";
import { RiMoonClearFill } from "react-icons/ri";
import SearchBar from "./SearchBar";

function Navbar() {
const [theme, setTheme] = useState<string>("");
const [search, setSearch] = useState<string>("");

const handleClick = () => {
setTheme(theme === "light" ? "dark" : "light");
};

useEffect(() => {
setTheme((prev) => localStorage.getItem("theme") ?? "light");
Expand All @@ -41,17 +33,6 @@ function Navbar() {
>
<AiFillGithub className="h-6 w-6 text-white" />
</a>
{/* <button
type="button"
onClick={handleClick}
className="flex items-center justify-center rounded-md border border-black p-2 shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] shadow-orange-400/40 transition-all hover:translate-x-[3px] hover:translate-y-[3px] hover:shadow-none dark:border-zinc-600 dark:shadow-yellow-400/40"
>
{theme === "light" ? (
<IoIosSunny className="h-6 w-6 text-orange-400" />
) : (
<RiMoonClearFill className="h-6 w-6 text-yellow-400" />
)}
</button> */}
</div>
</div>
</nav>
Expand Down
5 changes: 3 additions & 2 deletions src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import Link from 'next/link';
import { useState, useEffect, ChangeEvent, useRef } from 'react';

import components from '@/data/components';
import { CgClose, CgSearch } from 'react-icons/cg';
import { MdAdd, MdKeyboardCommandKey } from "react-icons/md";
import components from '@/data/components'; // Update the path
import Link from 'next/link';
import { RxComponent1 } from "react-icons/rx";

type SearchBarProps = {};
Expand Down
3 changes: 1 addition & 2 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import { usePathname } from 'next/navigation';
import components from '@/data/components';
import Link from 'next/link';
import Badge from './neobruu/Badge';
import { metadata } from '@/app/layout';
import Badge from '@/components/neobruu/Badge';

export default function Sidebar() {
const pathname = usePathname();
Expand Down
1 change: 0 additions & 1 deletion src/components/example/AlertExample.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Button from "@/components/neobruu/Button";
import Alert from "@/components/neobruu/Alert";
import { BsInfoCircleFill, BsExclamationTriangleFill } from "react-icons/bs";

Expand Down
2 changes: 1 addition & 1 deletion src/components/example/CardExample.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Card from "@/components/neobruu/Card";
import Button from "../neobruu/Button";
import Button from "@/components/neobruu/Button";

export default function CardExample() {
return (
Expand Down
1 change: 0 additions & 1 deletion src/components/example/TabsExample.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client'
import Tabs from '@/components/neobruu/Tabs';


export default function TabsExample() {

return (
Expand Down
2 changes: 0 additions & 2 deletions src/components/example/ToastExample.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use client'

import Toast from "@/components/neobruu/Toast";
import Button from "../neobruu/Button";
import { useState } from "react";

export default function ToastExample() {
Expand Down

0 comments on commit d97923c

Please sign in to comment.