diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
new file mode 100644
index 0000000..cf8f7f0
--- /dev/null
+++ b/.github/workflows/cd.yml
@@ -0,0 +1,57 @@
+name: Deploy static content to Pages
+
+on:
+ push:
+ branches: ["main"]
+
+ workflow_dispatch:
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: "pages"
+ cancel-in-progress: true
+
+jobs:
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Set up pnpm
+ uses: pnpm/action-setup@v3
+ with:
+ version: 8
+
+ - name: Set up Node
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: "pnpm"
+
+ - name: Install dependencies
+ run: pnpm install
+
+ - name: Build
+ run: pnpm run build
+
+ - name: Setup Pages
+ uses: actions/configure-pages@v4
+
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ # Upload dist folder
+ path: "./dist"
+
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4
diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx
index ec6f317..848ccbb 100644
--- a/src/components/Navigation.tsx
+++ b/src/components/Navigation.tsx
@@ -24,7 +24,7 @@ function Navigation() {
{isCompliant ? (
<>
Icapps
-
+
>
) : (
diff --git a/src/providers/AppStateProvider.tsx b/src/providers/AppStateProvider.tsx
index c8fa0b9..a9a0a74 100644
--- a/src/providers/AppStateProvider.tsx
+++ b/src/providers/AppStateProvider.tsx
@@ -1,10 +1,5 @@
import { useLocalStorage } from "@/hooks";
-import {
- type PropsWithChildren,
- createContext,
- useContext,
- useState,
-} from "react";
+import { type PropsWithChildren, createContext, useContext } from "react";
export type AppStateContext = {
isCompliant: boolean;
diff --git a/vite.config.ts b/vite.config.ts
index bc25c66..5f4afec 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -4,6 +4,7 @@ import { defineConfig } from "vite";
// https://vitejs.dev/config/
export default defineConfig({
+ base: "/e-inclusion-demo/",
plugins: [react()],
resolve: {
alias: {