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

feat: add service tab #10

Merged
merged 1 commit into from
Jan 8, 2022
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
1 change: 1 addition & 0 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ declare module 'vue' {
Counter: typeof import('./components/Counter.vue')['default']
CProduct: typeof import('./components/CProduct.vue')['default']
CSearch: typeof import('./components/CSearch.vue')['default']
CService: typeof import('./components/CService.vue')['default']
CSwipper: typeof import('./components/CSwipper.vue')['default']
LMenu: typeof import('./components/LMenu.vue')['default']
README: typeof import('./components/README.md')['default']
Expand Down
4 changes: 2 additions & 2 deletions src/components/CFooter.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="footer flex">
<div class="left w-1/3 p-15 text-left bg-gray-100">
<div class="left w-1/3 p-16 text-left bg-gray-100">
<CBrand class="text-black py-4" />
<p class="py-4">
We are always committed to serving you with the best services. Connect to receive more offers immediately.
Expand All @@ -22,7 +22,7 @@
<p>Copyright © <a href="">galaxy</a>. All Rights Reserved</p>
</div>
</div>
<div class="right grid grid-cols-4 w-2/3 p-8 text-left">
<div class="right grid grid-cols-4 w-2/3 py-15 px-8 text-left">
<div class="information col-span-1">
<h3>INFORMATION</h3>
<span class="absolute bg-orange-500 w-15 h-0.5" />
Expand Down
76 changes: 76 additions & 0 deletions src/components/CService.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<template>
<div class="service-container text-white bg-black grid grid-cols-4 justify-around items-center text-left">
<div class="shipping">
<img
class="" src="/img/icon/2.png"
alt="icon"
>
<div class="">
<h4 class="">
Free Shipping
</h4>
<p class="">
On all orders over $75.00
</p>
</div>
</div>
<div class="return">
<img
class="" src="/img/icon/3.png"
alt="icon"
>
<div class="">
<h4 class="">
Free Returns
</h4>
<p class="">
Returns are free within 9 days
</p>
</div>
</div>
<div class="support">
<img
class="" src="/img/icon/5.png"
alt="icon"
>
<div class="">
<h4 class="">
Support 24/7
</h4>
<p class="">
Contact us 24 hours a day
</p>
</div>
</div>
<div class="secure">
<img
class="" src="/img/icon/4.png"
alt="icon"
>
<div class="">
<h4 class="">
100% Payment Secure
</h4>
<p class="">
Your payment are safe with us.
</p>
</div>
</div>
</div>
</template>

<style scoped>
.shipping, .return, .support, .secure{
display: flex;
justify-content: center;
align-items: center;
padding: 4rem;
}
.shipping > div, .return > div, .support > div, .secure > div{
display: grid;
justify-content: start;
align-items: center;
margin-left: 1.5rem;
white-space: nowrap;
}
</style>
1 change: 1 addition & 0 deletions src/layouts/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<div class="mt-5 mx-auto text-center opacity-25 text-sm">
[Home Layout]
</div>
<CService />
<CFooter />
</main>
</template>