From 47e7be36d57b4405deb0c6e48bd91504742f2e1a Mon Sep 17 00:00:00 2001 From: Ali Yar Khan Date: Sun, 28 May 2023 22:47:18 +0500 Subject: [PATCH] Nav, hero section and cards completed --- src/components/ButtonFill.jsx | 19 ++++--- src/components/ButtonOutline.jsx | 15 ++++++ src/components/Header.jsx | 85 +++++++++++++++++++++++++------- src/components/Nav/Nav.tsx | 8 +-- 4 files changed, 99 insertions(+), 28 deletions(-) create mode 100644 src/components/ButtonOutline.jsx diff --git a/src/components/ButtonFill.jsx b/src/components/ButtonFill.jsx index 8553c09..596c485 100644 --- a/src/components/ButtonFill.jsx +++ b/src/components/ButtonFill.jsx @@ -1,9 +1,16 @@ -import React from 'react' +/* eslint-disable react/prop-types */ +import React from "react"; -const ButtonFill = () => { +const ButtonFill = ({ children }) => { return ( -
ButtonFill
- ) -} + + ); +}; -export default ButtonFill \ No newline at end of file +export default ButtonFill; diff --git a/src/components/ButtonOutline.jsx b/src/components/ButtonOutline.jsx new file mode 100644 index 0000000..cbbfd9b --- /dev/null +++ b/src/components/ButtonOutline.jsx @@ -0,0 +1,15 @@ +/* eslint-disable react/prop-types */ +import React from "react"; + +const ButtonOutline = ({ children }) => { + return ( + + ); +}; + +export default ButtonOutline; diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 909e6a6..e773aac 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -1,25 +1,74 @@ /* eslint-disable react/no-unescaped-entities */ /* eslint-disable no-unused-vars */ -import React from 'react' -import Nav from './Nav/Nav' -import HeroImage from '../assets/Hero.png'; +import React from "react"; +import Nav from "./Nav/Nav"; +import HeroImage from "../assets/Hero.png"; +import ButtonFill from "./ButtonFill"; +import ButtonOutline from "./ButtonOutline"; +import Icon1 from "../assets/icon-1.png"; +import Icon2 from "../assets/icon-2.png"; +import Icon3 from "../assets/icon-3.png"; + const Header = () => { + const Info = [ + { + icon: Icon1, + title: "Secret Locations", + des: "Lorem ipsum dolor sit amet, consectet adipiscing elit, sed do eiusmod tempor.", + }, + { + icon: Icon2, + title: "Safe Adventure", + des: "Lorem ipsum dolor sit amet, consectet adipiscing elit, sed do eiusmod tempor.", + }, + { + icon: Icon3, + title: "Professional Hikers", + des: "Lorem ipsum dolor sit amet, consectet adipiscing elit, sed do eiusmod tempor.", + }, + ]; return ( -
- );