Skip to content

Commit

Permalink
front
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail-kharrobi committed Aug 25, 2023
1 parent db033c1 commit d53c7a2
Show file tree
Hide file tree
Showing 27 changed files with 64 additions and 43 deletions.
Binary file removed frontend/code/public/images/pong.png
Binary file not shown.
11 changes: 0 additions & 11 deletions frontend/code/src/404/index.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions frontend/code/src/Layout/index.tsx

This file was deleted.

File renamed without changes
File renamed without changes.
File renamed without changes
11 changes: 11 additions & 0 deletions frontend/code/src/components/404/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {Font} from './assest/Font'
export const Error = () =>
{
return (
<div className=" flex flex-col bg-black h-screen z-0 w-screen relative ">
<Font/>
<div className=" absolute flex z-10 items-center top-0 left-0 bg-contain h-screen w-screen max-w-full justify-center overflow-hidden bg-gif-error bg-no-repeat bg-center"></div>
<h1 className='relative flex items-center pt-44 sm:pt-56 justify-center text-white text-[3.5vw] z-30 h-full font-lexend '>Page Not Found</h1>
</div>
)
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
40 changes: 40 additions & 0 deletions frontend/code/src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { Logo } from './Assets/Logo'
import { Alert } from './Assets/Alert'
import { Avatar } from './Assets/Avatar'
import {BiSearch} from 'react-icons/bi'

var test = [{name:"tes"},{name:"Test"}]

export const Layout = () =>
{
return (
<>
<div data-theme="mytheme" className='fixed h-screen bg-slate-50 '>
<div className=' flex items-center content-around gap-x-8 sm:gap-x-6 justify-end pr-8 p-2 w-screen h-18 bg-base-200'>
<Logo />
<div className='hidden sm:flex sm:items-center '>
<input type="text" placeholder="Search" className=" absolute right-40 input w-72 mr-4 h-10 max-w-xs"/>
<div className='relative left-0 top-0 w-12 '><BiSearch size="1.4em" /></div>
</div>
<Alert />
<Avatar />
</div>

<div className='sm:fixed hidden sm:block h-screen bg-base-200 min-w-full max-w-[9%] w-20 '></div>
<div className=" sm:hidden btm-nav bg-base-200 hover:stroke-red-400">
<button className="text-primary ">
<svg className="hover:stroke-red-400 h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" /></svg>
</button>
<button className="text-primary ">
<svg className="hover:stroke-red-400 h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>
</button>
<button className="text-primary">
<svg className="hover:stroke-red-400 h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" /></svg>
</button>
</div>
<div className='absolute h-[86%] sm:h-screen right-0 w-screen sm:w-[90vw] md:w-[91vw] xl:w-[94vw] z-10 bg-base-100 sm:rounded-tl-3xl'></div>

</div>
</>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export const Lobby = () =>
{
return (
<div data-theme="mytheme" className="flex h-screen bg-base-100">
<div className="flex h-screen bg-base-100">
<div className="h-12 w-12 "></div>
</div>
);
Expand Down
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Link } from "react-router-dom";
import pingpong from '../images/pingpong.svg'
import {Button} from './Assets/Button'

import bg from './Assets/bg.gif'
export const Login = () =>
{

return (
<div className="overflow-hidden flex flex-col items-center justify-center h-screen bg-[url(./images/bg.gif)] bg-luxury bg-no-repeat bg-cover bg-center">
<div className={`overflow-hidden flex flex-col items-center justify-center h-screen bg-login bg-luxury bg-no-repeat bg-cover bg-center`}>
<div className="absolute h-full w-full bg-black opacity-40 z-10"></div>
<div className="absolute top-[25%] sm:top-[30%] xl:top-[35%] z-50 flex flex-col items-center gap-y-20">
<div className=" flex flex-col justify-center">
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
Binary file removed frontend/code/src/images/Error.gif
Binary file not shown.
Binary file removed frontend/code/src/images/bg.gif
Binary file not shown.
Binary file removed frontend/code/src/images/vid.gif
Binary file not shown.
10 changes: 5 additions & 5 deletions frontend/code/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import {Login} from './Auth'
import {Main} from './Auth/main'
import {Lobby} from './Lobby/index'
import {Layout} from './Layout/index'
import {Error} from './404/index'
import {Login} from './components/Login'
import {Main} from './components/Login/main'
import {Lobby} from './components/Lobby/index'
import {Layout} from './components/Layout/index'
import {Error} from './components/404/index'
import reportWebVitals from './reportWebVitals';
import { BrowserRouter, Routes, Route } from "react-router-dom";

Expand Down
5 changes: 5 additions & 0 deletions frontend/code/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ module.exports = {
poppins: ['Poppins', 'sans-serif'],
lexend: ['Lexend Peta', 'sans-serif'],
},
backgroundImage: {
'login': "url('./components/Login/Assets/bg.gif')",
'gif-error': "url('./components/404/assest/Error.gif')",
},

},
},

Expand Down

0 comments on commit d53c7a2

Please sign in to comment.