Skip to content

Commit 4d1d738

Browse files
author
JianZcar
committed
consistency checks and upload to github pages
1 parent d35b7a6 commit 4d1d738

7 files changed

Lines changed: 63 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: "20"
28+
cache: "npm"
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build
34+
run: npm run generate
35+
36+
- name: Upload Pages artifact
37+
uses: actions/upload-pages-artifact@v4
38+
with:
39+
path: ./.output/public
40+
41+
deploy:
42+
needs: build
43+
runs-on: ubuntu-latest
44+
environment:
45+
name: github-pages
46+
url: ${{ steps: deployment.outputs.page_url }}
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4

app/components/CardLarge.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<div class="w-full bg-base-200/80 rounded-2xl shadow-2xl mb-12 p-8">
3-
<div class="flex flex-col lg:flex-row items-center gap-8">
2+
<div class="w-full bg-base-200/80 rounded-2xl shadow-2xl mb-12 p-8 md:p-12">
3+
<div class="flex flex-col w-full">
44
<slot></slot>
55
</div>
66
</div>

app/components/home/Download.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div id="download"
3-
class="p-8 md:p-12 bg-linear-to-r from-primary/20 to-secondary/20 rounded-3xl mb-12 border border-primary/20 shadow-2xl">
3+
class="p-8 md:p-12 bg-linear-to-r from-primary/20 to-secondary/20 rounded-2xl mb-12 border border-primary/20 shadow-2xl">
44
<div class="text-center">
55
<h2 class="text-4xl font-bold mb-4">
66
<Icon name="lucide:download" class="mr-2 align-middle" />

app/components/home/Gaming.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div id="gaming"
3-
class="w-full bg-linear-to-r from-purple-900/20 to-pink-900/20 rounded-3xl shadow-2xl mb-12 p-8 md:p-12 border border-purple-500/20">
3+
class="w-full bg-linear-to-r from-purple-900/20 to-pink-900/20 rounded-2xl shadow-2xl mb-12 p-8 md:p-12 border border-purple-500/20">
44
<div class="flex flex-col">
55
<h2 class="text-4xl font-bold mb-6">
66
<Icon name="lucide:gamepad-2" class="text-purple-400 mr-3 align-middle" />

app/components/home/Hero.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flex justify-center items-center">
2+
<div class="flex justify-center items-center mb-12">
33
<img src="/images/logo.png" class="w-25 lg:w-50" alt="Zena OS Logo" />
44
<h1
55
class="text-6xl lg:text-9xl font-bold bg-linear-to-t from-blue-400 to-primary bg-clip-text text-transparent -mb-5 lg:-mb-6 scale-x-110">

app/pages/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="flex flex-col gap-12 w-full">
2+
<div class="flex flex-col w-full">
33
<HomeHero />
44

55
<HomeIntro />
@@ -10,12 +10,12 @@
1010

1111
<HomeUpdates />
1212

13-
<HomeGetStarted />
14-
1513
<HomeIsolation />
1614

1715
<HomeGaming />
1816

17+
<HomeGetStarted />
18+
1919
<HomeDownload />
2020

2121
<HomeSupport />

nuxt.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
import tailwindcss from "@tailwindcss/vite";
33

44
export default defineNuxtConfig({
5+
ssr: false,
56
modules: ['@nuxt/content', '@nuxt/icon', '@nuxtjs/color-mode'],
67
devtools: { enabled: true },
78
compatibilityDate: '2024-04-03',
89
css: ['~/assets/main.css'],
10+
nitro: {
11+
preset: 'github-pages'
12+
},
913
vite: {
1014
plugins: [
1115
tailwindcss() as any,
@@ -21,6 +25,7 @@ export default defineNuxtConfig({
2125
}
2226
},
2327
app: {
28+
baseURL: '/',
2429
pageTransition: { name: 'page', mode: 'out-in', duration: 500 }
2530
}
2631
})

0 commit comments

Comments
 (0)