Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Towerism committed May 25, 2024
0 parents commit a437c55
Show file tree
Hide file tree
Showing 27 changed files with 10,306 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/docker-image.yml
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)
48 changes: 48 additions & 0 deletions .github/workflows/docker-push.yml
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 }}
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
*.log*
.nuxt
.nitro
.cache
.output
.data
.env
dist
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22.2.0
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 2,
"useTabs": false
}
19 changes: 19 additions & 0 deletions Dockerfile
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"]
42 changes: 42 additions & 0 deletions README.md
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.
5 changes: 5 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<div>
<NuxtPage />
</div>
</template>
95 changes: 95 additions & 0 deletions assets/css/main.css
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;
}
58 changes: 58 additions & 0 deletions components/AppFooter.vue
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
>
&amp;
<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>
Loading

0 comments on commit a437c55

Please sign in to comment.