-
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.
* feat: landing page * feat : Game assets changes * feat: tint for pvp --------- Co-authored-by: Bhoopesh <bhoopesh459@gmail.com> Co-authored-by: Mughil <rsmughilsrinivasan@gmail.com> Co-authored-by: shubham-1806 <shub.agarwal2003@gmail.com>
- Loading branch information
1 parent
deac350
commit e7be42a
Showing
31 changed files
with
310 additions
and
353 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions
9
...nts/Background/BackgroundVideo.module.css → ...nts/Background/BackGroundVideo.module.css
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,8 +1,7 @@ | ||
.bgvideo{ | ||
z-index: -100; | ||
position: fixed; | ||
top: 0; | ||
width: 100vw; | ||
z-index: -99; | ||
height: 100vh; | ||
width: 100vw; | ||
object-fit: cover; | ||
} | ||
position: fixed; | ||
} |
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,36 @@ | ||
import { useRef, useEffect } from 'react'; | ||
import { useLocation } from 'react-router-dom'; | ||
import styles from './BackGroundVideo.module.css'; | ||
import bgvideo from '../../../public/assets/bgEffect.mp4'; | ||
|
||
const BackGroundVideo = () => { | ||
const location = useLocation(); | ||
const vid = useRef<HTMLVideoElement>(null); | ||
|
||
useEffect(() => { | ||
if (vid.current) { | ||
vid.current.playbackRate = 0.5; | ||
} | ||
}, []); | ||
|
||
const isNotHomePage = location.pathname !== '/'; | ||
|
||
return ( | ||
<> | ||
{isNotHomePage ? ( | ||
<video | ||
src={bgvideo} | ||
autoPlay | ||
loop | ||
muted | ||
className={styles.bgvideo} | ||
ref={vid} | ||
/> | ||
) : ( | ||
<></> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export default BackGroundVideo; |
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,39 @@ | ||
.mainContainer { | ||
z-index: 0; | ||
position: fixed; | ||
top: 0; | ||
} | ||
|
||
.mainContainer img { | ||
width: 100vw; | ||
|
||
@media screen and (max-width:280px) { | ||
width: 5vw; | ||
transform: translateX(-35%); | ||
} | ||
|
||
@media screen and (min-width:280px) and (max-width:429px) { | ||
width: 344vw; | ||
transform: translateX(-35%); | ||
} | ||
|
||
@media screen and (min-width:430px) and (max-width:500px) { | ||
width: 340vw; | ||
transform: translateX(-35%); | ||
} | ||
@media screen and (min-width:500px) and (max-width:768px) { | ||
width: 210vw; | ||
transform: translateX(-25%); | ||
} | ||
|
||
|
||
@media screen and (min-width:769px) and (max-width:1024px) { | ||
width: 225vw; | ||
transform: translateX(-28%); | ||
} | ||
|
||
@media screen and (min-width:912px) and (max-width:912px) { | ||
width: 235vw; | ||
transform: translateX(-29%); | ||
} | ||
} |
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,22 @@ | ||
import styles from './BackgroundImage.module.css'; | ||
import bg from '../../../public/assets/bg.jpg'; | ||
import { useLocation } from 'react-router-dom'; | ||
|
||
const BackgroundImage = () => { | ||
const location = useLocation(); | ||
const isHomePage = location.pathname === '/'; | ||
|
||
return ( | ||
<> | ||
{isHomePage ? ( | ||
<div className={styles.mainContainer}> | ||
<img src={bg} alt="Background" /> | ||
</div> | ||
) : ( | ||
<></> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export default BackgroundImage; |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
.dropdown a:active { | ||
background-color: #232627; | ||
} | ||
|
||
.menuBackground{ | ||
background-color:#1e1e1e !important; | ||
} | ||
|
||
.menuText{ | ||
color: #aaaaaa; | ||
font-family: 'Poppins'; | ||
font-family: 'Press Start 2P', sans-serif; | ||
font-size: 0.85rem; | ||
} |
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
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
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
Oops, something went wrong.