Skip to content

Commit fad6131

Browse files
authored
Merge pull request #11 from weaponsforge/dev
v1.0.1
2 parents 9a12caf + 25aea5d commit fad6131

File tree

13 files changed

+2520
-35
lines changed

13 files changed

+2520
-35
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,20 @@ Testing display of all related content based on a URL query string.
1212
1. NextJS v13.0.4
1313
2. React 18.2.0
1414

15+
### Online Demo
16+
17+
https://weaponsforge.github.io/climate-profile-full/
18+
1519
## Installation
1620

1721
1. Install dependencies.<br>
1822
`npm install`
1923

2024
2. Set up the environment variables. Create a `.env`, `.env.local` and a `.env.development` files inside the root project directory with reference to the `.env.example` file.<br>
2125

22-
| Variable Name | Description |
23-
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
24-
| NEXT_PUBLIC_BASE_PATH | Root directory path name that NextJS uses for assets, media and client-side routing for the app.<br><br>Set its value to blank `''` when working on development mode in localhost.<br>Set its value to the sub-directory name where the exported NextJS app is to be deployed, i.e. `/<YOUR_REPOSITORY_NAME>` when deploying on a repository (sub-directory) of a root GitHub Pages site, i.e, on `https://<YOUR_GITHUB_USERNAME>.github.io/<YOUR_REPOSITORY_NAME>` |
26+
| Variable Name | Description |
27+
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
28+
| NEXT_PUBLIC_BASE_PATH | Root directory path name that NextJS uses for assets, media and client-side routing for the app.<br><br>Set its value to blank `''` when working on development mode in localhost.<br><br>Set its value to the sub-directory name where the exported NextJS app is to be deployed, i.e. `/<YOUR_REPOSITORY_NAME>` when<br> deploying on a repository (sub-directory) of a root GitHub Pages site, i.e, on `https://<YOUR_GITHUB_USERNAME>.github.io/<YOUR_REPOSITORY_NAME>` |
2529

2630
## Usage
2731

components/layout/section/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import PropTypes from 'prop-types'
2-
import styles from '@/styles/Section.module.css'
2+
import Container from '@mui/material/Container'
3+
import AppCard from '@/components/ui/appcard'
34

45
function Section ({ children }) {
56
return (
6-
<div className={styles.containersection}>
7-
{children}
8-
</div>
7+
<Container maxWidth='md'>
8+
<AppCard>
9+
{children}
10+
</AppCard>
11+
</Container>
912
)
1013
}
1114

components/ui/appcard/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import Card from '@mui/material/Card'
2+
import { styled } from '@mui/material/styles'
3+
4+
const AppCard = styled(Card)(({ theme }) => ({
5+
width: '100%',
6+
padding: theme.spacing(2),
7+
borderRadius: theme.spacing(1),
8+
marginTop: theme.spacing(3),
9+
boxShadow: `
10+
rgb(255 255 255) 0px 0px 0px 0px,
11+
rgb(0 0 0 / 5%) 0px 0px 0px 1px,
12+
rgb(0 0 0 / 10%) 0px 10px 15px -3px, rgb(0 0 0 / 5%)
13+
0px 4px 6px -2px !important`
14+
}))
15+
16+
export default AppCard

0 commit comments

Comments
 (0)