File tree 13 files changed +47019
-10307
lines changed
13 files changed +47019
-10307
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
3
<button
4
- class =" relative w-48 h-12 px-4 py-2 mt-4 font-bold text-white bg-blue-500 rounded hover:bg-blue-800"
4
+ class ="
5
+ relative
6
+ w-48
7
+ h-12
8
+ px-4
9
+ py-2
10
+ mt-4
11
+ font-bold
12
+ text-white
13
+ bg-blue-500
14
+ rounded
15
+ hover:bg-blue-800
16
+ "
5
17
:class =" { disabled: loading }"
6
18
@click =" addProductToCart(product)"
7
19
>
Original file line number Diff line number Diff line change 2
2
<div v-if =" categories" >
3
3
<section class =" container mx-auto bg-white" >
4
4
<div
5
- class =" grid gap-2 px-2 pt-2 pb-2 lg:px-0 xl:px-0 md:px-0 lg:grid-cols-4 sm:grid-cols-2 md:grid-cols-3 xs:grid-cols-3"
5
+ class ="
6
+ grid
7
+ gap-2
8
+ px-2
9
+ pt-2
10
+ pb-2
11
+ lg:px-0
12
+ xl:px-0
13
+ md:px-0
14
+ lg:grid-cols-4
15
+ sm:grid-cols-2
16
+ md:grid-cols-3
17
+ xs:grid-cols-3
18
+ "
6
19
>
7
20
<template v-for =" nodes in categories " >
8
21
<template v-for =" category in nodes " >
16
29
>
17
30
<div class =" p-6 cursor-pointer" >
18
31
<div
19
- class =" flex items-center justify-center w-full h-16 text-center border border-gray-300 rounded-lg shadow hover:shadow-outline"
32
+ class ="
33
+ flex
34
+ items-center
35
+ justify-center
36
+ w-full
37
+ h-16
38
+ text-center
39
+ border border-gray-300
40
+ rounded-lg
41
+ shadow
42
+ hover:shadow-outline
43
+ "
20
44
>
21
45
<p class =" text-lg" >
22
46
{{ category.name }}
Original file line number Diff line number Diff line change 4
4
<swiper-slide
5
5
><img alt =" Image slider slide #1" src =" ~assets/images/Hero.jpg" />
6
6
<div
7
- class =" flex flex-col items-start justify-center w-full mx-auto tracking-wide lg:w-1/2"
7
+ class ="
8
+ flex flex-col
9
+ items-start
10
+ justify-center
11
+ w-full
12
+ mx-auto
13
+ tracking-wide
14
+ lg:w-1/2
15
+ "
8
16
>
9
17
<span
10
- class =" w-full p-4 mt-4 text-center text-white bg-black text-md lg:text-2xl lg:-mt-64"
18
+ class ="
19
+ w-full
20
+ p-4
21
+ mt-4
22
+ text-center text-white
23
+ bg-black
24
+ text-md
25
+ lg:text-2xl lg:-mt-64
26
+ "
11
27
>
12
28
Modern Pillow Sample Set
13
29
</span >
16
32
<swiper-slide
17
33
><img alt =" Image slider slide #2" src =" ~assets/images/Hero2.jpg" />
18
34
<div
19
- class =" flex flex-col items-start justify-center w-full mx-auto tracking-wide lg:w-1/2"
35
+ class ="
36
+ flex flex-col
37
+ items-start
38
+ justify-center
39
+ w-full
40
+ mx-auto
41
+ tracking-wide
42
+ lg:w-1/2
43
+ "
20
44
>
21
45
<span
22
- class =" w-full p-4 mt-4 text-center text-white bg-black text-md lg:text-2xl lg:-mt-64"
46
+ class ="
47
+ w-full
48
+ p-4
49
+ mt-4
50
+ text-center text-white
51
+ bg-black
52
+ text-md
53
+ lg:text-2xl lg:-mt-64
54
+ "
23
55
>
24
56
Modern Interior Sample
25
57
</span >
Original file line number Diff line number Diff line change 22
22
<transition name =" cart" >
23
23
<div v-if =" cartLength" >
24
24
<span
25
- class =" absolute w-6 h-6 pb-2 ml-16 -mt-12 text-center text-white bg-black rounded-full lg:ml-14"
25
+ class ="
26
+ absolute
27
+ w-6
28
+ h-6
29
+ pb-2
30
+ ml-16
31
+ -mt-12
32
+ text-center text-white
33
+ bg-black
34
+ rounded-full
35
+ lg:ml-14
36
+ "
26
37
>
27
38
{{ cartLength }}
28
39
</span >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" container mx-auto mt-24" >
3
3
<footer
4
- class =" px-6 text-center bg-white border border-gray-300 rounded-lg shadow-lg"
4
+ class ="
5
+ px-6
6
+ text-center
7
+ bg-white
8
+ border border-gray-300
9
+ rounded-lg
10
+ shadow-lg
11
+ "
5
12
>
6
13
<div class =" p-6" >Copyright © ; {{ todayDate }} Daniel / w3bdesign</div >
7
14
</footer >
Original file line number Diff line number Diff line change 2
2
<div class =" relative" >
3
3
<div
4
4
v-if =" !firstRender"
5
- class =" fixed top-0 left-0 w-screen mt-40 bg-white z-100 h-96 animate__animated"
5
+ class ="
6
+ fixed
7
+ top-0
8
+ left-0
9
+ w-screen
10
+ mt-40
11
+ bg-white
12
+ z-100
13
+ h-96
14
+ animate__animated
15
+ "
6
16
:class =" {
7
17
animate__fadeInLeft: expandedMenu,
8
18
animate__fadeOutRight: !expandedMenu && !firstRender,
Original file line number Diff line number Diff line change 19
19
<div class =" hidden lg:w-1/12 lg:block" ></div >
20
20
<div
21
21
id =" nav-content"
22
- class =" hidden w-full mt-4 bg-black lg:w-8/12 lg:block lg:bg-white lg:mt-0 lg:text-right"
22
+ class ="
23
+ hidden
24
+ w-full
25
+ mt-4
26
+ bg-black
27
+ lg:w-8/12 lg:block lg:bg-white lg:mt-0 lg:text-right
28
+ "
23
29
aria-expanded =" false"
24
30
>
25
31
<div class =" px-6 lg:px-0 lg:pt-5 xl:pt-7" >
30
36
aria-labelledby =" block-main-menu"
31
37
>
32
38
<ul
33
- class =" items-center justify-end flex-1 pr-4 -mr-4 list-reset lg:flex"
39
+ class ="
40
+ items-center
41
+ justify-end
42
+ flex-1
43
+ pr-4
44
+ -mr-4
45
+ list-reset
46
+ lg:flex
47
+ "
34
48
>
35
49
<li
36
- class =" inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4"
50
+ class ="
51
+ inline-block
52
+ py-2
53
+ text-xl
54
+ font-semibold
55
+ no-underline
56
+ lg:text-base lg:px-4
57
+ "
37
58
>
38
59
<NuxtLink to =" /" >
39
60
<span
40
- class =" text-xl text-white no-underline lg:text-black is-active"
61
+ class ="
62
+ text-xl text-white
63
+ no-underline
64
+ lg:text-black
65
+ is-active
66
+ "
41
67
>
42
68
Home
43
69
</span >
44
70
</NuxtLink >
45
71
</li >
46
72
<li
47
- class =" inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4"
73
+ class ="
74
+ inline-block
75
+ py-2
76
+ text-xl
77
+ font-semibold
78
+ no-underline
79
+ lg:text-base lg:px-4
80
+ "
48
81
>
49
82
<NuxtLink to =" /products" >
50
83
<span
54
87
</NuxtLink >
55
88
</li >
56
89
<li
57
- class =" inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4"
90
+ class ="
91
+ inline-block
92
+ py-2
93
+ text-xl
94
+ font-semibold
95
+ no-underline
96
+ lg:text-base lg:px-4
97
+ "
58
98
>
59
99
<NuxtLink to =" /categories" >
60
100
<span
61
- class =" text-xl text-white no-underline lg:text-black is-active"
101
+ class ="
102
+ text-xl text-white
103
+ no-underline
104
+ lg:text-black
105
+ is-active
106
+ "
62
107
>Categories</span
63
108
>
64
109
</NuxtLink >
65
110
</li >
66
111
<li
67
- class =" inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4"
112
+ class ="
113
+ inline-block
114
+ py-2
115
+ text-xl
116
+ font-semibold
117
+ no-underline
118
+ lg:text-base lg:px-4
119
+ "
68
120
>
69
121
<NuxtLink to =" /search" >
70
122
<span
71
- class =" text-xl text-white no-underline lg:text-black is-active"
123
+ class ="
124
+ text-xl text-white
125
+ no-underline
126
+ lg:text-black
127
+ is-active
128
+ "
72
129
>Search</span
73
130
>
74
131
</NuxtLink >
75
132
</li >
76
133
<li
77
- class =" inline-block py-2 text-xl font-semibold no-underline lg:text-base lg:px-4"
134
+ class ="
135
+ inline-block
136
+ py-2
137
+ text-xl
138
+ font-semibold
139
+ no-underline
140
+ lg:text-base lg:px-4
141
+ "
78
142
>
79
143
<LayoutCart class =" -mr-4" />
80
144
</li >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div v-if =" !success" class =" flex justify-center" >
3
3
<button
4
- class =" relative w-48 h-12 px-4 py-2 mt-4 font-bold text-white bg-blue-500 rounded hover:bg-blue-800"
4
+ class ="
5
+ relative
6
+ w-48
7
+ h-12
8
+ px-4
9
+ py-2
10
+ mt-4
11
+ font-bold
12
+ text-white
13
+ bg-blue-500
14
+ rounded
15
+ hover:bg-blue-800
16
+ "
5
17
:class =" { disabled: loading }"
6
18
type =" submit"
7
19
>
Original file line number Diff line number Diff line change 17
17
>
18
18
<img
19
19
id =" product-image"
20
- class =" container mx-auto transition duration-500 ease-in-out transform cursor-pointer lg:w-64 xl:w-64 sm:p-4 hover:scale-110"
20
+ class ="
21
+ container
22
+ mx-auto
23
+ transition
24
+ duration-500
25
+ ease-in-out
26
+ transform
27
+ cursor-pointer
28
+ lg:w-64
29
+ xl:w-64
30
+ sm:p-4
31
+ hover:scale-110
32
+ "
21
33
:alt =" product.name"
22
34
:src =" productImage(product)"
23
35
/>
You can’t perform that action at this time.
0 commit comments