diff --git a/frontend/code/public/images/pong.png b/frontend/code/public/images/pong.png deleted file mode 100644 index 5adae95..0000000 Binary files a/frontend/code/public/images/pong.png and /dev/null differ diff --git a/frontend/code/src/404/index.tsx b/frontend/code/src/404/index.tsx deleted file mode 100644 index 17ccf57..0000000 --- a/frontend/code/src/404/index.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import {Font} from './assest/Font' -export const Error = () => -{ - return ( -
- -
-

Page Not Found

-
- ) -} \ No newline at end of file diff --git a/frontend/code/src/Layout/index.tsx b/frontend/code/src/Layout/index.tsx deleted file mode 100644 index 74daf5c..0000000 --- a/frontend/code/src/Layout/index.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import { Logo } from './Assets/Logo' -import { Alert } from './Assets/Alert' -import { Avatar } from './Assets/Avatar' -import {BiSearch} from 'react-icons/bi' -export const Layout = () => -{ - return ( - <> -
-
- -
- -
-
- - -
-
-
-
- - ) -} \ No newline at end of file diff --git a/frontend/code/public/images/Error.gif b/frontend/code/src/components/404/assest/Error.gif similarity index 100% rename from frontend/code/public/images/Error.gif rename to frontend/code/src/components/404/assest/Error.gif diff --git a/frontend/code/src/404/assest/Font.tsx b/frontend/code/src/components/404/assest/Font.tsx similarity index 100% rename from frontend/code/src/404/assest/Font.tsx rename to frontend/code/src/components/404/assest/Font.tsx diff --git a/frontend/code/src/404/assest/font.svg b/frontend/code/src/components/404/assest/font.svg similarity index 100% rename from frontend/code/src/404/assest/font.svg rename to frontend/code/src/components/404/assest/font.svg diff --git a/frontend/code/src/components/404/index.tsx b/frontend/code/src/components/404/index.tsx new file mode 100644 index 0000000..51100d3 --- /dev/null +++ b/frontend/code/src/components/404/index.tsx @@ -0,0 +1,11 @@ +import {Font} from './assest/Font' +export const Error = () => +{ + return ( +
+ +
+

Page Not Found

+
+ ) +} \ No newline at end of file diff --git a/frontend/code/src/Layout/Assets/Alert.tsx b/frontend/code/src/components/Layout/Assets/Alert.tsx similarity index 100% rename from frontend/code/src/Layout/Assets/Alert.tsx rename to frontend/code/src/components/Layout/Assets/Alert.tsx diff --git a/frontend/code/src/Layout/Assets/Avatar.tsx b/frontend/code/src/components/Layout/Assets/Avatar.tsx similarity index 100% rename from frontend/code/src/Layout/Assets/Avatar.tsx rename to frontend/code/src/components/Layout/Assets/Avatar.tsx diff --git a/frontend/code/src/Layout/Assets/Dash.tsx b/frontend/code/src/components/Layout/Assets/Dash.tsx similarity index 100% rename from frontend/code/src/Layout/Assets/Dash.tsx rename to frontend/code/src/components/Layout/Assets/Dash.tsx diff --git a/frontend/code/src/Layout/Assets/Logo.tsx b/frontend/code/src/components/Layout/Assets/Logo.tsx similarity index 100% rename from frontend/code/src/Layout/Assets/Logo.tsx rename to frontend/code/src/components/Layout/Assets/Logo.tsx diff --git a/frontend/code/src/Layout/Assets/dash.svg b/frontend/code/src/components/Layout/Assets/dash.svg similarity index 100% rename from frontend/code/src/Layout/Assets/dash.svg rename to frontend/code/src/components/Layout/Assets/dash.svg diff --git a/frontend/code/src/Layout/Assets/logo.svg b/frontend/code/src/components/Layout/Assets/logo.svg similarity index 100% rename from frontend/code/src/Layout/Assets/logo.svg rename to frontend/code/src/components/Layout/Assets/logo.svg diff --git a/frontend/code/src/Layout/images/avatar.jpg b/frontend/code/src/components/Layout/images/avatar.jpg similarity index 100% rename from frontend/code/src/Layout/images/avatar.jpg rename to frontend/code/src/components/Layout/images/avatar.jpg diff --git a/frontend/code/src/components/Layout/index.tsx b/frontend/code/src/components/Layout/index.tsx new file mode 100644 index 0000000..a662da4 --- /dev/null +++ b/frontend/code/src/components/Layout/index.tsx @@ -0,0 +1,39 @@ +import { Logo } from './Assets/Logo' +import { Alert } from './Assets/Alert' +import { Avatar } from './Assets/Avatar' +import {BiSearch} from 'react-icons/bi' + + +export const Layout = () => +{ + return ( + <> +
+
+ +
+ +
+
+ + +
+ +
+
+ + + +
+
+ +
+ + ) +} \ No newline at end of file diff --git a/frontend/code/src/Lobby/index.tsx b/frontend/code/src/components/Lobby/index.tsx similarity index 61% rename from frontend/code/src/Lobby/index.tsx rename to frontend/code/src/components/Lobby/index.tsx index 954d844..d55b0ef 100644 --- a/frontend/code/src/Lobby/index.tsx +++ b/frontend/code/src/components/Lobby/index.tsx @@ -2,7 +2,7 @@ export const Lobby = () => { return ( -
+
); diff --git a/frontend/code/src/Auth/Assets/Button.tsx b/frontend/code/src/components/Login/Assets/Button.tsx similarity index 100% rename from frontend/code/src/Auth/Assets/Button.tsx rename to frontend/code/src/components/Login/Assets/Button.tsx diff --git a/frontend/code/public/images/bg.gif b/frontend/code/src/components/Login/Assets/bg.gif similarity index 100% rename from frontend/code/public/images/bg.gif rename to frontend/code/src/components/Login/Assets/bg.gif diff --git a/frontend/code/src/Auth/index.tsx b/frontend/code/src/components/Login/index.tsx similarity index 78% rename from frontend/code/src/Auth/index.tsx rename to frontend/code/src/components/Login/index.tsx index 98a0863..c7a915d 100644 --- a/frontend/code/src/Auth/index.tsx +++ b/frontend/code/src/components/Login/index.tsx @@ -1,12 +1,11 @@ import { Link } from "react-router-dom"; import pingpong from '../images/pingpong.svg' import {Button} from './Assets/Button' - export const Login = () => { return ( -
+
diff --git a/frontend/code/src/Auth/main.tsx b/frontend/code/src/components/Login/main.tsx similarity index 100% rename from frontend/code/src/Auth/main.tsx rename to frontend/code/src/components/Login/main.tsx diff --git a/frontend/code/src/images/pingpong.svg b/frontend/code/src/components/images/pingpong.svg similarity index 100% rename from frontend/code/src/images/pingpong.svg rename to frontend/code/src/components/images/pingpong.svg diff --git a/frontend/code/public/images/vid.gif b/frontend/code/src/components/images/vid.gif similarity index 100% rename from frontend/code/public/images/vid.gif rename to frontend/code/src/components/images/vid.gif diff --git a/frontend/code/src/images/Error.gif b/frontend/code/src/images/Error.gif deleted file mode 100644 index 5111727..0000000 Binary files a/frontend/code/src/images/Error.gif and /dev/null differ diff --git a/frontend/code/src/images/bg.gif b/frontend/code/src/images/bg.gif deleted file mode 100644 index ac7f770..0000000 Binary files a/frontend/code/src/images/bg.gif and /dev/null differ diff --git a/frontend/code/src/images/vid.gif b/frontend/code/src/images/vid.gif deleted file mode 100644 index d63cc0f..0000000 Binary files a/frontend/code/src/images/vid.gif and /dev/null differ diff --git a/frontend/code/src/index.tsx b/frontend/code/src/index.tsx index 21fd1e9..acfe1c2 100644 --- a/frontend/code/src/index.tsx +++ b/frontend/code/src/index.tsx @@ -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"; diff --git a/frontend/code/tailwind.config.js b/frontend/code/tailwind.config.js index 529a8b5..c0a9fc9 100644 --- a/frontend/code/tailwind.config.js +++ b/frontend/code/tailwind.config.js @@ -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')", + }, + }, },