Skip to content

Commit

Permalink
fix: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
psincraian committed Nov 2, 2024
1 parent 29b72e5 commit fc0a7ec
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 9 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>TUR Prices: precio del gas actualizado</title>
</head>
<body>
<div id="root"></div>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "spanish-gas-prices",
"name": "tur-prices",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import './i18n';

function App() {
return (
<BrowserRouter basename="/spanish-gas-prices">
<BrowserRouter basename="/">
<Routes>
<Route path="/" element={<Layout />}>
<Route index element={<Home />} />
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dark": "Dark Mode"
},
"hero": {
"title": "Spanish Gas Price Tracker",
"title": "TUR Prices",
"subtitle": "Track and compare regulated gas prices (TUR) in Spain. Stay informed about the latest changes and make better energy decisions."
},
"prices": {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dark": "Modo Oscuro"
},
"hero": {
"title": "Seguimiento de Precios del Gas en España",
"title": "Precio TUR: Seguimiento de Precios del Gas en España",
"subtitle": "Sigue y compara los precios regulados del gas (TUR) en España. Mantente informado sobre los últimos cambios y toma mejores decisiones energéticas."
},
"prices": {
Expand Down
21 changes: 21 additions & 0 deletions src/pages/Data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ const historicalData = [
"fixed_price": "7.12",
"currency": "EUR"
},
{
"rate_name": "TUR3",
"date": "2024-01",
"variable_price": "0.0454",
"fixed_price": "14.92",
"currency": "EUR"
},
{
"rate_name": "TUR1",
"date": "2023-10",
Expand All @@ -93,6 +100,13 @@ const historicalData = [
"fixed_price": "7.12",
"currency": "EUR"
},
{
"rate_name": "TUR3",
"date": "2023-10",
"variable_price": "0.0454",
"fixed_price": "14.92",
"currency": "EUR"
},
{
"rate_name": "TUR1",
"date": "2023-07",
Expand All @@ -106,6 +120,13 @@ const historicalData = [
"variable_price": "0.0403",
"fixed_price": "9.52",
"currency": "EUR"
},
{
"rate_name": "TUR3",
"date": "2023-07",
"variable_price": "0.0454",
"fixed_price": "14.92",
"currency": "EUR"
}
].sort((a, b) => new Date(a.date).getTime() - new Date(b.date).getTime());

Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import react from '@vitejs/plugin-react';

export default defineConfig({
plugins: [react()],
base: '/spanish-gas-prices/',
base: '/',
});

0 comments on commit fc0a7ec

Please sign in to comment.