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

Home and leaderboard card #2

Open
wants to merge 67 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
e8ef43e
Added Navbar and side bar setup done
Pudi-Sravan Aug 28, 2024
b50e4b1
Side bar done
Pudi-Sravan Aug 29, 2024
b0712b8
Side bar animation
Pudi-Sravan Aug 30, 2024
fa2deae
Homepage effects(excluding Navbar)
Pudi-Sravan Aug 30, 2024
eb7c71e
Meteor,Auth button,Nav Options animation
Pudi-Sravan Aug 30, 2024
3f2192e
wip : leaderboard
Ankit-Roy-CSE Aug 31, 2024
137a176
Merge pull request #1 from Ankit-Roy-CSE/ankit
Pudi-Sravan Aug 31, 2024
8b7981c
Color changes for title
Pudi-Sravan Aug 31, 2024
457ea2a
Force Push
Pudi-Sravan Aug 31, 2024
a0f36a9
leaderboard wip-2
Ankit-Roy-CSE Sep 1, 2024
02876e7
added leaderboard
Ankit-Roy-CSE Sep 1, 2024
e247c90
Merge branch 'ankit'
Ankit-Roy-CSE Sep 1, 2024
5312058
merge conflict resolved
Ankit-Roy-CSE Sep 1, 2024
cd02932
Merge pull request #2 from Ankit-Roy-CSE/main
Pudi-Sravan Sep 1, 2024
e08bce1
Added player list to leaderboard
Sep 1, 2024
0969463
Merge branch 'main' of https://github.com/Ankit-Roy-CSE/digital_fortr…
Sep 1, 2024
0fd3a3d
Merge pull request #3 from Ankit-Roy-CSE/main
Pudi-Sravan Sep 1, 2024
8d19931
New Leaderboard tiles animation
ArkaD-23 Sep 2, 2024
6bab63b
Merge pull request #4 from Pudi-Sravan/arka
Pudi-Sravan Sep 2, 2024
9d73007
Added Google OAuth
roy-abir05 Sep 3, 2024
3b4cc7e
updated leaderboard
Ankit-Roy-CSE Sep 13, 2024
07b7759
Merge branch 'Pudi-Sravan:main' into main
Ankit-Roy-CSE Sep 13, 2024
5531e54
Rules model
ArkaD-23 Sep 14, 2024
6ee1696
Merge pull request #5 from Pudi-Sravan/arka
Pudi-Sravan Sep 14, 2024
3cb6266
Integrated Google Login with backend
roy-abir05 Sep 14, 2024
8b64e42
Removed prisma
roy-abir05 Sep 14, 2024
720e211
Merge branch 'Pudi-Sravan:main' into main
Ankit-Roy-CSE Sep 30, 2024
0b13bf9
added quiz route
Ankit-Roy-CSE Sep 30, 2024
fb08a14
Merge pull request #6 from Ankit-Roy-CSE/main
Ankit-Roy-CSE Sep 30, 2024
c627046
Added night-drive at quiz route
Ankit-Roy-CSE Sep 30, 2024
e5faf86
Tiles of rank card styling changed according to figma design
Pudi-Sravan Oct 14, 2024
f0fecb4
Merge branch 'Pudi-Sravan:main' into main
Ankit-Roy-CSE Oct 19, 2024
7d97577
Rules Component linked
Pudi-Sravan Oct 19, 2024
e1c5343
Merge pull request #7 from Ankit-Roy-CSE/main
Pudi-Sravan Oct 19, 2024
1aeb995
Set the tabs part
Pudi-Sravan Oct 24, 2024
e1d3f41
Removed Car from 3D animation
roy-abir05 Oct 24, 2024
55470d5
Merge remote-tracking branch 'refs/remotes/origin/main'
roy-abir05 Oct 24, 2024
5278141
Done Questions page alignment
Pudi-Sravan Oct 29, 2024
8948411
UI of question and tab initial
Pudi-Sravan Oct 29, 2024
c617b1f
Navbar responsiveness and hamburger not showing in wider dimensions
ArkaD-23 Nov 1, 2024
faa19c4
Merge branch 'main' of https://github.com/Pudi-Sravan/digital_fortres…
roy-abir05 Nov 2, 2024
ec5cdd8
Added correct-answer transition : wip
Ankit-Roy-CSE Nov 2, 2024
fe9a379
Merge pull request #9 from Ankit-Roy-CSE/main
Ankit-Roy-CSE Nov 2, 2024
f31b5d8
Merge branch 'main' of https://github.com/Pudi-Sravan/digital_fortres…
roy-abir05 Nov 2, 2024
76aa4cb
Merge pull request #8 from Pudi-Sravan/hamburger
ArkaD-23 Nov 2, 2024
a5fff26
Profile holder for user
ArkaD-23 Nov 2, 2024
4a80057
Profile holder for user
ArkaD-23 Nov 2, 2024
eccadd8
Added typewrite effect
Pudi-Sravan Nov 3, 2024
99f918f
Profile modal for user on profile click
ArkaD-23 Nov 4, 2024
aa38ba3
continuation
ArkaD-23 Nov 4, 2024
a4737dd
Profile modal
ArkaD-23 Nov 4, 2024
08827ee
Auth WIP
roy-abir05 Nov 4, 2024
959453c
Merge branch 'main' of https://github.com/Pudi-Sravan/digital_fortres…
roy-abir05 Nov 4, 2024
51744a9
Disabled cursor follow for mobiles
Ankit-Roy-CSE Nov 8, 2024
7a6f0ec
Merge pull request #12 from Ankit-Roy-CSE/main
Ankit-Roy-CSE Nov 8, 2024
967480f
Auth : wip 2
Ankit-Roy-CSE Nov 9, 2024
ec1615c
removed next-auth-http-adapter
Ankit-Roy-CSE Nov 9, 2024
6aea976
Merge pull request #13 from Ankit-Roy-CSE/main
Ankit-Roy-CSE Nov 9, 2024
540eb9b
Map initialisation
ArkaD-23 Dec 27, 2024
fc73358
Map placement in Quiz
ArkaD-23 Dec 27, 2024
841092c
Back button
ArkaD-23 Dec 27, 2024
6cfb9bc
Merge pull request #14 from Pudi-Sravan/map
ArkaD-23 Dec 27, 2024
bd4e725
Quiz layout changed with bigger map area and rules overlay
ArkaD-23 Dec 27, 2024
65800ca
Merge pull request #15 from Pudi-Sravan/map
ArkaD-23 Dec 27, 2024
70ea673
Made Home Page Responsive
Pudi-Sravan Dec 27, 2024
ce6558e
slight change in home responsiveness and footer in leaderboard
ArkaD-23 Dec 28, 2024
a24fee5
Responsiveness in rules
ArkaD-23 Dec 28, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ yarn-debug.log*
yarn-error.log*

# local env files
.env
.env*.local

# vercel
Expand Down
362 changes: 362 additions & 0 deletions app/(home)/page.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,362 @@
// Import external fonts
@import url("https://fonts.googleapis.com/css?family=Lato:100,300,400");
@import url("https://fonts.googleapis.com/css?family=Roboto:100");
@import url("https://db.onlinewebfonts.com/c/1d45a7e720d9ec9abd6743cc20fa7c98?family=BreakTheCode");
@import url("https://db.onlinewebfonts.com/c/9059f4e41fb7c92170641fe975087f08?family=Scifi+Adventure");
@import url("https://db.onlinewebfonts.com/c/7b625b4facc3b08ddc36375715334f0d?family=prostf");
@import url("https://db.onlinewebfonts.com/c/e7322a6673613ab13604fadda3d20e56?family=VALORANT");
@import url("https://fonts.googleapis.com/css2?family=Audiowide&display=swap");
// Define custom font
@font-face {
font-family: "BreakTheCode"; // Unique name for the font
src: url("../../components/assets/fonts/Breakthecode.ttf") format("truetype"); // Path to font file
font-weight: normal;
font-style: normal;
}

// Mixin for buttons (if used)
@mixin button($bcolor, $url, $x1, $y1, $bor, $col) {
background: $bcolor;
-webkit-mask: url($url);
mask: url($url);
-webkit-mask-size: $x1 $y1;
mask-size: $x1 $y1;
border: $bor;
color: $col;
}

// Main styles
.main {
height: 100vh;
width: 100vw;
background-image: url("/DF4.png");
background-repeat: no-repeat;
background-size: cover;
background-position: center;

.main2 {
height: 100vh;
width: 100vw;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
.head {
margin-top: 7%;
height: 7px;
width: 70%;
font-size: 6rem;
color: rgb(204, 248, 179);
text-shadow: 0 0 5px rgba(212, 255, 0, 0.3),
/* Light yellow-green glow */ 0 0 8px rgba(212, 255, 0, 0.3),
/* Larger glow */ 0 0 11px rgba(170, 255, 0, 0.4),
/* Even larger glow */ 0 0 15px rgba(170, 255, 0, 0.4),
/* Even larger glow */ 0 0 19px rgba(153, 255, 0, 0.5),
/* Largest glow */ 0 0 30px rgba(153, 255, 0, 0.5); /* Largest glow */

margin-bottom: 10%;
display: flex;
align-items: center;
justify-content: center;
font-family: "Audiowide", sans-serif; // Apply the custom font here
white-space: nowrap;
margin-left: 5%;

.animatedText {
display: flex;
.digitalText,
.fortressText {
display: inline-block;
animation: flickerText 1.5s linear;
animation-iteration-count: 2; // Flicker only twice
}

.space {
display: inline-block;
width: 11rem;
}
}
}

.Footer {
height: 120px;
width: 56%;
font-size: 25px;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: "Inter", sans-serif;
font-weight: 800;
margin-top: 17%;
}

.backbutton {
position: relative;
height: 75px;
width: 75px;
background-color: rgb(238, 255, 0);
z-index: 1; // Ensure it's below buttonContainer1
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
// border: 6px rgb(21, 255, 0) solid;

.buttonContainer1 {
position: absolute;
width: 75px;
height: 75px;
overflow: hidden;
border: 1px solid;
font-family: "Lato", sans-serif;
font-weight: 300;
transition: 0.5s;
letter-spacing: 1px;
border-radius: 50%;
z-index: 2; // Ensure it's above the backbutton

button {
width: 75px;
height: 75px;
font-family: "Lato", sans-serif;
font-weight: 300;
font-size: 11px;
letter-spacing: 1px;
font-weight: bold;
background: transparent;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: transparent;

svg {
width: 24px; // Adjust size as needed
height: 24px; // Adjust size as needed
color: #fff; // Color of the icon
-webkit-animation: flickerIcon 1.5s linear infinite;
animation: flickerIcon 1.5s linear infinite;
}

@include button(
#000,
"https://raw.githubusercontent.com/robin-dela/css-mask-animation/master/img/nature-sprite.png",
2300%,
100%,
none,
#fff
);

-webkit-animation: ani2 0.7s steps(22) forwards;
animation: ani2 0.7s steps(22) forwards;

&:hover {
-webkit-animation: ani 0.7s steps(22) forwards;
animation: ani 0.7s steps(22) forwards;

svg {
-webkit-animation: none; // Stop flickering on hover
animation: none; // Stop flickering on hover
}
}
}
}
}

@-webkit-keyframes ani {
from {
-webkit-mask-position: 0 0;
mask-position: 0 0;
}
to {
-webkit-mask-position: 100% 0;
mask-position: 100% 0;
}
}

@keyframes ani {
from {
-webkit-mask-position: 0 0;
mask-position: 0 0;
}
to {
-webkit-mask-position: 100% 0;
mask-position: 100% 0;
}
}

@-webkit-keyframes ani2 {
from {
-webkit-mask-position: 100% 0;
mask-position: 100% 0;
}
to {
-webkit-mask-position: 0 0;
mask-position: 0 0;
}
}

@keyframes ani2 {
from {
-webkit-mask-position: 100% 0;
mask-position: 100% 0;
}
to {
-webkit-mask-position: 0 0;
mask-position: 0 0;
}
}

@-webkit-keyframes flickerIcon {
0% {
opacity: 0.1;
}
33% {
opacity: 1;
}
67% {
opacity: 0.1;
}
100% {
opacity: 1;
}
}

@keyframes flickerIcon {
0% {
opacity: 0.1;
}
33% {
opacity: 1;
}
67% {
opacity: 0.1;
}
100% {
opacity: 1;
}
}

@-webkit-keyframes flickerText {
0% {
color: transparent;
}
40% {
color: rgb(255, 255, 255);
}
80% {
color: transparent;
}
100% {
color: rgb(255, 255, 255);
}
}

@keyframes flickerText {
0% {
color: transparent;
}
40% {
color: rgb(255, 255, 255);
}
80% {
color: transparent;
}
100% {
color: rgb(255, 255, 255);
}
}
}
}

@media (max-width: 480px) {
.main {
.main2 {
.head {
font-size: 2rem; // Smaller font size for small devices
margin-top: 10%;
margin-left: 1%;
width: 90%; // Adjust width
.animatedText {
.space {
width: 4rem; // Smaller space
}
}
}

.Footer {
font-size: 14px; // Smaller font size for small devices
width: 80%; // Adjust width
margin-top: 50%;
}

.backbutton {
height: 45px; // Smaller button size
width: 45px;

.buttonContainer1 {
width: 45px;
height: 45px;

button {
width: 45px;
height: 45px;

svg {
width: 14px; // Smaller icon size
height: 14px;
}
}
}
}
}
}
}

@media (max-width: 380px) {
.main {
.main2 {
.head {
font-size: 1.5rem;
margin-top: 10%;
margin-left: 0;
width: 90%;
margin-bottom: 66%;
.animatedText {
.space {
width: 3.2rem; // Adjusted for smaller screens
}
}
}

.Footer {
font-size: 13px; // Reduce font size
width: 80%; // Adjust width
margin-top: 62%;
}

.backbutton {
height: 50px; // Smaller button size
width: 50px;

.buttonContainer1 {
width: 50px;
height: 50px;

button {
width: 50px;
height: 50px;

svg {
width: 16px; // Smaller icon
height: 16px;
}
}
}
}
}
}
}
Loading