-
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.
- Loading branch information
1 parent
dbc16d6
commit 7047c3e
Showing
15 changed files
with
202 additions
and
16 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/app/pages/Designathons/Designathon24/assets/graphics/background/dark_graph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions
15
...app/pages/Designathons/Designathon24/assets/graphics/background/dark_splash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
...app/pages/Designathons/Designathon24/assets/graphics/background/light_graph.svg
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
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
47 changes: 47 additions & 0 deletions
47
src/app/pages/Designathons/Designathon24/components/Backgrounds/GridBackground.jsx
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,47 @@ | ||
import React from "react"; | ||
|
||
import cn from "./GridBackground.module.scss"; | ||
import clsx from "clsx"; | ||
|
||
import light_graph from "../../assets/graphics/background/light_graph.svg"; | ||
import dark_graph from "../../assets/graphics/background/dark_graph.svg"; | ||
|
||
/** | ||
* @typedef {Object} Positions | ||
* @property {number} [top] | ||
* @property {number} [left] | ||
* @property {number} [right] | ||
* @property {number} [bottom] | ||
*/ | ||
|
||
/** | ||
* @param {Positions[]} positions | ||
* @param {boolean} isLight | ||
* @returns {JSX.Element} | ||
*/ | ||
const GridBackground = ({ positions, isLight }) => { | ||
return ( | ||
<div> | ||
{positions.map((position) => { | ||
const { top, left, right, bottom } = position; | ||
|
||
return ( | ||
<img | ||
src={isLight ? light_graph : dark_graph} | ||
alt="" | ||
className={clsx(cn.graph, isLight ? cn.light : cn.dark)} | ||
style={{ | ||
top: `${top ?? "unset"}`, | ||
left: `${left ?? "unset"}`, | ||
right: `${right ?? "unset"}`, | ||
bottom: `${bottom ?? "unset"}`, | ||
}} | ||
key={"" + top + left + right + bottom} | ||
/> | ||
); | ||
})} | ||
</div> | ||
); | ||
}; | ||
|
||
export default GridBackground; |
16 changes: 16 additions & 0 deletions
16
src/app/pages/Designathons/Designathon24/components/Backgrounds/GridBackground.module.scss
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,16 @@ | ||
.graph { | ||
position: absolute; | ||
object-fit: cover; | ||
pointer-events: none; | ||
|
||
height: 80%; | ||
max-height: calc(100vh - 88px); // 88px is the navbar | ||
} | ||
|
||
.light { | ||
width: 60%; | ||
} | ||
|
||
.dark { | ||
width: 40%; | ||
} |
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
} | ||
|
||
.heading { | ||
position: relative; | ||
color: var(--des24-hot-pink); | ||
font-size: 3rem; | ||
font-weight: 700; | ||
|
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
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
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