From 61187b8a2e78886397009fd87cd90314bf04209c Mon Sep 17 00:00:00 2001 From: fahed Date: Mon, 2 Feb 2026 14:08:17 +0300 Subject: [PATCH] feat: update branding with official HiHala logo + 'Museums Data' - Add official HiHala logo SVG (text portion from v1.5) - Replace text-based nav brand with logo image + 'Museums Data' - Update data source to default to NocoDB with Sheets fallback - Move all credentials to environment variables (.env.local) --- .env.example | 6 +++++- public/hihala-logo.svg | 7 +++++++ src/App.css | 20 ++++++++++++++++---- src/App.js | 9 ++++++--- src/services/dataService.js | 35 +++++++++++++++++++++++++++-------- 5 files changed, 61 insertions(+), 16 deletions(-) create mode 100644 public/hihala-logo.svg diff --git a/.env.example b/.env.example index ec47392..f58a03e 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,7 @@ -# NocoDB Configuration (optional - only needed if using NocoDB as data source) +# NocoDB (primary data source) REACT_APP_NOCODB_URL=http://localhost:8090 REACT_APP_NOCODB_TOKEN=your_token_here + +# Google Sheets (fallback if NocoDB fails) +REACT_APP_SHEETS_ID=your_spreadsheet_id_here +REACT_APP_SHEETS_NAME=Consolidated Data diff --git a/public/hihala-logo.svg b/public/hihala-logo.svg new file mode 100644 index 0000000..20952ba --- /dev/null +++ b/public/hihala-logo.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/App.css b/src/App.css index e6e7190..1b027ad 100644 --- a/src/App.css +++ b/src/App.css @@ -159,14 +159,22 @@ body { } .nav-brand { - font-size: 1.125rem; + display: flex; + align-items: center; + gap: 8px; + font-size: 1rem; font-weight: 600; - color: var(--text-primary); + color: var(--text-secondary); letter-spacing: -0.02em; } +.nav-logo { + height: 24px; + width: auto; +} + .nav-brand span { - color: var(--gold); + color: var(--text-secondary); } .nav-links { @@ -1011,7 +1019,11 @@ table tbody tr:hover { } .nav-brand { - font-size: 1.1rem; + font-size: 0.9rem; + } + + .nav-logo { + height: 20px; } /* Mobile Bottom Navigation */ diff --git a/src/App.js b/src/App.js index 56e6811..4c1a3be 100644 --- a/src/App.js +++ b/src/App.js @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'; import { BrowserRouter as Router, Routes, Route, Link, useLocation } from 'react-router-dom'; import Dashboard from './components/Dashboard'; import Comparison from './components/Comparison'; -import { fetchSheetData } from './services/dataService'; +import { fetchData } from './services/dataService'; import './App.css'; function NavLink({ to, children }) { @@ -25,7 +25,7 @@ function App() { async function loadData() { try { setLoading(true); - const result = await fetchSheetData(); + const result = await fetchData(); setData(result); setError(null); } catch (err) { @@ -61,7 +61,10 @@ function App() {