🖼️ Added solar icons
This commit is contained in:
@@ -76,6 +76,8 @@
|
|||||||
"zustand": "^4.4.6"
|
"zustand": "^4.4.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@iconify-json/solar": "^1.1.8",
|
||||||
|
"@iconify/tailwind": "^0.1.4",
|
||||||
"@storybook/addon-essentials": "^7.4.1",
|
"@storybook/addon-essentials": "^7.4.1",
|
||||||
"@storybook/addon-interactions": "^7.4.1",
|
"@storybook/addon-interactions": "^7.4.1",
|
||||||
"@storybook/addon-links": "^7.4.1",
|
"@storybook/addon-links": "^7.4.1",
|
||||||
|
|||||||
@@ -1,10 +1,80 @@
|
|||||||
import React from "react";
|
import React, { ReactElement } from "react";
|
||||||
|
|
||||||
export const Navbar2: React.FunctionComponent = () => {
|
export const Navbar2 = (): ReactElement => {
|
||||||
return (
|
return (
|
||||||
<header className="dark:bg-gray h-18 bg-white gap-8 px-5 py-5">
|
<header className="dark:bg-gray h-18 bg-white gap-8 px-5 py-5 border-b-2">
|
||||||
|
{/* Logo */}
|
||||||
<div className="mx-auto flex">
|
<div className="mx-auto flex">
|
||||||
<img src="/src/client/assets/img/threetwo.png" alt="ThreeTwo!" />
|
<img src="/src/client/assets/img/threetwo.png" alt="ThreeTwo!" />
|
||||||
|
|
||||||
|
{/* Main Navigation */}
|
||||||
|
<div className="flex flex-1 items-center justify-end md:justify-between">
|
||||||
|
<nav
|
||||||
|
aria-label="ThreeTwo Main Navigation"
|
||||||
|
className="hidden md:block"
|
||||||
|
>
|
||||||
|
<ul className="flex items-center gap-6 text-md">
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
className="text-gray-500 transition hover:text-gray-500/75 dark:text-white dark:hover:text-white/75"
|
||||||
|
href="/"
|
||||||
|
>
|
||||||
|
Dashboard
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
className="text-gray-500 transition hover:text-gray-500/75 dark:text-white dark:hover:text-white/75"
|
||||||
|
href="/"
|
||||||
|
>
|
||||||
|
Import
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
className="text-gray-500 transition hover:text-gray-500/75 dark:text-white dark:hover:text-white/75"
|
||||||
|
href="/"
|
||||||
|
>
|
||||||
|
Library
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
className="text-gray-500 transition hover:text-gray-500/75 dark:text-white dark:hover:text-white/75"
|
||||||
|
href="/"
|
||||||
|
>
|
||||||
|
Volumes
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
className="text-gray-500 transition hover:text-gray-500/75 dark:text-white dark:hover:text-white/75"
|
||||||
|
href="/"
|
||||||
|
>
|
||||||
|
Downloads
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{/* Right-most Nav */}
|
||||||
|
<div className="flex items-center gap-4">
|
||||||
|
<ul className="flex items-center gap-6 text-md">
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
className="text-gray-500 transition hover:text-gray-500/75 dark:text-white dark:hover:text-white/75"
|
||||||
|
href="/"
|
||||||
|
>
|
||||||
|
Settings
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { addDynamicIconSelectors } from "@iconify/tailwind";
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
||||||
@@ -17,5 +19,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: ["tailwindcss ,autoprefixer"],
|
plugins: [
|
||||||
|
{
|
||||||
|
tailwindcss: {},
|
||||||
|
autoprefixer: {},
|
||||||
|
addDynamicIconSelectors: addDynamicIconSelectors(),
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
19
yarn.lock
19
yarn.lock
@@ -1567,6 +1567,25 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz#e5211452df060fa8522b55c7b3c0c4d1981cb044"
|
resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz#e5211452df060fa8522b55c7b3c0c4d1981cb044"
|
||||||
integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==
|
integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==
|
||||||
|
|
||||||
|
"@iconify-json/solar@^1.1.8":
|
||||||
|
version "1.1.8"
|
||||||
|
resolved "https://registry.yarnpkg.com/@iconify-json/solar/-/solar-1.1.8.tgz#4fabba95f46f38da860ee60dbc97b46c6d1762c3"
|
||||||
|
integrity sha512-w9khWcUWSydMci7V4wTsHof8tz/S2hJeXj+PbnI/Ic/47BpQKGrLYV7W5+oMKIONUmj5VrBBtctpy8o1rL9JHw==
|
||||||
|
dependencies:
|
||||||
|
"@iconify/types" "*"
|
||||||
|
|
||||||
|
"@iconify/tailwind@^0.1.4":
|
||||||
|
version "0.1.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/@iconify/tailwind/-/tailwind-0.1.4.tgz#c5baee6e863d01d7b1d5ff3f0c5cd4fc49b2c0c7"
|
||||||
|
integrity sha512-U7RzcU2fkwOfMDsGQ3mtpLIaApSnqb+vgcJJknPPbg8/NF5s7tI1o5otEMfcpnLGk4PbYB8bxmKTz7IJVUlU2Q==
|
||||||
|
dependencies:
|
||||||
|
"@iconify/types" "^2.0.0"
|
||||||
|
|
||||||
|
"@iconify/types@*", "@iconify/types@^2.0.0":
|
||||||
|
version "2.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@iconify/types/-/types-2.0.0.tgz#ab0e9ea681d6c8a1214f30cd741fe3a20cc57f57"
|
||||||
|
integrity sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==
|
||||||
|
|
||||||
"@isaacs/cliui@^8.0.2":
|
"@isaacs/cliui@^8.0.2":
|
||||||
version "8.0.2"
|
version "8.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
|
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
|
||||||
|
|||||||
Reference in New Issue
Block a user