Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WanderWise</title>
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#6366F1" />
<link rel="icon" type="image/png" sizes="192x192" href="/icons/W.png" />
<link rel="apple-touch-icon" href="/icons/WanderWise.png" />
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
</html>
8,103 changes: 5,982 additions & 2,121 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"react-dom": "^19.1.1",
"react-router-dom": "^7.8.2",
"tailwind-merge": "^3.3.1",
"tailwindcss": "^4.1.13"
"tailwindcss": "^4.1.13",
"vite-plugin-pwa": "^1.0.3"
},
"devDependencies": {
"@eslint/js": "^9.33.0",
Expand Down
Binary file added public/icons/W.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons/Wander Wise.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "WanderWise",
"short_name": "WanderWise",
"description": "Your smart travel companion.",
"start_url": "/",
"display": "standalone",
"background_color": "#000000",
"theme_color": "#6366F1",
"icons": [
{
"src": "/icons/W.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/icons/WanderWise.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
6 changes: 3 additions & 3 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function Navbar() {
</div>
</HoverCardTrigger>
<HoverCardContent>
<div className="bg-white mt-3 rounded-lg shadow-md text-gray-600 text-sm p-3 text-center w-56">
<div className="bg-gray-200 mt-3 rounded-lg shadow-md text-gray-900 text-sm p-3 text-center w-56">
🟢 Access your bookings, cancellations, and date changes.
</div>
</HoverCardContent>
Expand All @@ -137,10 +137,10 @@ function Navbar() {
</div>
</HoverCardTrigger>
<HoverCardContent>
<Card className="p-5 w-64 mt-3 rounded-lg shadow-md shadow-gray-600 cursor-default">
<Card className="p-5 bg-gray-200 w-64 mt-3 rounded-lg shadow-md shadow-gray-600 cursor-default">
<CardHeader>
<CardTitle>Hey Traveller</CardTitle>
<CardDescription>
<CardDescription className="text-black">
Get exclusive deals & manage your trips
</CardDescription>
</CardHeader>
Expand Down
40 changes: 34 additions & 6 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,41 @@ import path from "path"
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
import { VitePWA } from "vite-plugin-pwa"

// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
plugins: [
react(),
tailwindcss(),
VitePWA({
registerType: "autoUpdate",
includeAssets: ["favicon.ico", "robots.txt", "apple-touch-icon.png"],
manifest: {
name: "WanderWise",
short_name: "WanderWise",
description: "Your smart travel companion.",
start_url: "/",
display: "standalone",
background_color: "#000000",
theme_color: "#6366F1",
icons: [
{
src: "icons/W.png",
sizes: "192x192",
type: "image/png"
},
{
src: "icons/WanderWise.png",
sizes: "512x512",
type: "image/png"
}
]
}
})
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
})
"@": path.resolve(__dirname, "./src")
}
}
})