complete the header layout

main
wholespace214 1 year ago
parent f4d5a85bc8
commit 6450b60198
  1. 11
      src/app/layout.js
  2. 5
      src/assets/icons/add.svg
  3. 3
      src/assets/icons/alerts.svg
  4. 15
      src/assets/icons/alpha-club.svg
  5. 3
      src/assets/icons/docs.svg
  6. 9
      src/assets/icons/floki.svg
  7. 4
      src/assets/icons/home.svg
  8. 3
      src/assets/icons/wallet.svg
  9. 29
      src/components/Layouts/Header/IconBtn/index.js
  10. 60
      src/components/Layouts/Header/index.js
  11. 8
      src/components/Layouts/SideBar/NavItem/index.js
  12. 2
      src/components/Layouts/SideBar/SmallIconOnlyBtn/index.js
  13. 6
      src/components/Layouts/SideBar/index.js

@ -2,6 +2,7 @@ import "./globals.css";
import { Inter } from "next/font/google";
import SideBar from "@/components/Layouts/SideBar";
import Header from "@/components/Layouts/Header";
const inter = Inter({ subsets: ["latin"] });
@ -14,8 +15,14 @@ export default function RootLayout({ children }) {
return (
<html lang="en">
<body className={inter.className}>
<SideBar />
{children}
<div className="flex">
<SideBar />
<div>
<Header />
<div>{children}</div>
</div>
</div>
</body>
</html>
);

@ -0,0 +1,5 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="add 1">
<path id="Vector" d="M10 4.375V15.625M15.625 10H4.375" stroke="#FCBF07" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 261 B

@ -0,0 +1,3 @@
<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.15003 12.542L6.38336 9.01705L12.7834 3.25038C13.0667 2.99205 12.725 2.86705 12.35 3.09205L4.45003 8.08371L1.03336 7.00038C0.300027 6.79205 0.291693 6.28371 1.20003 5.91705L14.5084 0.783713C15.1167 0.508713 15.7 0.933713 15.4667 1.86705L13.2 12.542C13.0417 13.3004 12.5834 13.4837 11.95 13.1337L8.50003 10.5837L6.84169 12.192C6.65003 12.3837 6.49169 12.542 6.15003 12.542Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 503 B

@ -0,0 +1,15 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_1_5570" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="20" height="20">
<g clip-path="url(#clip0_1_5570)">
<path d="M17.4611 11.075L16.3244 11.0642L10 20L3.67559 11.0631L2.53894 11.075C3.5762 8.52804 3.97753 7.7525 3.97753 7.7525L4.2646 0L7.90595 5.5375L9.31917 4.89865L6.01212 9.19225L8.0062 11.4073L10 16.3385L11.9941 11.4061L13.9879 9.19109L10.6808 4.89865L12.094 5.5375L15.7354 0L16.0225 7.7525C16.0225 7.7525 16.4241 8.52688 17.4611 11.075Z" fill="#F8F8F8"/>
</g>
</mask>
<g mask="url(#mask0_1_5570)">
<rect width="20" height="20" fill="white"/>
</g>
<defs>
<clipPath id="clip0_1_5570">
<rect width="14.9221" height="20" fill="white" transform="translate(2.53894)"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 834 B

@ -0,0 +1,3 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.8333 0.5H2.16667C1.25 0.5 0.5 1.25 0.5 2.16667V13.8333C0.5 14.75 1.25 15.5 2.16667 15.5H13.8333C14.75 15.5 15.5 14.75 15.5 13.8333V2.16667C15.5 1.25 14.75 0.5 13.8333 0.5ZM9.66667 12.1667H3.83333V10.5H9.66667V12.1667ZM12.1667 8.83333H3.83333V7.16667H12.1667V8.83333ZM12.1667 5.5H3.83333V3.83333H12.1667V5.5Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 440 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 35 KiB

@ -0,0 +1,4 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10.2172 3.95582C10.159 3.90019 10.0817 3.86914 10.0012 3.86914C9.92069 3.86914 9.84331 3.90019 9.78516 3.95582L2.59375 10.8257C2.56321 10.855 2.53891 10.8901 2.52233 10.9289C2.50574 10.9678 2.49722 11.0097 2.49727 11.0519L2.49609 17.4996C2.49609 17.8311 2.62779 18.149 2.86221 18.3835C3.09663 18.6179 3.41457 18.7496 3.74609 18.7496H7.5C7.66576 18.7496 7.82473 18.6837 7.94194 18.5665C8.05915 18.4493 8.125 18.2903 8.125 18.1246V12.8121C8.125 12.7292 8.15792 12.6497 8.21653 12.5911C8.27513 12.5325 8.35462 12.4996 8.4375 12.4996H11.5625C11.6454 12.4996 11.7249 12.5325 11.7835 12.5911C11.8421 12.6497 11.875 12.7292 11.875 12.8121V18.1246C11.875 18.2903 11.9408 18.4493 12.0581 18.5665C12.1753 18.6837 12.3342 18.7496 12.5 18.7496H16.2523C16.5839 18.7496 16.9018 18.6179 17.1362 18.3835C17.3706 18.149 17.5023 17.8311 17.5023 17.4996V11.0519C17.5024 11.0097 17.4939 10.9678 17.4773 10.9289C17.4607 10.8901 17.4364 10.855 17.4059 10.8257L10.2172 3.95582Z" fill="white"/>
<path d="M19.1762 9.53711L16.2543 6.7418V2.5C16.2543 2.33424 16.1885 2.17527 16.0713 2.05806C15.954 1.94085 15.7951 1.875 15.6293 1.875H13.7543C13.5886 1.875 13.4296 1.94085 13.3124 2.05806C13.1952 2.17527 13.1293 2.33424 13.1293 2.5V3.75L10.8668 1.58672C10.6551 1.37266 10.3402 1.25 10 1.25C9.66095 1.25 9.34689 1.37266 9.13517 1.58711L0.826577 9.53633C0.583609 9.7707 0.55314 10.1562 0.774234 10.4102C0.829753 10.4742 0.897734 10.5264 0.974038 10.5633C1.05034 10.6003 1.13337 10.6214 1.21808 10.6253C1.30278 10.6291 1.38739 10.6157 1.46675 10.5859C1.54611 10.556 1.61856 10.5103 1.6797 10.4516L9.78517 2.70625C9.84333 2.65062 9.92071 2.61957 10.0012 2.61957C10.0817 2.61957 10.159 2.65062 10.2172 2.70625L18.3235 10.4516C18.4429 10.5661 18.6028 10.6286 18.7682 10.6253C18.9336 10.6221 19.091 10.5534 19.2059 10.4344C19.4457 10.1859 19.4258 9.77578 19.1762 9.53711Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -0,0 +1,3 @@
<svg width="20" height="16" viewBox="0 0 20 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="Vector" d="M16 0H4C1.79 0 0 1.79 0 4V12C0 14.21 1.79 16 4 16H16C18.21 16 20 14.21 20 12V4C20 1.79 18.21 0 16 0ZM14.14 9.77C13.9 9.97 13.57 10.05 13.26 9.97L2.15 7.25C2.45 6.52 3.16 6 4 6H16C16.67 6 17.26 6.34 17.63 6.84L14.14 9.77ZM4 2H16C17.1 2 18 2.9 18 4V4.55C17.41 4.21 16.73 4 16 4H4C3.27 4 2.59 4.21 2 4.55V4C2 2.9 2.9 2 4 2Z" fill="#16171B"/>
</svg>

After

Width:  |  Height:  |  Size: 463 B

@ -0,0 +1,29 @@
import Image from "next/image";
import Home from "@/assets/icons/home.svg";
const IconBtn = ({
text = "Home",
icon = Home,
heigh = "h-[38px]",
BgClass = "bg-[#282828]",
TxClass = "text-[#fff]",
TxSize = "text-[14px]",
px = "px-[16px]",
py = "py-[8px]",
rounded = "rounded-[20px]",
borderColor = "border-[#282828]",
}) => {
return (
<button
className={`${px} ${py} flex justify-center items-center gap-2 ${rounded} ${heigh} ${BgClass} border ${borderColor}`}
>
<Image src={icon} alt="image" />
<p className={`${TxClass} text-[14px] font-semibold capitalize`}>
{text}
</p>
</button>
);
};
export default IconBtn;

@ -0,0 +1,60 @@
"use client";
import IconBtn from "./IconBtn";
import Home from "@/assets/icons/home.svg";
import Docs from "@/assets/icons/docs.svg";
import Alert from "@/assets/icons/alerts.svg";
import AlphaClub from "@/assets/icons/alpha-club.svg";
import Floki from "@/assets/icons/floki.svg";
import Wallet from "@/assets/icons/wallet.svg";
import Add from "@/assets/icons/add.svg";
const Header = () => {
return (
<div className="w-[1634px] h-20 px-10 bg-[#1b1b1b]/[.99] ml-[-1px] flex items-center justify-between">
<div className="flex gap-2">
<IconBtn text="Home" icon={Home} />
<IconBtn text="Docs" icon={Docs} />
<IconBtn text="presale alerts" icon={Alert} />
<IconBtn text="join alpha club" icon={AlphaClub} />
<div className="ml-[33px]">
<IconBtn
text="Burn Floki For get Whitelist"
icon={Floki}
BgClass="bg-[#f9a225]/[.9]"
heigh="h-[43px]"
/>
</div>
</div>
<div className="flex gap-x-[15.05px]">
<IconBtn
text="Create"
icon={Add}
BgClass="bg-[#1b1b1b]"
TxClass="text-[#FCBF07]"
TxSize="text-[14px]"
rounded="rounded-[30px]"
heigh="h-[49px]"
px="px-[18px]"
py="py-[12px]"
borderColor="border-[#FCBF07]"
/>
<IconBtn
text="Connect Wallet"
icon={Wallet}
BgClass="bg-[#FCBF07]"
TxClass="text-[#16171B]"
TxSize="text-[16px]"
rounded="rounded-[30px]"
heigh="h-[49px]"
px="px-[18px]"
py="py-[12px]"
/>
</div>
</div>
);
};
export default Header;

@ -7,15 +7,15 @@ const NavItem = ({
text = "Presales",
img = Presales,
right = false,
BgColor = "#1B1B1B",
TxColor = "#86888c",
BgClass = "bg-[#1B1B1B]",
TxClass = "text-[#86888c]",
}) => {
return (
<div
className={`flex items-center gap-x-4 py-3 pl-10 pr-2.5 bg-[${BgColor}]`}
className={`flex items-center gap-x-4 py-3 pl-10 pr-2.5 cursor-pointer ${BgClass}`}
>
<Image src={img} alt="image" />
<p className={`text-[${TxColor}] text-[16px] font-semibold capitalize`}>
<p className={`${TxClass} text-[16px] font-semibold capitalize`}>
{text}
</p>
{right && <Image src={Right} alt="right" />}

@ -5,7 +5,7 @@ import Telegram from "@/assets/icons/telegram.svg";
const SmallIconOnlyBtn = ({ icon = Telegram, shadow = true }) => {
return (
<div
className={`w-[90px] h-[40px] flex px-[33px] py-2 items-center justify-center bg-[#202125] rounded-lg ${
className={`w-[90px] h-[40px] flex px-[33px] py-2 items-center justify-center bg-[#202125] rounded-lg cursor-pointer ${
shadow && "shadow-xl"
}`}
>

@ -26,7 +26,7 @@ import FlokiBinance from "@/assets/image/floki-binance.png";
const SideBar = () => {
return (
<div className="bg-[#1B1B1B] w-[286px] h-[100%] pb-10">
<div className="bg-[#1B1B1B] w-[286px] h-[100%] pb-10 shadow-[4px_0_10px_0_rgba(14,15,20,0.31)] z-10">
<div className="flex items-center gap-x-2 pl-10 pt-[24.96px]">
<Image src={logo} alt="logo" />
<p className="text-[#fff] text-[19.067px] font-bold">Flashpad</p>
@ -60,8 +60,8 @@ const SideBar = () => {
<NavItem
text="Sponsorised by Floki"
img={Sponsored}
BgColor="#f79422"
TxColor="#fff"
BgClass="bg-[#f79422]"
TxClass="text-[#fff]"
/>
<div className="mt-40">

Loading…
Cancel
Save