Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaderboard Page #7

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40,557 changes: 20,279 additions & 20,278 deletions website/package-lock.json

Large diffs are not rendered by default.

1,744 changes: 872 additions & 872 deletions website/package.json

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions website/src/App.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import './App.css';
import WebCam from './components/camera';
import Ranks from './components/ranks';
import Home from './Pages/Home';
import Leaderboard from './Pages/Leaderboard';
import UserProfile from './Pages/Profile';
import Navbar from './components/navbar';

function App() {
return (
<Router>
<div className="App">
<Navbar />
<Routes>
<Route path='/' element={<WebCam />}/>
<Route path='/ranks' element={<Ranks />} />
<Route path='/' element={<Home />}/>
<Route path='/ranks' element={<Leaderboard />} />
<Route path='/profile' element={<UserProfile />} />
</Routes>
</div>
Expand Down
160 changes: 160 additions & 0 deletions website/src/Pages/Home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
.photo-button {
display: flex;
justify-content: center;
align-items: center;
padding: 9px 12px;
gap: 8px;
height: 40px;
width: 172px;
border: none;
background: #FF2849;
border-radius: 20px;
cursor: pointer;
margin-left: 42vw;
margin-top: 3%;
position: relative;
}

.lable {
line-height: 22px;
font-size: 17px;
color: #fff;
font-family: sans-serif;
letter-spacing: 1px;
}

.photo-button:hover {
background: #e52441;
}

.photo-button:hover .svg-icon {
animation: flickering 2s linear infinite;
}

@keyframes flickering {
0% {
opacity: 1;
}

50% {
opacity: 1;
}

52% {
opacity: 1;
}

54% {
opacity: 0;
}

56% {
opacity: 1;
}

90% {
opacity: 1;
}

92% {
opacity: 0;
}

94% {
opacity: 1;
}

96% {
opacity: 0;
}

98% {
opacity: 1;
}

99% {
opacity: 0;
}

100% {
opacity: 1;
}
}



/* Home page animations */
.bubble {
position: absolute;
background-color: rgba(7, 125, 255, 0.3);
width: 40px;
height: 40px;
border-radius: 50%;
animation: bounce 6s infinite;
opacity: 0.4;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.bubble1 {
left: 5%;
bottom: 50%;
animation-delay: 0s;
background: linear-gradient(to bottom right, blue, red, white);
}

.bubble2 {
left: 40%;
animation-delay: 1s;
}

.bubble3 {
left: 70%;
animation-delay: 2s;
}


@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-30px);
}

}


/* @keyframes glow {
from {
box-shadow: 0 0 20px rgba(87, 148, 228, 0.5);
}
to {
box-shadow: 0 0 40px rgba(234, 216, 157, 0.4);
}
} */


.effect-wrap .effect {
position: absolute;
z-index: -1;
}

.effect-1 {
position: relative;
width: 30px;
height: 30px;
border: 4px solid #8a49ff;
left: 90%;
bottom: 10%;
animation: spin 10s linear infinite;
}

@keyframes spin{
0%{
transform: rotate(0deg);
}
100%{
transform:rotate(360deg) ;
}
}
Loading