-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a437c55
Showing
27 changed files
with
10,306 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag martinfjr/minecraft-website:$(date +%s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# GitHub recommends pinning actions to a commit SHA. | ||
# To get a newer version, you will need to update the SHA. | ||
# You can also reference a tag or branch, but the action may change without warning. | ||
|
||
name: Publish Docker image | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: martinfjr/minecraft-website | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
node_modules | ||
*.log* | ||
.nuxt | ||
.nitro | ||
.cache | ||
.output | ||
.data | ||
.env | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v22.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM node:22 as build | ||
WORKDIR /usr/src/app | ||
|
||
RUN npm install -g pnpm@9.1.1 | ||
|
||
COPY package.json ./ | ||
COPY pnpm-lock.yaml ./ | ||
RUN pnpm install | ||
COPY . . | ||
|
||
RUN pnpm build | ||
|
||
FROM --platform=linux/arm64 node:22-alpine | ||
COPY --from=build /usr/src/app/.output /app | ||
WORKDIR /app | ||
|
||
ENV PORT=80 | ||
EXPOSE 80 | ||
CMD ["node", "server/index.mjs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Content v2 Minimal Starter | ||
|
||
Look at the [Content documentation](https://content.nuxt.com/) to learn more. | ||
|
||
## Setup | ||
|
||
Make sure to install the dependencies: | ||
|
||
```bash | ||
# yarn | ||
yarn install | ||
|
||
# npm | ||
npm install | ||
|
||
# pnpm | ||
pnpm install | ||
``` | ||
|
||
## Development Server | ||
|
||
Start the development server on http://localhost:3000 | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
## Production | ||
|
||
Build the application for production: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
Locally preview production build: | ||
|
||
```bash | ||
npm run preview | ||
``` | ||
|
||
Checkout the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<template> | ||
<div> | ||
<NuxtPage /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
html { | ||
scroll-behavior: smooth; | ||
} | ||
|
||
body, | ||
.bg-standard { | ||
@apply bg-gray-50 dark:bg-gray-900; | ||
} | ||
|
||
/* Headings */ | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5 { | ||
@apply font-bold tracking-tight mb-4 text-black dark:text-white; | ||
} | ||
|
||
h1 { | ||
@apply text-3xl mb-6; | ||
} | ||
|
||
h2 { | ||
@apply text-2xl; | ||
} | ||
|
||
h3 { | ||
@apply text-xl; | ||
} | ||
|
||
h4 { | ||
@apply text-lg; | ||
} | ||
|
||
h5 { | ||
@apply text-base; | ||
} | ||
|
||
@screen md { | ||
h1 { | ||
@apply text-5xl; | ||
} | ||
|
||
h2 { | ||
@apply text-3xl; | ||
} | ||
} | ||
|
||
/* Body Text */ | ||
|
||
p { | ||
@apply text-base mt-2; | ||
} | ||
|
||
p, | ||
li { | ||
@apply text-gray-600 dark:text-gray-400; | ||
} | ||
|
||
ul { | ||
list-style: disc; | ||
@apply mb-4 ml-4; | ||
} | ||
|
||
.scroll-lock { | ||
margin: 0; | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
|
||
ol, ul, p { | ||
@apply mb-8; | ||
} | ||
|
||
li ul { | ||
list-style: none; | ||
@apply mb-0 mt-2; | ||
} | ||
|
||
li ul li { | ||
@apply ml-4; | ||
} | ||
|
||
li + li { | ||
@apply mt-2; | ||
} | ||
|
||
li a { | ||
@apply underline hover:no-underline hover:text-gray-600 transition; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<template> | ||
<footer class="footer"> | ||
<hr class="footer-top-hr" /> | ||
<div class="footer-content-wrapper"> | ||
<p class="mb-3 font-semibold"> | ||
© 2024 Martin Fracker, Jr. All rights reserved. | ||
</p> | ||
<p class="text-sm text-gray-700"> | ||
This website is built with | ||
<a | ||
href="https://v3.nuxtjs.org/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
class="footer-link" | ||
>Nuxt 3</a | ||
> | ||
& | ||
<a | ||
href="https://tailwindcss.com/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
class="footer-link" | ||
>Tailwind.css</a | ||
> | ||
and hosted on my | ||
<NuxtLink to="/home-network" class="footer-link">home network </NuxtLink | ||
>. <br /> | ||
The source code is available on | ||
<a | ||
href="https://github.com/Towerism/minecraft-website" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
class="footer-link" | ||
>Github</a | ||
>. | ||
</p> | ||
<div class="inline-flex mt-6"></div> | ||
</div> | ||
</footer> | ||
</template> | ||
|
||
<style scoped> | ||
.footer { | ||
@apply flex flex-col justify-center max-w-2xl mx-auto w-full mb-8; | ||
} | ||
.footer-top-hr { | ||
@apply w-full border-gray-200 dark:border-gray-800 mb-8; | ||
} | ||
.footer-content-wrapper { | ||
@apply container max-w-lg mx-auto text-center text-gray-700; | ||
} | ||
.footer-link { | ||
@apply underline hover:no-underline hover:text-gray-600 transition; | ||
} | ||
</style> |
Oops, something went wrong.