Skip to content

Commit

Permalink
Placeholder for the landing page (#54)
Browse files Browse the repository at this point in the history
Currently, the designs for the landing page aren't yet ready. Let's
prepare a placeholder for the Acre website. Page data such as title and
favicon should also be set. To do this, let us use the [manifest
file](https://www.gatsbyjs.com/docs/how-to/performance/add-a-manifest-file/).
  • Loading branch information
nkuba authored Dec 1, 2023
2 parents 918977c + d62c3ec commit 90a036d
Show file tree
Hide file tree
Showing 9 changed files with 187 additions and 4 deletions.
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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"
20 changes: 17 additions & 3 deletions website/gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,26 @@ import type { GatsbyConfig } from "gatsby"

const config: GatsbyConfig = {
siteMetadata: {
// TODO: Update the needed data when the final domain name will be ready.
siteUrl: "https://www.yourdomain.tld",
siteUrl: "https://acre.fi/",
title: "Acre",
},
graphqlTypegen: true,
plugins: ["gatsby-plugin-pnpm"],
plugins: [
"gatsby-plugin-pnpm",
{
resolve: "gatsby-plugin-manifest",
options: {
name: "Acre",
short_name: "Acre",
start_url: "/",
background_color: "#F3E5C1",
theme_color: "#F3E5C1",
display: "standalone",
icon: "src/images/favicon.png",
crossOrigin: "use-credentials",
},
},
],
}

export default config
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"dependencies": {
"gatsby": "^5.12.11",
"gatsby-plugin-manifest": "^5.12.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
Binary file added website/src/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 90a036d

Please sign in to comment.