Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented static UI for Catalog page(#1uvvbc4) #32

Merged
merged 2 commits into from
Dec 27, 2021
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
6 changes: 6 additions & 0 deletions changelogs/unreleased/-1uvvbc4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Implemented static UI for Catalog page(#1uvvbc4)
ticket_id: "#1uvvbc4"
merge_request: 32
author: Utkarshkaraiya
type: added
4 changes: 4 additions & 0 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ const routes: Array<RouteRecordRaw> = [
{
path: 'orders',
component: () => import('@/views/Orders.vue')
},
{
path: 'catalog',
component: () => import('@/views/Catalog.vue')
},
{
path: 'settings',
Expand Down
46 changes: 41 additions & 5 deletions src/views/Catalog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,62 @@
<ion-toolbar>
<ion-title>{{ $t("Catalog") }}</ion-title>
</ion-toolbar>
</ion-header>

</ion-header>
<ion-content :fullscreen="true">

<ion-searchbar/>
<main>
<ion-card v-for="items in 10" :key="items">
<Image/>
<ion-item lines="none">
<ion-label>
<p>Brand</p>
Parent name
<p>$Sale price</p>
</ion-label>
</ion-item>
</ion-card>
</main>
</ion-content>
</ion-page>
</template>

<script lang="ts">
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/vue';
import {
IonCard,
IonContent,
IonHeader,
IonItem,
IonLabel,
IonPage,
IonSearchbar,
IonTitle,
IonToolbar,
} from '@ionic/vue';
import { defineComponent } from 'vue';
import Image from "../components/Image.vue"

export default defineComponent({
name: 'Catalog',
components: {
Image,
IonCard,
IonContent,
IonHeader,
IonItem,
IonLabel,
IonPage,
IonSearchbar,
IonTitle,
IonToolbar
IonToolbar,
}
});
</script>
<style scoped>
main{
display: grid;
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
align-items: start;

}

</style>
10 changes: 8 additions & 2 deletions src/views/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<ion-page>
<ion-tabs>
<ion-tab-bar slot="bottom">
<ion-tab-button tab="catalog" href="/tabs/catalog">
<ion-icon :icon="shirtOutline" />
<ion-label>{{ $t("Catalog") }}</ion-label>
</ion-tab-button>
<ion-tab-button tab="orders" href="/tabs/orders">
<ion-icon :icon="infiniteOutline" />
<ion-label>{{ $t("Orders") }}</ion-label>
Expand All @@ -21,7 +25,8 @@ import { useRoute } from "vue-router";
import { IonIcon, IonLabel, IonPage, IonTabBar, IonTabButton, IonTabs } from "@ionic/vue";
import {
infiniteOutline,
settings
settings,
shirtOutline,
} from "ionicons/icons";

export default {
Expand All @@ -31,7 +36,8 @@ export default {
const route = useRoute();
return {
infiniteOutline,
settings
settings,
shirtOutline
};
}
};
Expand Down