Skip to content

Commit

Permalink
web is done
Browse files Browse the repository at this point in the history
  • Loading branch information
majazimnoch committed Mar 19, 2023
1 parent 8048110 commit 2e28e42
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/src/components/Dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Dates = ({ monthType, onMonthTypeChange, onClickNext }) => {
return (
<section className="content-container">
<h1 className="header-copy">
Which year would you like to book?
When do you wish to travel?
</h1>
<div className="month-container">
{monthTypes.map((type) => (
Expand Down
12 changes: 11 additions & 1 deletion code/src/components/Summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,24 @@ const Summary = ({ name, monthType, place, range, onClickNext }) => {
return (
<section className="content-container">
<div className="summary-container">
<p className="header-paragraph">
<h1 className="header-copy">
Houston, we had a problem.
</h1>
<h2 className="header-copy2">
But after 30h of practising React it got solved!
</h2>
<p className="summary-paragraph">
Thank you {name}!
You will travel in <span className="color2">{monthType}</span>, you will experience <span className="color3">{place}</span> and you will meet {range} aliens 👽.
</p>
</div>
<div className="button-container">
<ButtonNext button="Start again" onClickNext={onClickNext} />
</div>
<div>
<p className="footer-paragraph">Made By Maja Zimnoch | Image by <a href="https://www.freepik.com/free-photo/male-astronaut-exploring-night-during-space-mission-unknown-planet_21872923.htm" rel="noreferrer" target="_blank">Freepik</a> | Video by <a href="https://mixkit.co/free-stock-video/beautiful-glowing-nebula-in-space-31565/" rel="noreferrer" target="_blank">Mixkit</a>
</p>
</div>
</section>

);
Expand Down
2 changes: 1 addition & 1 deletion code/src/components/Zipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Zipper = ({ range, onRangeChange, onClickNext }) => {
return (
<section className="content-container">
<h1 className="header-copy">
How many alients would you like to meet?
How many aliens would you like to meet?
</h1>
<div className="zipper-container">
<input type="range" min="1" max="5" value={range} onChange={onRangeChange} />
Expand Down
49 changes: 46 additions & 3 deletions code/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,33 @@ code {
font-size: 3rem;
}

.header-copy2 {
font-family: 'Rubik Iso', cursive;
font-size: 2rem;
color:rgb(58, 16, 248);
}

.header-paragraph {
font-family: "Lucida Console", "Courier New", monospace;
letter-spacing: 2px;
text-align: center;
font-size: 1rem;
padding: 0 30px;
}

.summary-paragraph {
font-family: "Lucida Console", "Courier New", monospace;
letter-spacing: 2px;
text-align: center;
font-size: 2rem;
}

.footer-paragraph {
padding-top: 40px;
font-family: "Lucida Console", "Courier New", monospace;
letter-spacing: 2px;
text-align: center;
font-size: 1rem;
}

.question-wrapper {
Expand Down Expand Up @@ -85,7 +107,7 @@ code {
object-fit: cover;
max-width: 50%;
padding-bottom: 40px;
-webkit-filter: brightness(80%);
-webkit-filter: brightness(60%);
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
Expand All @@ -104,7 +126,7 @@ code {
.button-start {
font-family: 'Rubik Iso', cursive;
padding: 10px 20px;
margin-top: 20px;
margin-top: 50px;
font-size: 2rem;
background-color: transparent;
border: solid 2px rgb(255, 255, 255);
Expand All @@ -122,7 +144,28 @@ code {
transition: 1s ease;
}


.content-container {
display: flex;
flex-direction: column;
align-content: center;
align-items: center;
justify-content: center;
text-align: center;
padding-top: 30px;
padding-left: 20px;
padding-right: 20px;
}

a {
color: rgb(58, 16, 248);
text-decoration: none;
}
a:link{
color: rgb(58, 16, 248);
}
a:hover{
color: rgb(116, 10, 158);
}

@media (min-width: 667px) and (max-width: 1024px) {

Expand Down

0 comments on commit 2e28e42

Please sign in to comment.