Skip to content

Commit b371f56

Browse files
committed
added og iimage file and fab icon
1 parent 3929904 commit b371f56

9 files changed

Lines changed: 28 additions & 5 deletions

File tree

.github/workflows/main_rigsnv.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
npm run build --if-present
3232
npm run test --if-present
3333
working-directory: ./client # Ensure this path is correct
34+
- name: Copy web.config file
35+
run: |
36+
cp web.config ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp/web.config
3437
- name: 'Deploy to Azure WebApp'
3538
uses: azure/webapps-deploy@v3
3639
with:

client/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
#Reverse proxy files
27+
applicationHost.xdt
28+
web.config

client/index.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
65
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React</title>
6+
<meta name="description" content="Ricardo Garcia - Full-Stack Web Developer. Explore my portfolio, biography, and skills in web development." />
7+
<meta name="keywords" content="Ricardo Garcia, Full-Stack Developer, Web Developer, Portfolio, Biography, Skills, JavaScript, React, Node.js, Azure, AWS, Python, Dev-ops, API Development" />
8+
<meta name="author" content="Ricardo Garcia" />
9+
<meta property="og:title" content="Ricardo Garcia - Full-Stack Web Developer" />
10+
<meta property="og:description" content="Explore Ricardo Garcia's portfolio, biography, and skills in web development." />
11+
<meta property="og:image" content="/ricardogarciauk.png" />
12+
<meta property="og:url" content="https://ricardogarcia.uk" />
13+
<meta property="og:type" content="website" />
14+
<link rel="icon" type="image/svg+xml" href="/lettermark_compact_5.svg" />
15+
<title>Ricardo Garcia - Full-Stack Web Developer</title>
816
</head>
917
<body>
1018
<div id="root"></div>
Lines changed: 6 additions & 0 deletions
Loading

client/public/ricardogarciauk.png

3.93 MB
Loading

client/public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

client/src/components/Pcs.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ import getDepth from './getJsonDepth';
55
const Pcs = () => {
66
const [pcsData, setPcsData] = useState(null);
77
const [error, setError] = useState(null);
8-
const url = "rigsnvapi.azurewebsites.net/pcs_contracts";
98
const [contractsNum, setContractsNum] = useState(null);
109
const [contracts, setContracts] = useState(null);
1110

1211
console.log("Component rendered");
1312

1413
useEffect(() => {
1514
async function fetchPCSContracts() {
15+
let baseUrl = "https://rigsnvapi.azurewebsites.net/pcs_contracts";
16+
let url = new URL("/", baseUrl);
1617
try {
1718
const response = await fetch(url, {
1819
method: 'GET',

client/src/components/Weather.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import ForecastStep from "./ForecastStep";
55
const Weather = () => {
66
const [weatherData, setWeatherData] = useState(null);
77
const [error, setError] = useState(null);
8-
const url = "rigsnvapi.azurewebsites.net/weather";
98
const [timeSteps, setTimeSteps] = useState(null);
109

1110
useEffect(() => {
1211

1312
async function fetchWeatherData() {
13+
let baseUrl = "https://rigsnvapi.azurewebsites.net/weather";
14+
let url = new URL("/", baseUrl);
1415
try {
1516
const coordinates = await getLocation();
1617
try {

server/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"http://localhost:5173",
1212
"http://127.0.0.1/5173",
1313
"https://rigsnv-ejfqade8hydkh3c8.uksouth-01.azurewebsites.net/"
14+
"https://ricardogarcia.uk",
1415
]
1516

1617
app.add_middleware(

0 commit comments

Comments
 (0)