Skip to content

Commit 75dee37

Browse files
Merge pull request #38 from Dans-Plugins/release/v0.3
Release/v0.3
2 parents 96cb647 + 0b264c5 commit 75dee37

File tree

7 files changed

+37
-17
lines changed

7 files changed

+37
-17
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ COPY package*.json ./
99
RUN npm install
1010

1111
# Bundle app source
12-
COPY . .
12+
COPY components ./components
13+
COPY pages ./pages
14+
COPY public ./public
15+
COPY styles ./styles
16+
COPY utils ./utils
17+
COPY next-env.d.ts ./
18+
COPY next.config.js ./
19+
COPY tsconfig.json ./
1320

1421
# Expose port 3000
1522
EXPOSE 3000

components/TopBar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const TopBar: React.FC = () => {
2020
>
2121
Dan's Plugins Community
2222
</Typography>
23+
<Button color="inherit" href="/">Home</Button>
24+
<Button color="inherit" href="/guides">Guides</Button>
2325
<Button color="inherit" href="https://github.com/Dans-Plugins">GitHub</Button>
2426
<Button color="inherit" href="https://discord.gg/xXtuAQ2">Discord</Button>
2527
<Button color="inherit" href="https://www.linkedin.com/company/dansplugins">LinkedIn</Button>

docker-compose.yml renamed to compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ services:
55
ports:
66
- "3000:3000"
77
volumes:
8-
- .:/app
8+
- ./node_modules:/app/node_modules

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dpc-website",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createTheme, CssBaseline, ThemeProvider, useMediaQuery } from '@mui/mat
55
import { ColorModeContext } from '../utils/ColorModeContext';
66

77
function MyApp({ Component, pageProps }: AppProps) {
8-
const prefersDarkMode = useMediaQuery('(prefers-color-scheme: dark)');
8+
const prefersDarkMode = true;
99

1010
const [mode, setMode] = useState<'light' | 'dark'>(prefersDarkMode ? 'dark' : 'light');
1111

pages/guides.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { Box, Button, Container, Grid, Link, Typography } from '@mui/material'
2+
import type { NextPage } from 'next'
3+
import TopBar from '../components/TopBar'
4+
import React from 'react';
5+
import BottomBar from '../components/BottomBar'
6+
7+
// pull version from package.json
8+
const version = require('../package.json').version
9+
10+
const Guides: NextPage = () => (
11+
<Box sx={{ flexGrow: 1 }}>
12+
<TopBar />
13+
<Container maxWidth="xl">
14+
<Typography variant="body1" gutterBottom>
15+
The guides for each plugin are hosted on the wiki for that plugin. You can find the links to the wiki pages below.
16+
</Typography>
17+
<Typography variant="body1" gutterBottom>
18+
<Button color="inherit" href="https://github.com/Dans-Plugins/Medieval-Factions/wiki/Guide">Medieval Factions Guide</Button>
19+
</Typography>
20+
</Container>
21+
</Box>
22+
)
23+
24+
export default Guides

pages/index.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,6 @@ const MedievalRoleplayEngine: React.FC = () => (
190190
/>
191191
)
192192

193-
const MiniFactions: React.FC = () => (
194-
<PluginCard
195-
title="MiniFactions"
196-
description="Aims to introduce factions into the game in a simple, easy to use, expandable way."
197-
githubLink="https://github.com/Dans-Plugins/MiniFactions"
198-
// no spigotmc link yet
199-
// no bStats ID yet
200-
/>
201-
)
202-
203193
const MoreRecipes: React.FC = () => (
204194
<PluginCard
205195
title="More Recipes"
@@ -354,9 +344,6 @@ const AllPlugins: React.FC = () => (
354344
<Grid item xs={12} sm={6} md={4} lg={3} xl={2}>
355345
<MedievalRoleplayEngine />
356346
</Grid>
357-
<Grid item xs={12} sm={6} md={4} lg={3} xl={2}>
358-
<MiniFactions />
359-
</Grid>
360347
<Grid item xs={12} sm={6} md={4} lg={3} xl={2}>
361348
<MoreRecipes />
362349
</Grid>

0 commit comments

Comments
 (0)