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

Congratulations page draft 1 #19

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Empty file added src/assets/cat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added src/assets/dog.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 src/assets/encouraging-turtle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added src/assets/header.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/speech-bubble.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions src/components/Congratulations.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import '../styles/Congratulations.scss';
import Cat from '../assets/cat.svg';
import Dog from '../assets/dog.svg';
import EncouragingTurtle from '../assets/encouraging-turtle.svg';
import Header from '../assets/header.svg';
import SpeechBubble from '../assets/speech-bubble.svg';

function Congratulations(): JSX.Element {
return (
<div>
<section id="congratulations-container">
<img id="header" src={Header} />
<img id="speech-bubble" src={SpeechBubble} />
<img id="encouraging-turtle" src={EncouragingTurtle} />
<img id="cat" src={Cat} />
<img id="dog" src={Dog} />
<div id="congratulations-text">
CONGRATULATIONS!
</div>
</section>
</div>
);
}

export default Congratulations;
62 changes: 62 additions & 0 deletions src/styles/Congratulations.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
@use '_colors.scss' as colors;

#congratulations-container {
background-color: colors.$primary-green;
height: 100vh;
width: 100vw;
}

#speech-bubble {
position: absolute;
width: 80vw;
height: 60vh;
left: 10vw;
top: 20vh;
}

#header {
position: absolute;
width: 68.08px;
height: 35px;
left: 40px;
top: 71px;
}

#dog {
position: absolute;
width: 15vw;
height: 15vh;
left: 80vw;
top: 90vh;
}

#cat {
position: absolute;
width: 15vw;
height: 15vh;
left: 90vw;
top: 90vh;
}

#encouraging-turtle {
position: absolute;
width: 15vw;
height: 15vh;
left: 10vw;
top: 80vh;
}

#congratulations-text {
position: absolute;
width: 60vw;
left: 20vw;
top: 27vh;

font-family: PT Sans;
font-style: normal;
font-weight: bold;
font-size: 40px;
line-height: 79px;

color: colors.$primary-green;
}