Skip to content

Commit 99eb1c3

Browse files
authored
Merge branch 'dev' into codex-1-about-page
2 parents 96f4e3c + 994f6ee commit 99eb1c3

File tree

13 files changed

+147
-29
lines changed

13 files changed

+147
-29
lines changed

.github/workflows/ci.yaml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,50 @@
11
name: Build
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- dev
84
pull_request:
95
branches:
10-
- main
116
- dev
7+
types:
8+
- closed
129

1310
jobs:
1411
build:
1512
name: Build
1613
runs-on: ubuntu-latest
1714

1815
steps:
19-
- name: Checkout code
20-
uses: actions/checkout@v2
16+
- name: Checkout Code
17+
uses: actions/checkout@v3
2118

22-
- name: Setup Node.js
23-
uses: actions/setup-node@v2
19+
- name: Install Node
20+
uses: actions/setup-node@v3
2421
with:
25-
node-version: '20.11.0'
22+
node-version: 18.x
2623

27-
- name: Install dependencies
24+
- name: Install Dependencies
2825
run: npm install
2926

30-
- name: Build project
31-
run: npm run build
27+
- name: Build Project
28+
run: npm run build
29+
30+
- name: Upload artifact to enable deployment
31+
uses: actions/upload-artifact@v3
32+
with:
33+
name: production-files
34+
path: ./dist
35+
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Download artifact
41+
uses: actions/download-artifact@v3
42+
with:
43+
name: production-files
44+
path: ./dist
45+
46+
- name: Deploy to GitHub Pages
47+
uses: peaceiris/actions-gh-pages@v3
48+
with:
49+
github_token: ${{ secrets.CI_CD_TOKEN }}
50+
publish_dir: ./dist

.husky/commit-msg

100644100755
File mode changed.

.husky/pre-commit

100644100755
File mode changed.

index.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React</title>
8-
</head>
9-
<body>
10-
<div id="root"></div>
11-
<script type="module" src="/src/main.jsx"></script>
12-
</body>
13-
</html>
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>CodeX</title>
9+
</head>
10+
11+
<body>
12+
<div id="root"></div>
13+
<script type="module" src="/src/main.jsx"></script>
14+
</body>
15+
16+
</html>

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"name": "vite-project",
2+
"name": "codex-website",
33
"private": true,
44
"version": "0.0.0",
55
"type": "module",
6+
"homepage": "https://codexsit.github.io/CodeX-Website/",
67
"scripts": {
78
"dev": "vite",
89
"build": "vite build",
910
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
1011
"preview": "vite preview",
1112
"lint:fix": "eslint --fix .",
1213
"style": "prettier --write {src,test}/**/* ./*.{json,*.json} !package-lock.json -u --no-error-on-unmatched-pattern",
13-
"prepare": "husky install"
14+
"prepare": "husky install",
15+
"deploy": "vite build && gh-pages -d dist"
1416
},
1517
"dependencies": {
1618
"@fontsource/league-gothic": "^5.0.18",
@@ -38,6 +40,7 @@
3840
"eslint-plugin-react": "^7.33.2",
3941
"eslint-plugin-react-hooks": "^4.6.0",
4042
"eslint-plugin-react-refresh": "^0.4.5",
43+
"gh-pages": "^6.1.1",
4144
"husky": "^8.0.0",
4245
"lint-staged": "^15.2.2",
4346
"postcss-cli": "^11.0.0",

src/App.jsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
import { HashRouter as Router, Routes, Route } from "react-router-dom";
22
import { ToastContainer } from "react-toastify";
33
import routes from "@/routes/index";
4+
import Navbar from "@/components/Navbar/index";
5+
6+
7+
8+
const navLinks = [
9+
{name: "About Us", path: "/about-us"},
10+
{name: "Our Team", path: "/teams"},
11+
{name: "Gallery", path: "/gallery"},
12+
{name: "Contact", path: "/contact"},
13+
{name: "Projects", path: "/projects"}
14+
15+
];
416

517
function App() {
618
return (
719
<Router>
20+
<Navbar links={navLinks}/>
21+
822
<ToastContainer />
923
<Routes>
1024
{routes.map((route) => (

src/assets/images/close.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/images/logo.svg

Lines changed: 9 additions & 0 deletions
Loading

src/assets/images/menu.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/styles/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
@import "@fontsource/poppins/900.css";
66
@import "@fontsource/league-gothic";
77

8+
89
/* Reset default browser styles */
910
* {
1011
margin: 0;

0 commit comments

Comments
 (0)