Skip to content

Commit 89a1839

Browse files
authored
Merge pull request #17 from josueJURE/updated-News-Alert-Link
(chore): make app Git Hub Pages ready
2 parents 1b5216d + 7414107 commit 89a1839

13 files changed

Lines changed: 175 additions & 120 deletions

File tree

.github/workflows/deploy-pages.yml

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

dist/assets/index-BBGvUE3h.js

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/index-bjDilOya.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

dist/index.html

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,22 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="stylesheet" href="index.css" />
6-
<link rel="icon" href="favicon.ico" />
7-
<link href="https://fonts.googleapis.com/css2?family=Caveat&amp;family=Onest:wght@300&amp;family=Open+Sans:ital,wght@1,300&amp;family=Quicksand:wght@300;400;500;600;700&amp;family=Roboto:wght@300&amp;family=Rowdies&amp;display=swap" rel="stylesheet">
5+
<link
6+
href="https://fonts.googleapis.com/css2?family=Caveat&amp;family=Onest:wght@300&amp;family=Open+Sans:ital,wght@1,300&amp;family=Quicksand:wght@300;400;500;600;700&amp;family=Roboto:wght@300&amp;family=Rowdies&amp;display=swap"
7+
rel="stylesheet"
8+
/>
89
<meta name="viewport" content="width=device-width, initial-scale=1" />
910
<meta name="theme-color" content="#000000" />
1011
<meta
1112
name="description"
1213
content="Web site created using create-react-app"
1314
/>
14-
<link rel="apple-touch-icon" href="/logo192.png" />
15-
<!--
16-
manifest.json provides metadata used when your web app is installed on a
17-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
18-
-->
19-
<link rel="manifest" href="/manifest.json" />
20-
<!--
21-
Notice the use of %PUBLIC_URL% in the tags above.
22-
It will be replaced with the URL of the `public` folder during the build.
23-
Only files inside the `public` folder can be referenced from the HTML.
24-
25-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
26-
work correctly both with client-side routing and a non-root public URL.
27-
Learn how to configure a non-root public URL by running `npm run build`.
28-
-->
29-
<div id="root"></div>
15+
<link rel="manifest" href="./manifest.json" />
3016
<title>React App</title>
31-
<script type="module" crossorigin src="/assets/index-bjDilOya.js"></script>
32-
<link rel="stylesheet" crossorigin href="/assets/index-zhooeMjb.css">
17+
<script type="module" crossorigin src="./assets/index-BBGvUE3h.js"></script>
18+
<link rel="stylesheet" crossorigin href="./assets/index-zhooeMjb.css">
3319
</head>
20+
<body>
21+
<div id="root"></div>
22+
</body>
3423
</html>

index.html

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,21 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="stylesheet" href="index.css" />
6-
<link rel="icon" href="favicon.ico" />
7-
<link href="https://fonts.googleapis.com/css2?family=Caveat&amp;family=Onest:wght@300&amp;family=Open+Sans:ital,wght@1,300&amp;family=Quicksand:wght@300;400;500;600;700&amp;family=Roboto:wght@300&amp;family=Rowdies&amp;display=swap" rel="stylesheet">
5+
<link
6+
href="https://fonts.googleapis.com/css2?family=Caveat&amp;family=Onest:wght@300&amp;family=Open+Sans:ital,wght@1,300&amp;family=Quicksand:wght@300;400;500;600;700&amp;family=Roboto:wght@300&amp;family=Rowdies&amp;display=swap"
7+
rel="stylesheet"
8+
/>
89
<meta name="viewport" content="width=device-width, initial-scale=1" />
910
<meta name="theme-color" content="#000000" />
1011
<meta
1112
name="description"
1213
content="Web site created using create-react-app"
1314
/>
14-
<link rel="apple-touch-icon" href="/logo192.png" />
15-
<!--
16-
manifest.json provides metadata used when your web app is installed on a
17-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
18-
-->
19-
<link rel="manifest" href="/manifest.json" />
20-
<!--
21-
Notice the use of %PUBLIC_URL% in the tags above.
22-
It will be replaced with the URL of the `public` folder during the build.
23-
Only files inside the `public` folder can be referenced from the HTML.
24-
25-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
26-
work correctly both with client-side routing and a non-root public URL.
27-
Learn how to configure a non-root public URL by running `npm run build`.
28-
-->
29-
<div id="root"></div>
30-
<script type="module" src="/src/index.jsx"></script>
15+
<link rel="manifest" href="./manifest.json" />
3116
<title>React App</title>
3217
</head>
18+
<body>
19+
<div id="root"></div>
20+
<script type="module" src="/src/index.tsx"></script>
21+
</body>
3322
</html>

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@
2222
"web-vitals": "^2.1.4"
2323
},
2424
"scripts": {
25-
"frontend": "vite",
25+
"dev": "vite",
2626
"build": "vite build",
2727
"preview": "vite preview",
28-
"backend": "ts-node server.ts",
29-
"backend:prod": "node build/server.js",
30-
"build:backend": "tsc",
31-
"dev": "concurrently \"npm run backend\" \"npm run frontend\"",
3228
"test": "react-scripts test",
3329
"eject": "react-scripts eject"
3430
},
@@ -50,6 +46,7 @@
5046
"last 1 safari version"
5147
]
5248
},
49+
5350
"devDependencies": {
5451
"@playwright/test": "^1.54.2",
5552
"@types/express": "^5.0.1",

server.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,22 @@ app.use(express.static(path.join(__dirname, "public")));
210210
const port = process.env.PORT || 5173;
211211
app.listen(port, () => {
212212
console.log(`Server running on port ${port}`);
213+
214+
215+
function countFours() {
216+
let count = 0;
217+
218+
for (let i = 0; i < str.length; i++) {
219+
if (str[i] === "4") {
220+
count++
221+
}
222+
}
223+
return count
224+
}
225+
213226
});
227+
228+
229+
let s = "283479131515574857242454150695950829533116861727855889075098381754637464939319255060400927701671139009848824012858361603563707660104710181942955596198946767837449448255379774726847104047534646208046684259069491293313677028989152104752162056966024058038150193511253382430035587640247496473263914199272604269922796"
230+
231+
console.log("how many 4", countFours(s))

server.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ const prisma = new PrismaClient();
5353
import { Request, Response } from "express";
5454

5555
app.post("/", (req: Request, res: Response) => {
56-
console
57-
.log
58-
// `${req.method} ${req.secure ? "https" : "http"}://${req.get("host")}${req.originalUrl}`
59-
();
60-
56+
6157
try {
6258
const { name, email, subject, message } = req.body;
6359

speech.mp3

-21.8 KB
Binary file not shown.

src/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { useState } from "react";
22
import SkillsCard from "./components/SkillsCard";
33
import ProjectsSection from "./components/ProjectsSection";
4-
import ContactLeft from "./components/ContactLeft";
5-
import ContactRight from "./components/ContactRight";
4+
// import ContactLeft from "./components/ContactLeft";
5+
// import ContactRight from "./components/ContactRight";
66
import Footer from "./components/Footer";
77
import Icon from "./components/Icon";
88
// import UseTextToSpeech from "./components/UseTextToSpeech";
@@ -118,7 +118,7 @@ function App(props) {
118118

119119
<ProjectsSection />
120120
{/* // End of Projects // Contact */}
121-
<section className="contact" id="contact">
121+
{/* <section className="contact" id="contact">
122122
<h1 className="section-bg-heading">Contact Me</h1>
123123
<h1 className="section-heading">Contact</h1>
124124
<h3 className="sub-heading">
@@ -129,7 +129,7 @@ function App(props) {
129129
<ContactLeft />
130130
<ContactRight />
131131
</div>
132-
</section>
132+
</section> */}
133133
<Footer />
134134
</div>
135135
</div>

0 commit comments

Comments
 (0)