Skip to content

Commit

Permalink
Add a placeholder for the landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Dec 1, 2023
1 parent 0992a30 commit d62c3ec
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 1 deletion.
1 change: 1 addition & 0 deletions website/gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./src/styles/global-styles.css"
43 changes: 43 additions & 0 deletions website/src/images/placeholder-mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions website/src/images/placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import * as React from "react"
function IndexPage() {
return (
<main>
<h1>Landing page</h1>
<div className="placeholder">
<div className="placeholder_svg" />
</div>
</main>
)
}
Expand Down
33 changes: 33 additions & 0 deletions website/src/styles/global-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
body {
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
overflow: hidden;
}

.placeholder {
width: 100vw;
height: 100vh;
padding: 10px;
box-sizing: border-box;
background-color: #F3E5C1;
}

.placeholder_svg {
width: 100%;
height: 100%;
background: url('../images/placeholder.svg');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}

@media (max-width: 854px) {
.placeholder_svg {
background: url('../images/placeholder-mobile.svg');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
}

0 comments on commit d62c3ec

Please sign in to comment.