-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/frontv2'
- Loading branch information
Showing
9 changed files
with
58 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Conversation from "./Conversation" | ||
|
||
const ChatWrapper = () => { | ||
return ( | ||
<div className="relative"> | ||
<Conversation/> | ||
</div> | ||
) | ||
} | ||
|
||
export default ChatWrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
const Conversation = () => { | ||
return ( | ||
<div className='absolute w-[320px] h-screen left-0 top-0 bottom-0 bg bg-[#1F1D1D]'> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
export default Conversation |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react' | ||
|
||
const page = () => { | ||
return ( | ||
<div>About</div> | ||
) | ||
} | ||
|
||
export default page |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react' | ||
|
||
const page = () => { | ||
return ( | ||
<div>Contact</div> | ||
) | ||
} | ||
|
||
export default page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,19 @@ | ||
import type { Metadata } from "next"; | ||
import type { ReactNode } from "react"; | ||
import { Inter } from "next/font/google"; | ||
import "./globals.css"; | ||
import styles from "./Layout.module.css"; | ||
|
||
const inter = Inter({ subsets: ["latin"] }); | ||
import type { Metadata } from 'next' | ||
import './globals.css' | ||
|
||
export const metadata: Metadata = { | ||
title: "Create Next App", | ||
description: "Generated by create next app", | ||
}; | ||
title: 'Real time Chat', | ||
description: 'Real time chat application', | ||
} | ||
|
||
const RootLayout: React.FC<{ children?: ReactNode }> = ({ children }) => { | ||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html lang="en"> | ||
<head> | ||
<title>SITE ELG</title> | ||
{} | ||
</head> | ||
<body className={inter.className}>{children}</body> | ||
<body className='bg-[url("/images/bg.jpg")] min-h-screen bg-cover bg-no-repeat bg-[#050505AB] bg-blend-overlay'>{children}</body> | ||
</html> | ||
); | ||
}; | ||
|
||
export default RootLayout; | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,7 @@ | ||
"use client" | ||
import React, {useState, useEffect} from 'react' | ||
import Link from "next/link"; | ||
import Loading from './component/loading' | ||
import ChatWrapper from "../../components/ChatWrapper"; | ||
|
||
const Home = () => { | ||
const [loading, setLoading] = useState(true); | ||
|
||
useEffect(() => { | ||
|
||
setTimeout(() => { | ||
setLoading(true); | ||
}, 3000); | ||
}, []); | ||
|
||
return ( | ||
<main> | ||
{loading ? ( | ||
<Loading /> | ||
) : ( | ||
<> | ||
|
||
</> | ||
)} | ||
</main> | ||
); | ||
}; | ||
|
||
export default Home; | ||
export default function Home(){ | ||
return( | ||
<ChatWrapper/> | ||
) | ||
} |