-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbac059
commit b4e522a
Showing
9 changed files
with
215 additions
and
7 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
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.
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,108 @@ | ||
.codeutsava__game-container { | ||
display: flex; | ||
gap: 4rem; | ||
font-family: var(--font-family3); | ||
color: white; | ||
background-color: #b079c11d; | ||
backdrop-filter: blur(10px); | ||
border-radius: 4px; | ||
width: 100%; | ||
padding: 4rem; | ||
} | ||
|
||
.codeutsava__game-left { | ||
flex: 1; | ||
display: flex; | ||
gap: 20px; | ||
} | ||
|
||
.codeutsava__game-right { | ||
flex: 1; | ||
gap: 4px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
} | ||
|
||
.codeutsava__game-right-content { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
} | ||
|
||
.codeutsava__game-img-container { | ||
flex: 1; | ||
} | ||
|
||
.codeutsava__game-link { | ||
background-color: var(--secondary-c); | ||
border: 1px solid var(--secondary-c); | ||
border-radius: 4px; | ||
box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px 0; | ||
box-sizing: border-box; | ||
color: #fff; | ||
cursor: pointer; | ||
font-family: inherit; | ||
font-size: 16px; | ||
font-weight: 400; | ||
padding: 10px 25px; | ||
text-align: center; | ||
transform: translateY(0); | ||
transition: transform 150ms, box-shadow 150ms; | ||
} | ||
|
||
.codeutsava__game-link:hover { | ||
box-shadow: rgba(0, 0, 0, 0.15) 0 3px 9px 0; | ||
transform: translateY(-2px); | ||
} | ||
|
||
.codeutsava__game-img-container img { | ||
width: 100%; | ||
height: 100px; | ||
object-fit: cover; | ||
cursor: pointer; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.codeutsava__game-main-img-container { | ||
flex: 5; | ||
} | ||
|
||
.codeutsava__game-main-img-container img { | ||
width: 100%; | ||
min-height: 200px; | ||
object-fit: cover; | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.codeutsava__game-left { | ||
flex-direction: column-reverse; | ||
} | ||
.codeutsava__game-container { | ||
flex-direction: column; | ||
padding: 3rem 1.5rem; | ||
gap: 1rem; | ||
} | ||
.codeutsava__game-img-container { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 12px; | ||
} | ||
.codeutsava__game-img-container img { | ||
width: auto; | ||
height: 100px; | ||
} | ||
.codeutsava__game-right-heading { | ||
font-size: 10px; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.codeutsava__game-right-special-prices h2 { | ||
margin-bottom: 10px; | ||
} | ||
.codeutsava__game-right-content { | ||
margin: 1rem 0; | ||
} | ||
} |
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,49 @@ | ||
import React, { useState } from "react"; | ||
import "./GameCard.css"; | ||
import game1 from "../../assets/images/games/game1.png"; | ||
import game2 from "../../assets/images/games/game2.png"; | ||
import game3 from "../../assets/images/games/game3.png"; | ||
|
||
const GameCard = () => { | ||
const [selectedImg, setSelectedImg] = useState(0); | ||
const images = [game1, game2, game3]; | ||
return ( | ||
<div className="codeutsava__game-container"> | ||
<div className="codeutsava__game-left"> | ||
<div className="codeutsava__game-img-container"> | ||
<img src={images[0]} onClick={(e) => setSelectedImg(0)} /> | ||
<img src={images[1]} onClick={(e) => setSelectedImg(1)} /> | ||
<img src={images[2]} onClick={(e) => setSelectedImg(2)} /> | ||
</div> | ||
<div className="codeutsava__game-main-img-container"> | ||
<img src={images[selectedImg]} /> | ||
</div> | ||
</div> | ||
<div className="codeutsava__game-right"> | ||
<div className="codeutsava__game-right-heading"> | ||
<h1>Virtual Escape Room - The Cursed Mansion</h1> | ||
</div> | ||
<div className="codeutsava__game-right-content"> | ||
<div className="codeutsava__game-right-special-prices"> | ||
<h3> | ||
Our self designed <b>virtual escape room,</b> where participants | ||
must solve different puzzles in each level to escape and win. | ||
</h3> | ||
</div> | ||
<p> | ||
<b>Disclaimer:</b> Not for the <b>Weak.</b> | ||
</p> | ||
</div> | ||
<a | ||
className="codeutsava__game-link" | ||
href="https://docs.google.com/forms/d/e/1FAIpQLSdnFe_Zm97Of15Hs2UH9V-mIoiQz8rSggj48y41ekjKkcSj7g/viewform" | ||
target="__blank" | ||
> | ||
Click at your own Risk! | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default GameCard; |
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
Empty file.
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,37 @@ | ||
import React from 'react' | ||
import './Games.css' | ||
import GameCard from '../../components/gameCard/GameCard' | ||
import { useState, useEffect, useRef } from "react"; | ||
import frank from "../../assets/images/frakenstein.png"; | ||
import Footer from "../../components/footer/Footer"; | ||
import NavbarTeam from "../../components/navbarTeam/NavbarTeam"; | ||
import IntroAudio from "../../components/introAudio/IntroAudio"; | ||
|
||
const Merchandise = () => { | ||
return ( | ||
<div className="bg-image" id="home"> | ||
<div className="codeutsava__navbar-container"> | ||
<NavbarTeam /> | ||
</div> | ||
<div className="container mx-auto main-container"> | ||
<div className="codeutsava__section3" id="events"> | ||
<div className="codeutsava__section3-title"> | ||
<img src={frank}></img> | ||
Games | ||
</div> | ||
<div className="codeutsava__section3-events-container"> | ||
<GameCard /> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="intro_audio_new_design"> | ||
<IntroAudio /> | ||
</div> | ||
<div className="codeutsava__footer-container"> | ||
<Footer /> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Merchandise |