Skip to content

Commit

Permalink
Merge pull request #9 from ETLOnline/feature/ui-hanzla
Browse files Browse the repository at this point in the history
feat(ui): home page design
  • Loading branch information
usama-tariq1 authored Dec 7, 2024
2 parents 5f5c744 + 058ce98 commit 284148a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
File renamed without changes
9 changes: 6 additions & 3 deletions src/app/(home)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import Footer from '@/src/components/HomeLayoutComponents/FooterComponent'
import Header from '@/src/components/HomeLayoutComponents/HeaderComponent'
import React, { ReactNode } from 'react'
import './style.css'




const PublicLayout = ({ children }: { children: ReactNode }) => {
return (
<>
<Header />
{children}
<Header />
<div className="content">
{children}
</div>
<Footer />

</>
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './home.css'
import './style.css'
import { Button } from "@/src/components/ui/button";
import { Avatar, AvatarFallback, AvatarImage } from "@/src/components/ui/avatar";
import { Carousel, CarouselContent, CarouselItem } from "@/src/components/ui/carousel";
Expand All @@ -14,7 +14,7 @@ export default function Home() {
<div className="hero">
<Container>
<div className='flex items-center justify-center h-screen w-full '>
<div className="content ">
<div className="hero-content ">
<h1 className="Main-Heading">Find and Book a Mentor for your 1:1 help today!</h1>
<p>We have our 200 Mentor available, qualified in over 300 subjects</p>
<Button size={'lg'} variant={'outline'} width={'fit'} >Find a Mentor</Button>
Expand Down
5 changes: 4 additions & 1 deletion src/app/(home)/home.css → src/app/(home)/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.content{
@apply w-full
}
.hero{
@apply w-full h-screen bg-home-secondary
}
.content{
.hero-content{
@apply w-full text-center md:text-left md:w-5/12 flex flex-col gap-8
}
.Main-Heading{
Expand Down
2 changes: 1 addition & 1 deletion src/components/HomeLayoutComponents/FooterComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './footer.css'
import Link from 'next/link'
import { Facebook, Instagram, Linkedin, Twitter } from 'lucide-react'
import { Separator } from '@/src/components/ui/separator'
import Navbaritems from '../NavBar/NAvbarItems'
import Navbaritems from '../NavBar/NavbarItem'


function Footer() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/NavBar/NavbarComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import './navbar.css'
import { Sheet, SheetContent, SheetTrigger } from '../ui/sheet'
import { Button } from '../ui/button'
import { HamIcon, Menu } from 'lucide-react'
import Navbaritems from './NAvbarItems'
import Navbaritems from './NavbarItem'

function Navbar() {

Expand Down
File renamed without changes.

0 comments on commit 284148a

Please sign in to comment.