-
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.
* Create WorkInProgress component * Create stylesheet * Reinstall node-sass * Add layout * Update meta * Add squirrel * Add hover
- Loading branch information
Showing
11 changed files
with
2,090 additions
and
1,865 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.85 MB
public/audio/Jamie Berry ft. Octavia Rose - Lost In The Rhythm (128 kbps).mp3
Binary file not shown.
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 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@import './assets/styles/variables.scss'; | ||
|
||
.Container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
background-color: rgba(0, 0, 0, 0.8); | ||
color: $color-white; | ||
} |
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
26 changes: 26 additions & 0 deletions
26
src/app/components/WorkInProgress/WorkInProgress.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,26 @@ | ||
.Container { | ||
font-size: 64px; | ||
} | ||
.Squirrel { | ||
display: flex; | ||
justify-content: center; | ||
margin-top: 42px; | ||
} | ||
.ImagePlaying, | ||
.ImageDisabled { | ||
width: 500px; | ||
border: 5px solid red; | ||
border-radius: 12px; | ||
filter: saturate(1.7); | ||
cursor: pointer; | ||
transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s; | ||
} | ||
.ImagePlaying { | ||
transform: scale(1.05); | ||
} | ||
.ImageDisabled { | ||
filter: grayscale(1); | ||
&:hover { | ||
filter: grayscale(0.7); | ||
} | ||
} |
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,42 @@ | ||
import { useState } from 'react'; | ||
import styles from './WorkInProgress.module.scss'; | ||
|
||
export function WorkInProgress() { | ||
const [audio] = useState( | ||
new Audio('/audio/Jamie Berry ft. Octavia Rose - Lost In The Rhythm (128 kbps).mp3') | ||
); | ||
const [isPlaying, setIsPlaying] = useState(false); | ||
|
||
const handleAudio = () => { | ||
if (isPlaying) { | ||
setIsPlaying(false); | ||
audio.pause(); | ||
} else { | ||
setIsPlaying(true); | ||
audio.play(); | ||
} | ||
}; | ||
return ( | ||
<div className={styles.Container}> | ||
<div>Nothing here yet :)</div> | ||
<div>Have a dancing squirrel while you wait</div> | ||
<div className={styles.Squirrel}> | ||
{isPlaying ? ( | ||
<img | ||
onClick={handleAudio} | ||
className={styles.ImagePlaying} | ||
alt="Dancing Squirrel" | ||
src="https://cdn.discordapp.com/attachments/248430185463021569/917123652200321034/dancing_squirrel.gif" | ||
/> | ||
) : ( | ||
<img | ||
onClick={handleAudio} | ||
className={styles.ImageDisabled} | ||
alt="Dancing Squirrel" | ||
src="https://cdn.discordapp.com/attachments/248430185463021569/917137831716085780/dancing_squirrel_still.png" | ||
/> | ||
)} | ||
</div> | ||
</div> | ||
); | ||
} |
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,4 @@ | ||
//Text color | ||
$color-default: #002240; | ||
$color-white: #fff; | ||
$color-black: #000; |
Oops, something went wrong.