diff --git a/src/components/DestinationInfoCard.vue b/src/components/DestinationInfoCard.vue index c453c03..085345b 100644 --- a/src/components/DestinationInfoCard.vue +++ b/src/components/DestinationInfoCard.vue @@ -1,14 +1,19 @@ @@ -65,6 +205,7 @@ import findLocation from '../../icons/Material/find-location.svg'; import clock from '../../icons/Material/clock.svg'; import check from '../../icons/Material/check-round.svg'; +import DestinationInfoCard from '@/components/DestinationInfoCard.vue'; const destination = { title: "อนุสาวรีย์ชัยสมรภูมิ", subTitle: "ราชเทวี , กรุงเทพมหานคร" @@ -97,14 +238,28 @@ export default { data() { return { showPopup: true, + showRoute: false, }; }, + computed: { + cardHeight() { + return this.showRoute ? '45vh' : '60vh'; + }, + }, methods: { closePopup() { this.showPopup = false; this.onClose(); }, + viewRoute() { + this.showRoute = true; + }, + viewPopup(){ + this.showPopup = true; + this.showRoute = false; + } }, + }; @@ -145,5 +300,80 @@ export default { width: 100%; height: 45vh; } + +.title-text +{ + color: rgba(0, 0, 0, 1); + font-style: normal; + font-size: 24px; + font-weight: 700; + line-height: 1.2; + letter-spacing: 0px; + text-decoration: none; + text-transform: none; +} + +.sutitle-text{ + color: rgba(155, 155, 155, 1); + font-style: normal; + font-size: 16px; + font-weight: 400; + line-height: 1.2; + letter-spacing: 0px; + text-decoration: none; + text-transform: none; +} + +.icon-walk { + background-color: #000000; + -webkit-mask: url(icons/Adwaita/walk.svg) no-repeat center; + mask: url(icons/Adwaita/walk.svg) no-repeat center; +} +.icon-wheelchair { + background-color: #000000; + -webkit-mask: url(icons/Adwaita/wheelchair.svg) no-repeat center; + mask: url(icons/Adwaita/wheelchair.svg) no-repeat center; +} +.icon-plus { + background-color: #000000; + -webkit-mask: url(icons/Adwaita/plus.svg) no-repeat center; + mask: url(icons/Adwaita/plus.svg) no-repeat center; +} +.icon-vertical-arrows { + background-color: #000000; + -webkit-mask: url(icons/Adwaita/vertical-arrows.svg) no-repeat center; + mask: url(icons/Adwaita/vertical-arrows.svg) no-repeat center; +} +.icon-flag { + background-color: #000000; + -webkit-mask: url(icons/Adwaita/flag.svg) no-repeat center; + mask: url(icons/Adwaita/flag.svg) no-repeat center; +} + +.btn-toggle +{ + border-radius: 10px; + background-color: rgba(230, 230, 230, 1); +} + +.btn-toggle .btn +{ + border-radius: 0px; + background-color: rgba(230, 230, 230, 1); +} + +.destination-card .v-input__control +{ + + max-height: 6vh; + max-width: 50vw; +} + +.destination-card .v-field__input +{ + /* font-size: 14px; */ + padding: 0; +} + \ No newline at end of file diff --git a/src/components/NavigationMapCard.vue b/src/components/NavigationMapCard.vue new file mode 100644 index 0000000..860c01c --- /dev/null +++ b/src/components/NavigationMapCard.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/src/iconsets/adwaita.ts b/src/iconsets/adwaita.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/views/Home.vue b/src/views/Home.vue index d6d0e65..71bf7c1 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -5,12 +5,6 @@ class="router-view" /> - - { const lon = parseFloat(result.lon); center.value = [lon, lat]; showSearchBar.value = false; + popupData.value = result; }; const performSearch = async () => { diff --git a/src/views/Login.vue b/src/views/Login.vue index 8fc7346..503f3ef 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -136,7 +136,7 @@ export default { client_id: import.meta.env.VITE_CLIENT_ID, scope: "email profile openid", - redirect_uri: "http://localhost:5000/api/users/googleAuth/callback", + redirect_uri: "https://little-lines-backend.techtransthai.org/api/users/googleAuth/callback", callback: response => { if (response.code) { this.sendCodeToBackend(response.code); @@ -151,7 +151,7 @@ export default { const headers = { Authorization: code }; - const response = await axios.post("http://localhost:5000/api/users/googleAuth", null, { headers }); + const response = await axios.post("https://little-lines-backend.techtransthai.org/api/users/googleAuth", null, { headers }); const userDetails = response.data; console.log("User Details:", userDetails); this.userDetails = userDetails; @@ -190,4 +190,4 @@ export default { justify-content: center; align-content: center; } - \ No newline at end of file + diff --git a/src/views/Register.vue b/src/views/Register.vue index 64057e3..8ce68be 100644 --- a/src/views/Register.vue +++ b/src/views/Register.vue @@ -13,8 +13,8 @@
@@ -98,7 +98,7 @@ import eyeNotLooking from '../../icons/Material/eye-not-looking.svg'; return { pageTitle: 'สมัครสมาชิก', input: { - username: '', + email: '', password: '', passwordConfirm:'' } @@ -114,9 +114,9 @@ import eyeNotLooking from '../../icons/Material/eye-not-looking.svg'; 'Content-Type': 'application/json', }, body: JSON.stringify({ - username: this.input.username, + username: "temp", password: this.input.password, - email: "asdf", + email: this.input.email, isGoogleAccount: false }) }) @@ -137,7 +137,7 @@ import eyeNotLooking from '../../icons/Material/eye-not-looking.svg'; }) console.log("fisnished fetch"); } else { - console.log('Username and Password cannot be empty'); + console.log('Email and Password cannot be empty'); } } }, @@ -148,7 +148,7 @@ import eyeNotLooking from '../../icons/Material/eye-not-looking.svg'; .user { background-color: aqua; } -.username, .password { +.email, .password { margin-bottom: -21px; } .check {