From d9e2a4f16418c774d8bb69d95b9358abffc62f86 Mon Sep 17 00:00:00 2001 From: shirsho-roy Date: Wed, 8 Jun 2022 10:31:42 +0530 Subject: [PATCH] Update Repo --- src/App.jsx | 2 ++ src/pages/header/Header.css | 60 +++++++++++++++++++++++++++++++++++++ src/pages/header/Header.js | 59 ++++++++++++++++++++++++++++++++++++ tailwind.config.js | 21 +++++++++++++ 4 files changed, 142 insertions(+) create mode 100644 src/pages/header/Header.css diff --git a/src/App.jsx b/src/App.jsx index 723822a..bbd618f 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,10 +1,12 @@ import React from "react"; +import Header from "./pages/header/Header"; import CallUs from "./pages/ContactUs/CallUs"; import Faq from "./pages/FAQs/Faq"; function App() { return (
+
diff --git a/src/pages/header/Header.css b/src/pages/header/Header.css new file mode 100644 index 0000000..ddb2101 --- /dev/null +++ b/src/pages/header/Header.css @@ -0,0 +1,60 @@ +.hamburger{ + display: none; + height: 40px; + width: 40px; + padding: 0.5rem; + cursor: pointer; + transition: background-color 0.2s ease-in-out; +} +.nav-menu{ + position: relative; + margin-right: 14px; + float: right; +} +#Banner{ + display: flex; + justify-content: center; + align-items: center; + background-size: contain; + padding: 6px; + background-color: #35b8be; + height: 3rem; + background-image: url('https://assets.website-files.com/5e865e09d8efa3310676b585/5e865e09d8efa36d5976b5d3_Banner%20Wave.svg'); +} +@media screen and (max-width: 700px){ + .hamburger{ + display: inline; + transition: all 0.5s linear; + } + nav{ + display: none; + } + nav.expanded{ + display: block; + } + .w-nav-menu{ + display: block; + position: absolute; + top:130px; + left: 0; + display: flex; + flex-direction: column; + width: 100%; + height: calc(100vh - 77px); + background-color: white; + /* border-top: 1px solid black; */ + color:#35b8be; + text-align: left; + transition: all 0.5s linear; + } + .nav-menu a{ + margin: 0; + text-align: left; + transition: all 0.5s linear; + } +} +@media screen and (max-width: 480px){ + #Banner{ + display: none; + } +} \ No newline at end of file diff --git a/src/pages/header/Header.js b/src/pages/header/Header.js index e69de29..d89334f 100644 --- a/src/pages/header/Header.js +++ b/src/pages/header/Header.js @@ -0,0 +1,59 @@ +import React from 'react' +import {GiHamburgerMenu} from 'react-icons/gi'; +import './Header.css'; +import { useState } from "react"; + +const Header = () => { + const [isNavExpanded, setIsNavExpanded] = useState(false); + + // flex justify-center items-center bg-contain p-1.4 bg-cyanhead h-12 bg-[url('https://assets.website-files.com/5e865e09d8efa3310676b585/5e865e09d8efa36d5976b5d3_Banner%20Wave.svg')] + return ( +
+ + +
+ ) +} + +export default Header \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 51520b2..e641b33 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -2,6 +2,27 @@ module.exports = { content: ["./src/**/*.{jsx,js,html}"], theme: { extend: {}, + colors:{ + 'cyanhead': '#35b8be', + 'notice-text':'hsla(0, 0%, 100%, 0.8)', + 'white': '#fff', + 'col2' : '#333333' + }, + fontSize:{ + 's': '24px', + 's2': '16px', + 's3': '18px' + }, + minHeight:{ + 'cart':'55px', + 'cart2': '50px' + }, + minWidth:{ + 'cart': '55px', + }, + boxShadow:{ + 'xl': '7px 7px 25px 0 rgb(126 130 143 / 27%)', + }, }, plugins: [], };