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

fix layout for component | JIRA: PT-97 #50

Merged
merged 4 commits into from
Jun 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix layout for component | JIRA: PT-97
  • Loading branch information
LeThanhPhongLTV committed Jun 1, 2022
commit 6ad7411b49a6c098bfc98548c7745a78239532b5
2 changes: 1 addition & 1 deletion src/layouts/default-layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
</div>
<router-view v-slot="{ Component }">
<div class="h-19 bg-primary-blue px-4 sm:px-7.5 md:px-8">
<component :is="Component" />
<component :is="Component" class="pb-2.5" />
</div>
</router-view>
</div>
Expand Down
52 changes: 24 additions & 28 deletions src/modules/cards/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="container mx-auto py-4">
<div class="grid lg:grid-cols-12 md:grid-cols-6 sm:grid-cols-3 gap-6">
<div class="col-span-3">
<el-card class="box-card relative flex flex-col px-2">
<el-card class="relative flex flex-col px-2">
<div class="flex flex-wrap">
<div class="basis-0 grow">
<div class="card-header">
Expand All @@ -27,7 +27,7 @@
</el-card>
</div>
<div class="col-span-3">
<el-card class="box-card relative flex flex-col px-2">
<el-card class="relative flex flex-col px-2">
<div class="flex flex-wrap">
<div class="basis-0 grow">
<div class="card-header">
Expand All @@ -36,7 +36,7 @@
<span class="text-lg text-indigo-900 font-bold mb-0">2,356</span>
</div>
<font-awesome-icon
class="text-center inline-flex items-center justify-center rounded-full p-3.5 text-white bg-gradient-to-r from-orange-500 to-orange-200"
class="text-center inline-flex items-center justify-center rounded-full p-3 text-white bg-gradient-to-r from-orange-500 to-orange-200"
:icon="['fas', 'chart-pie']"
size="lg"
/>
Expand All @@ -51,7 +51,7 @@
</el-card>
</div>
<div class="col-span-3">
<el-card class="box-card relative flex flex-col px-2">
<el-card class="relative flex flex-col px-2">
<div class="flex flex-wrap">
<div class="basis-0 grow">
<div class="card-header">
Expand All @@ -75,7 +75,7 @@
</el-card>
</div>
<div class="col-span-3">
<el-card class="box-card relative flex flex-col px-2">
<el-card class="relative flex flex-col px-2">
<div class="flex flex-wrap">
<div class="basis-0 grow">
<div class="card-header">
Expand Down Expand Up @@ -104,7 +104,7 @@
<div class="container mx-auto py-4">
<div class="grid lg:grid-cols-12 md:grid-cols-4 sm:grid-cols-4 gap-8">
<div class="col-span-4">
<el-card class="box-card" :body-style="{ padding: '0px' }">
<el-card class="" :body-style="{ padding: '0px' }">
<img alt="..." src="@/assets/images/window-purple-image.jpg" />
<div class="text-slate-400 p-4 border border-white hover:border-b-slate-200">
Cras justo odio
Expand Down Expand Up @@ -132,7 +132,7 @@
</el-card>

<div class="pt-8">
<el-card class="box-card">
<el-card class="">
<div class="card-header py-2">
<h5 class="text-xl font-medium text-blue-800">Card title</h5>
</div>
Expand All @@ -150,10 +150,7 @@
</div>

<div class="pt-8">
<el-card
class="box-card text-center"
:body-style="{ padding: '0px', position: 'relative' }"
>
<el-card class="text-center" :body-style="{ padding: '0px', position: 'relative' }">
<img alt="..." src="@/assets/images/throne.jpg" />
<div class="justify-center">
<el-link :underline="false" class="card-avatar-profile">
Expand All @@ -169,12 +166,12 @@
<div class="text-center border-0 pt-8 md:py-4 pb-0 card-header">
<div class="flex justify-between">
<div class="ml-4 z-0">
<el-button class="bg-cyan-400 text-white shadow-lg" size="small"
>Connect</el-button
>
<el-button class="shadow-lg w-16" size="small" type="info">Connect</el-button>
</div>
<div class="mr-4 z-0">
<el-button class="shadow-lg" size="small" type="info">Message</el-button>
<el-button class="shadow-lg w-16" size="small" type="default"
>Message</el-button
>
</div>
</div>
</div>
Expand Down Expand Up @@ -224,7 +221,7 @@
</div>

<div class="col-span-4">
<el-card class="box-card">
<el-card class="">
<template #header>
<div class="card-header">
<h5 class="text-xl font-medium text-blue-800">Card title</h5>
Expand Down Expand Up @@ -273,7 +270,7 @@
</div>

<div class="pt-8">
<el-card class="box-card text-center">
<el-card class="text-center">
<el-link :underline="false">
<el-avatar :size="150" src="@/assets/images/tyrion_lannister.jpg" />
</el-link>
Expand Down Expand Up @@ -313,15 +310,14 @@
</div>

<div class="pt-8">
<el-card class="box-card" :body-style="{ padding: '0px' }">
<el-card class="" :body-style="{ padding: '0px' }">
<img alt="..." src="@/assets/images/man_draw.jpg" />
<div class="p-4">
<div class="py-4 px-6">
<div class="text-xl font-semibold py-2 text-indigo-900">Get started with Argon</div>
<div class="font-thin text-xs text-slate-500">
by <el-link class="font-thin text-xs" :underline="false">John Snow</el-link> on
Oct 29th at 10:23 AM
<div class="font-normal text-80 text-slate-500">
by John Snow on Oct 29th at 10:23 AM
</div>
<p class="mt-4 text-slate-500 py-4">
<p class="mt-4 text-slate-500 py-3.5">
Argon is a great free UI package based on Bootstrap 4 that includes the most
important components and features.
</p>
Expand All @@ -335,7 +331,7 @@
</div>

<div class="pt-8">
<el-card class="box-card" :body-style="{ padding: '0px' }">
<el-card class="" :body-style="{ padding: '0px' }">
<div class="text-white p-4 bg-gradient-to-r from-slate-800 to-indigo-900">
<div class="py-3">
<span class="text-xl font-medium">Testimonial</span>
Expand All @@ -360,7 +356,7 @@
<div class="col-span-4">
<el-card
:body-style="{ padding: '0px' }"
class="box-card text-center bg-gradient-to-r from-emerald-500 to-emerald-300"
class="text-center bg-gradient-to-r from-emerald-500 to-emerald-300"
>
<template #header>
<div class="card-header">
Expand Down Expand Up @@ -438,7 +434,7 @@
</el-card>

<div class="pt-8">
<el-card class="box-card items-center">
<el-card class="items-center">
<template #header>
<div class="card-header flex justify-between py-2">
<h5 class="text-xl font-medium text-blue-800">Card title</h5>
Expand All @@ -461,7 +457,7 @@
</div>

<div class="pt-8">
<el-card class="box-card" :body-style="{ padding: '0px', position: 'relative' }">
<el-card class="" :body-style="{ padding: '0px', position: 'relative' }">
<img class="" alt="..." src="@/assets/images/window-purple-image.jpg" />
<div
class="absolute text-white p-3 inset-y-0 left-0 flex items-center justify-center"
Expand All @@ -485,7 +481,7 @@
</div>

<div class="pt-8">
<el-card :body-style="{ padding: '0px' }" class="box-card text-center">
<el-card :body-style="{ padding: '0px' }" class="text-center">
<template #header>
<div class="card-header">
<h5 class="font-bold text-indigo-500 py-4">BRAVO PACK</h5>
Expand Down
28 changes: 15 additions & 13 deletions src/modules/icons/views/index.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<template>
<div class="card-typography w-full md:w-full lg:w-2/3 mx-auto">
<div class="card-header p-5">
<h3 class="text-lg">Icons</h3>
</div>
<div class="p-5">
<div class="grid md:grid-cols-2 md:gap-x-7 lg:grid-cols-4 lg:gap-x-7">
<div class="w-full overflow-hidden p-0.5" v-for="(icon, key) in icons" :key="key">
<el-button>
<el-icon>
<component :is="icon.icon" />
</el-icon>
<span>{{ icon.name }}</span>
</el-button>
<div class="w-full md:w-full lg:w-2/3 mx-auto">
<div class="card-typography">
<div class="card-header p-5">
<h3 class="text-lg">Icons</h3>
</div>
<div class="p-5">
<div class="grid md:grid-cols-2 md:gap-x-7 lg:grid-cols-4 lg:gap-x-7">
<div class="w-full overflow-hidden p-0.5" v-for="(icon, key) in icons" :key="key">
<el-button>
<el-icon>
<component :is="icon.icon" />
</el-icon>
<span>{{ icon.name }}</span>
</el-button>
</div>
</div>
</div>
</div>
Expand Down