Tweaks to boat index styles
This commit is contained in:
BIN
src/assets/capri25.png
Normal file
BIN
src/assets/capri25.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
BIN
src/assets/j27.png
Normal file
BIN
src/assets/j27.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
@@ -1,47 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<q-card
|
<q-card v-for="boat in boats" :key="boat.id" flat>
|
||||||
v-for="boat in boats"
|
|
||||||
:key="boat.id"
|
|
||||||
flat
|
|
||||||
bordered
|
|
||||||
class="my-card"
|
|
||||||
:class="$q.dark.isActive ? 'bg-grey-9' : 'bg-grey-2'"
|
|
||||||
>
|
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<div class="row items-center no-wrap">
|
<q-img :src="boat.imgsrc" :fit="'scale-down'">
|
||||||
<div class="col">
|
<div class="row absolute-top">
|
||||||
<div class="text-h6">{{ boat.name }}</div>
|
<div class="col text-h5 text-left">{{ boat.name }}</div>
|
||||||
<div class="text-subtitle2">{{ boat.class }}</div>
|
<div class="col text-right">{{ boat.class }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
</q-img>
|
||||||
<div class="col-auto">
|
|
||||||
<q-btn color="grey-7" round flat icon="more_vert">
|
|
||||||
<q-menu cover auto-close>
|
|
||||||
<q-list>
|
|
||||||
<q-item clickable>
|
|
||||||
<q-item-section>Favourite</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
<q-item clickable>
|
|
||||||
<q-item-section>Report Problem</q-item-section>
|
|
||||||
</q-item>
|
|
||||||
</q-list>
|
|
||||||
</q-menu>
|
|
||||||
</q-btn>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</q-card-section>
|
|
||||||
|
|
||||||
<q-card-section>
|
|
||||||
<!-- {{ lorem }} -->
|
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<q-separator />
|
<q-separator />
|
||||||
|
|
||||||
<q-card-actions>
|
<q-card-actions align="evenly">
|
||||||
<q-btn>Book</q-btn>
|
<q-btn flat>Info</q-btn>
|
||||||
<q-btn>Info</q-btn>
|
<q-btn flat>Book</q-btn>
|
||||||
<q-btn>Check-Out</q-btn>
|
<q-btn flat>Check-Out</q-btn>
|
||||||
<q-btn>Check-In</q-btn>
|
<q-btn flat>Check-In</q-btn>
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</q-card>
|
</q-card>
|
||||||
</template>
|
</template>
|
||||||
@@ -53,3 +27,9 @@ defineProps({
|
|||||||
boats: Array<Boat>,
|
boats: Array<Boat>,
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="sass" scoped>
|
||||||
|
.my-card
|
||||||
|
width: 100%
|
||||||
|
max-width: 400px
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ export interface Boat {
|
|||||||
name: string;
|
name: string;
|
||||||
class: string;
|
class: string;
|
||||||
year: number;
|
year: number;
|
||||||
|
imgsrc: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface test {
|
export interface test {
|
||||||
|
|||||||
@@ -14,18 +14,21 @@ const boats = ref([
|
|||||||
name: 'ProjectX',
|
name: 'ProjectX',
|
||||||
class: 'J/27',
|
class: 'J/27',
|
||||||
year: 1981,
|
year: 1981,
|
||||||
|
imgsrc: '/src/assets/j27.png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 2,
|
id: 2,
|
||||||
name: 'Take5',
|
name: 'Take5',
|
||||||
class: 'J/27',
|
class: 'J/27',
|
||||||
year: 1985,
|
year: 1985,
|
||||||
|
imgsrc: '/src/assets/j27.png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
name: 'WeeBeestie',
|
name: 'WeeBeestie',
|
||||||
class: 'Capri 25',
|
class: 'Capri 25',
|
||||||
year: 1989,
|
year: 1989,
|
||||||
|
imgsrc: '/src/assets/capri25.png',
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
export const links = [
|
export const links = [
|
||||||
|
{
|
||||||
|
name: 'Home',
|
||||||
|
to: '/',
|
||||||
|
icon: 'home',
|
||||||
|
front_links: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Profile',
|
name: 'Profile',
|
||||||
to: 'profile',
|
to: 'profile',
|
||||||
|
|||||||
Reference in New Issue
Block a user