MOOOORE STUFF
This commit is contained in:
1 parent
8d280d0a3e
commit
8b4086d52e
23 files changed
+2935
No files matched your search
@@ -0,0 +1,112 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>Search.ch ordered from wish.com</h1>
|
||||
<section>
|
||||
<address-entry
|
||||
v-for="{ name, address, link, phone, pic } in restaurants"
|
||||
:key="name"
|
||||
:name="name"
|
||||
:address="address"
|
||||
:link="link"
|
||||
:phone="phone"
|
||||
:pic="pic"
|
||||
></address-entry>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import AddressEntry from "@/components/AddressEntry.vue";
|
||||
export default {
|
||||
components: {
|
||||
AddressEntry,
|
||||
},
|
||||
data: () => ({
|
||||
restaurants: [
|
||||
{
|
||||
name: "Restaurant Falken",
|
||||
address: "St. Martinsplatz 9, 7000 Chur",
|
||||
link: "https://tel.search.ch/chur/st-martinsplatz-9/restaurant-falken",
|
||||
phone: "081 250 47 05",
|
||||
pic: "https://tel.search.ch/media/b9405d0016a99e1b03793f0f330e3bd72632fd60.jpg/l/80x80/29.06.jpg",
|
||||
},
|
||||
{
|
||||
name: "dieci Pizza Kurier Chur",
|
||||
address: "Ringstrasse 37, 7000 Chur",
|
||||
link: "https://tel.search.ch/chur/ringstrasse-37/dieci-pizza-kurier-chur",
|
||||
phone: "081 286 66 66",
|
||||
pic: "https://tel.search.ch/media/5093f5e56b098c7fa956a48ac0f6392d4737e7ec.jpg/l/80x80/image-service.jpg",
|
||||
},
|
||||
],
|
||||
}),
|
||||
methods: {},
|
||||
computed: {},
|
||||
watch: {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: "Jost", sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
header {
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
|
||||
margin: 3rem auto;
|
||||
border-radius: 10px;
|
||||
padding: 1rem;
|
||||
background-color: #58004d;
|
||||
color: white;
|
||||
text-align: center;
|
||||
width: 90%;
|
||||
max-width: 40rem;
|
||||
}
|
||||
|
||||
#app ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#app li {
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
|
||||
margin: 1rem auto;
|
||||
border-radius: 10px;
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
width: 90%;
|
||||
max-width: 40rem;
|
||||
}
|
||||
|
||||
#app h2 {
|
||||
font-size: 2rem;
|
||||
border-bottom: 4px solid #ccc;
|
||||
color: #58004d;
|
||||
margin: 0 0 1rem 0;
|
||||
}
|
||||
|
||||
#app button {
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
border: 1px solid #ff0077;
|
||||
background-color: #ff0077;
|
||||
color: white;
|
||||
padding: 0.05rem 1rem;
|
||||
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.26);
|
||||
}
|
||||
|
||||
#app button:hover,
|
||||
#app button:active {
|
||||
background-color: #ec3169;
|
||||
border-color: #ec3169;
|
||||
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.26);
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<section class="d-flex">
|
||||
<div class="pic-container">
|
||||
<img :src="pic" />
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<a :href="link" target="_blank">{{ name }}</a>
|
||||
</div>
|
||||
<div>
|
||||
{{ address }}
|
||||
</div>
|
||||
<button @click="call()">
|
||||
{{ phone }}
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
name: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
address: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
link: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
pic: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
phone: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
call() {
|
||||
alert(`Calling ${this.phone}`);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
a {
|
||||
font-size: 200%;
|
||||
}
|
||||
img {
|
||||
height: 100%;
|
||||
}
|
||||
.d-flex {
|
||||
display: flex;
|
||||
}
|
||||
.pic-container {
|
||||
margin-right: 1rem;
|
||||
width: 7rem;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,5 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
|
||||
const app = createApp(App);
|
||||
app.mount('#app');
|
||||
Reference in new issue
Block a user