Skip to content

Commit c851852

Browse files
committed
Refactor project structure and update dependencies; add ErrorBoundary and NotFound components, improve contact handling, and enhance CSS styles.
1 parent 647253e commit c851852

11 files changed

Lines changed: 142 additions & 139 deletions

File tree

package-lock.json

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

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
},
1515
"dependencies": {
1616
"@tailwindcss/vite": "^4.1.18",
17-
"@tanstack/react-query": "^5.90.21",
1817
"class-variance-authority": "^0.7.1",
1918
"clsx": "^2.1.1",
2019
"lucide-react": "^0.563.0",
@@ -23,8 +22,7 @@
2322
"react-router-dom": "^7.13.0",
2423
"tailwind-merge": "^3.4.0",
2524
"tailwindcss": "^4.1.18",
26-
"tailwindcss-animate": "^1.0.7",
27-
"zustand": "^5.0.11"
25+
"tailwindcss-animate": "^1.0.7"
2826
},
2927
"devDependencies": {
3028
"@eslint/js": "^9.39.1",

public/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://bintraq.com/sitemap.xml

src/App.css

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,6 @@
55

66
@custom-variant dark (&:is(.dark *));
77

8-
#root {
9-
max-width: 1280px;
10-
margin: 0 auto;
11-
padding: 2rem;
12-
text-align: center;
13-
}
14-
15-
.logo {
16-
height: 6em;
17-
padding: 1.5em;
18-
will-change: filter;
19-
transition: filter 300ms;
20-
}
21-
.logo:hover {
22-
filter: drop-shadow(0 0 2em #646cffaa);
23-
}
24-
.logo.react:hover {
25-
filter: drop-shadow(0 0 2em #61dafbaa);
26-
}
27-
28-
@keyframes logo-spin {
29-
from {
30-
transform: rotate(0deg);
31-
}
32-
to {
33-
transform: rotate(360deg);
34-
}
35-
}
36-
37-
@media (prefers-reduced-motion: no-preference) {
38-
a:nth-of-type(2) .logo {
39-
animation: logo-spin infinite 20s linear;
40-
}
41-
}
42-
43-
.card {
44-
padding: 2em;
45-
}
46-
47-
.read-the-docs {
48-
color: #888;
49-
}
50-
518
@theme inline {
529
--radius-sm: calc(var(--radius) - 4px);
5310
--radius-md: calc(var(--radius) - 2px);

src/App.tsx

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { BrowserRouter, Routes, Route } from 'react-router-dom'
2+
import ErrorBoundary from '@/components/ErrorBoundary'
23
import Layout from '@/components/Layout'
34
import Home from '@/pages/Home'
45
import Solutions from '@/pages/Solutions'
@@ -10,24 +11,28 @@ import IotBinSensors from '@/pages/IotBinSensors'
1011
import MonitoringPlatform from '@/pages/MonitoringPlatform'
1112
import AboutUs from '@/pages/AboutUs'
1213
import Careers from '@/pages/Careers'
14+
import NotFound from '@/pages/NotFound'
1315

1416
export default function App() {
1517
return (
16-
<BrowserRouter>
17-
<Routes>
18-
<Route path="/" element={<Layout />}>
19-
<Route index element={<Home />} />
20-
<Route path="solutions" element={<Solutions />} />
21-
<Route path="sectors" element={<Sectors />} />
22-
<Route path="contact" element={<Contact />} />
23-
<Route path="ussd-access" element={<UssdAccess />} />
24-
<Route path="mobile-application" element={<MobileApplication />} />
25-
<Route path="iot-bin-sensors" element={<IotBinSensors />} />
26-
<Route path="monitoring-platform" element={<MonitoringPlatform />} />
27-
<Route path="about" element={<AboutUs />} />
28-
<Route path="careers" element={<Careers />} />
29-
</Route>
30-
</Routes>
31-
</BrowserRouter>
18+
<ErrorBoundary>
19+
<BrowserRouter>
20+
<Routes>
21+
<Route path="/" element={<Layout />}>
22+
<Route index element={<Home />} />
23+
<Route path="solutions" element={<Solutions />} />
24+
<Route path="sectors" element={<Sectors />} />
25+
<Route path="contact" element={<Contact />} />
26+
<Route path="ussd-access" element={<UssdAccess />} />
27+
<Route path="mobile-application" element={<MobileApplication />} />
28+
<Route path="iot-bin-sensors" element={<IotBinSensors />} />
29+
<Route path="monitoring-platform" element={<MonitoringPlatform />} />
30+
<Route path="about" element={<AboutUs />} />
31+
<Route path="careers" element={<Careers />} />
32+
<Route path="*" element={<NotFound />} />
33+
</Route>
34+
</Routes>
35+
</BrowserRouter>
36+
</ErrorBoundary>
3237
)
3338
}

0 commit comments

Comments
 (0)