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

Make 2024 #3

Merged
merged 6 commits into from
Jan 9, 2024
Merged
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
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.20.2
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,44 @@ The theme requires you to have a contentful account. You can register your accou

Clone the theme

```
```sh
git clone [email protected]:thebakerdev/gatsby-starter-zenii.git
```

Install dependencies

```
```sh
npm install
```

This project comes with a Contentful setup command from [https://github.com/contentful-userland/gatsby-contentful-starter](https://github.com/contentful-userland/gatsby-contentful-starter).

```
```sh
npm run setup
```

The process will ask for your credentials which can be found on your contentful settings.

### Development Commands

Run the project locally
Switch NodeJS version to v16.20.2 (You should first **have NodeJS v16.20.2 installed**), and run the project locally.

```
```sh
nvm use
npm run develop
```

Some errors may pop out, just type `y` and enter to continue. The website will be running on `localhost:8000`

Build the project

```
```sh
npm run build
```

Serve the build project

```
```sh
npm run serve
```

Expand All @@ -81,7 +84,7 @@ You can simply add new sections and pages in the theme by creating new contentfu
- Import the new component inside the **section.js** file and add it to the components array.
- Add static query inside your new section component. Make sure that the component accepts **contentModuleId** as a prop.

```
```django
const data = useStaticQuery(graphql`
query {
allContentfulLayoutPortfolio {
Expand Down
16 changes: 10 additions & 6 deletions package-lock.json

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

Binary file modified src/assets/images/favicon2024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/makeNTU2024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/makeNTU2024Title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/images/makeNTU2024Title.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetchAsyncQuestionPropertyQuestionProperty } from "inquirer/lib/utils/utils";
// import { fetchAsyncQuestionPropertyQuestionProperty } from "inquirer/lib/utils/utils";
import React from "react";

const Map = ({ feature }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/sections/about.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import PropTypes from "prop-types";
import { useStaticQuery, graphql } from "gatsby";
import Img from "gatsby-image";
// import Img from "gatsby-image";

import AboutItem from "components/aboutItem";

Expand Down
2 changes: 1 addition & 1 deletion src/sections/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { graphql, Link, useStaticQuery } from "gatsby";
import PostPreview from "components/postPreview";
import "../assets/css/layouts/posts.css";
import $ from "jquery";
import { ContactSupportOutlined } from "@material-ui/icons";
// import { ContactSupportOutlined } from "@material-ui/icons";

const Posts = ({ contentModuleId }) => {
const data = useStaticQuery(graphql`
Expand Down
2 changes: 1 addition & 1 deletion src/sections/section.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from "prop-types";

import About from "sections/about";
import Prizes from "sections/prizes";
import Contact from "sections/contact";
// import Contact from "sections/contact";
import Hero from "sections/hero";
import Timeline from "sections/timeline";
import PageNotFound from "sections/pageNotFound";
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3876,9 +3876,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001449:
version "1.0.30001449"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001449.tgz"
integrity sha512-CPB+UL9XMT/Av+pJxCKGhdx+yg1hzplvFJQlJ2n68PyQGMz9L/E2zCyLdOL8uasbouTUgnPl+y0tccI/se+BEw==
version "1.0.30001576"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001576.tgz"
integrity sha512-ff5BdakGe2P3SQsMsiqmt1Lc8221NR1VzHj5jXN5vBny9A6fpze94HiVV/n7XRosOlsShJcvMv5mdnpjOGCEgg==

caw@^2.0.0, caw@^2.0.1:
version "2.0.1"
Expand Down