Skip to content

Commit d5a7ed0

Browse files
404 redirect, map marker popup, Google search link
1 parent a2f03e7 commit d5a7ed0

File tree

11 files changed

+121
-326
lines changed

11 files changed

+121
-326
lines changed

.github/workflows/gh-pages.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
run: npm ci
4040
- name: Build
4141
run: npm run build
42+
- name: Copy 404.html
43+
run: cp public/404.html dist/
4244
- name: Setup Pages
4345
uses: actions/configure-pages@v4
4446
- name: Upload artifact

public/404.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue + TS</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

public/location.png

1.74 KB
Loading

src/App.vue

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@
3434
</div>
3535
<button v-if="isMobile" @click="openFilter" class="filter-button">Filter</button>
3636
</div>
37-
38-
39-
40-
<!-- <div class="fixed bottom-0 left-0 right-0 flex justify-center p-4 z-50">
41-
<Button
42-
class="bg-blue-500 text-white px-4 py-2 rounded shadow-lg"
43-
@click="openModal"
44-
>
45-
Filtrer les adresses</Button>
46-
</div>
47-
<RestaurantFilterForm v-model:isOpen="isModalOpen" @filteredRestaurants="updatedRestaurants"></RestaurantFilterForm>
48-
<router-view style="padding-right: 10px; padding-left: 10px" :restaurants="restaurants"/> -->
4937

5038
</main>
5139

@@ -65,12 +53,6 @@ import { Button } from '@/components/ui/button'
6553
import Footer from '@/components/Footer.vue';
6654
import restaurantService from '@/api/restaurantService';
6755
import {
68-
NavigationMenu,
69-
NavigationMenuContent,
70-
NavigationMenuItem,
71-
NavigationMenuLink,
72-
NavigationMenuList,
73-
NavigationMenuTrigger,
7456
navigationMenuTriggerStyle,
7557
} from '@/components/ui/navigation-menu'
7658
@@ -132,7 +114,6 @@ a {
132114
133115
.sidebar {
134116
width: 250px; /* Adjust the width as needed */
135-
background-color: #f8f9fa; /* Sidebar background color */
136117
overflow-y: auto; /* Enable scrolling if content overflows */
137118
}
138119

src/App.vue.js

Lines changed: 0 additions & 231 deletions
This file was deleted.

src/components/FilterComponent.vue

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22

33
<form @submit.prevent="onSubmit">
4-
<div class="flex items-center space-x-4">
5-
<span class="text-lg">Filtrer par envie</span>
6-
<Button type="button" variant="outline" size="icon" @click="setContentCravings">
4+
<div class="flex items-center space-x-4 w-full mt-3.5">
5+
<span class="text-lg flex-1">Filtrer par envie</span>
6+
<Button type="button" variant="ghost" size="icon" @click="setContentCravings">
77
<ChevronDown class="w-4 h-4" />
88
</Button>
99
</div>
@@ -29,9 +29,10 @@
2929
</FormField>
3030
</ScrollArea>
3131
</div>
32-
<div class="flex items-center space-x-4">
33-
<span class="text-lg">Filtrer par quartiers</span>
34-
<Button type="button" variant="outline" size="icon" @click="setContentCities">
32+
<Separator class="my-4" />
33+
<div class="flex items-center space-x-4 w-full">
34+
<span class="text-lg flex-1">Filtrer par quartiers</span>
35+
<Button type="button" variant="ghost" size="icon" @click="setContentCities">
3536
<ChevronDown class="w-4 h-4" />
3637
</Button>
3738
</div>
@@ -57,9 +58,10 @@
5758
</FormField>
5859
</ScrollArea>
5960
</div>
60-
<div class="flex items-center space-x-4">
61-
<span class="text-lg">Filtrer par tags</span>
62-
<Button type="button" variant="outline" size="icon" @click="setContentTags">
61+
<Separator class="my-4" />
62+
<div class="flex items-center space-x-4 w-full">
63+
<span class="text-lg flex-1">Filtrer par tags</span>
64+
<Button type="button" variant="ghost" size="icon" @click="setContentTags">
6365
<ChevronDown class="w-4 h-4" />
6466
</Button>
6567
</div>
@@ -86,7 +88,10 @@
8688
</ScrollArea>
8789
</div>
8890

89-
<Button type="submit">Chercher</Button>
91+
<div class="flex justify-center">
92+
<Button class="mt-3.5" type="submit">Chercher</Button>
93+
</div>
94+
9095
</form>
9196

9297
</template>
@@ -182,8 +187,6 @@ const setContentTags = () => {
182187
<style>
183188
184189
185-
form div {
186-
margin-bottom: 10px;
187-
}
190+
188191
189192
</style>

src/components/Header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class=header>
3-
<h1 id="header_title">potam-app</h1>
3+
<h1 id="header_title">soft boiled egg club</h1>
44
<p>nos adresses pariennes préférées</p>
55
</div>
66
</template>

0 commit comments

Comments
 (0)