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

MM-53: Set max width of landing page image #28

Open
wants to merge 2 commits into
base: staging
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
14 changes: 11 additions & 3 deletions src/components/landingPage/LandingPage.scss
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
@import "../../constants.scss";

.landing-page {
display: flex;
flex-direction: column;
align-items: center;
}

h2 {
text-align: center;
margin: 5px;
}

p {
text-align: justify;
text-align: center;
margin: 2px;
}

.headline-image {
width: 100%;
max-width: 400px;
}

.landing-page__button-menu {
height:100px;
height: 100px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;

a {
border-radius: 5px;
width: 250px;
height: 35px;
margin: 5px;
font-size: 22px;
color: white;
color: $white;
text-align: center;
background: $primary;
border: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/landingPage/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Link } from "react-router-dom";

export const LandingPage: React.FunctionComponent = () => {
return (
<main>
<main className="landing-page">
<img src="/images/image-of-rovers-on-mars.jpg" alt="Rovers on Mars" className="headline-image" />
<h2>Welcome, trainee astronaut, to your Mission to Mars!</h2>
<p>Here you will learn about the Red Planet and explore its surface. When the training is complete, we will test if you are ready to be an astronaut!</p>
Expand Down