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 all commits
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
9 changes: 9 additions & 0 deletions 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.
6 changes: 6 additions & 0 deletions 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.
25 changes: 25 additions & 0 deletions 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.
38 changes: 38 additions & 0 deletions src/components/Congratulations.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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-bg">
<section id="congratulations-container">
<img id="header" src={Header} />
<div id="speech-bubble-container">
<img id="speech-bubble" src={SpeechBubble} />
<div id="congratulations-text">
CONGRATULATIONS!
</div>
<img id="encouraging-turtle" src={EncouragingTurtle} />
</div>
<div id="dog-cat-box">
<div id="animals-text">
Try these next!
</div>
<div id="cat-box">
<img id="cat" src={Cat} />
</div>
<div id="dog-box">
<img id="dog" src={Dog} />
</div>
</div>
</section>
</section>
</div>
);
}

export default Congratulations;
4 changes: 3 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import { StrictMode } from 'react';
import ReactDOM from 'react-dom';
import './styles/global.scss';
import App from './components/App';
import Congratulations from './components/Congratulations';

ReactDOM.render(
<StrictMode>
<App />

<Congratulations />
</StrictMode>,
document.getElementById('root')
);
Loading