added hero component
This commit is contained in:
parent
0e996de07a
commit
aad69da614
6 changed files with 30 additions and 4 deletions
BIN
task_management_app/public/img.png
Normal file
BIN
task_management_app/public/img.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
BIN
task_management_app/public/logo.png
Normal file
BIN
task_management_app/public/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.2 KiB |
|
@ -6,7 +6,7 @@ import Header from "@/components/Header";
|
|||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Task Management App",
|
||||
title: "Agenda board",
|
||||
description: "Generated by create next app",
|
||||
};
|
||||
|
||||
|
@ -17,6 +17,7 @@ export default function RootLayout({
|
|||
}>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<link rel="shortcut icon" href="/logo.png" />
|
||||
<body className={inter.className}>
|
||||
<Header/>
|
||||
<main className="p-10">
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import Boards from "@/components/Boards";
|
||||
import LoginView from "@/components/views/LoginView";
|
||||
import Hero from "@/components/Hero";
|
||||
import { authOptions } from "@/lib/authOptions";
|
||||
import { getServerSession } from "next-auth";
|
||||
import Link from "next/link";
|
||||
|
@ -10,7 +11,10 @@ export default async function Home() {
|
|||
const session = await getServerSession(authOptions);
|
||||
if(!session){
|
||||
return(
|
||||
<LoginView/>
|
||||
<>
|
||||
<Hero/>
|
||||
<LoginView/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
return (
|
||||
|
|
|
@ -3,13 +3,17 @@ import { getServerSession } from 'next-auth'
|
|||
import LogoutButton from './LogoutButton';
|
||||
import LoginButton from './LoginButton';
|
||||
import Link from 'next/link';
|
||||
import Image from 'next/image';
|
||||
import Logo from '../../public/logo.png'
|
||||
|
||||
const Header = async () => {
|
||||
const session = await getServerSession(authOptions);
|
||||
return (
|
||||
<header className="p-4 border border-b-[#9BBEC8] px-4 md:px-10">
|
||||
<div className='flex justify-between items-center'>
|
||||
<Link href="/" className="logo text-[#427D9D] font-semibold">Task Management</Link>
|
||||
<Link href="/" className="logo text-[#427D9D] font-semibold">
|
||||
<Image src={Logo} alt='logo' className='w-[90px]'/>
|
||||
</Link>
|
||||
<div>
|
||||
{session && (
|
||||
<div className='flex justify-center items-center'>
|
||||
|
@ -21,7 +25,6 @@ const Header = async () => {
|
|||
)}
|
||||
{!session && (
|
||||
<div className='text-sm md:text-base'>
|
||||
Not logged in
|
||||
<LoginButton/>
|
||||
</div>
|
||||
)}
|
||||
|
|
18
task_management_app/src/components/Hero.tsx
Normal file
18
task_management_app/src/components/Hero.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import Image from 'next/image'
|
||||
import React from 'react'
|
||||
import Img_hero from '../../public/img.png'
|
||||
|
||||
function Test() {
|
||||
return (
|
||||
<div>
|
||||
<div className='items-center text-center my-10 pb-5'>
|
||||
<p className='uppercase text-4xl md:text-5xl font-semibold drop-shadow-xl font-outline-2 text-[#37B7C3] mb-5'>Manage your work flow with us!</p>
|
||||
</div>
|
||||
<div className='flex justify-center'>
|
||||
<Image src={Img_hero} alt='img-hero'/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Test
|
Loading…
Add table
Reference in a new issue