1
- <div
2
- class =" my-12 mx-auto relative grid bg-clip-border rounded-xl bg-white text-gray-700 shadow-md w-full max-w-[26rem] sm:max-w-[34rem] md:max-w-[42rem] lg:max-w-[56rem] grid-cols-2 md:grid-cols-4" >
1
+ <div class =" mx-auto max-w-[25rem] sm:max-w-[38rem] md:max-w-[42rem] lg:max-w-[56rem] my-12 md:mx-auto grid bg-clip-border rounded-xl bg-white text-gray-700 shadow-md w-full grid-cols-2 lg:grid-cols-4" >
3
2
4
- <div
5
- class =" col-span-2 justify-self-auto relative m-0 overflow-hidden text-gray-700 bg-white rounded-r-none bg-clip-border rounded-xl shrink-0" >
3
+ <div class =" rounded-none lg:rounded-r-none md:h-[364px] col-span-2 justify-self-auto relative m-0 overflow-hidden bg-clip-border lg:rounded-xl shrink-0" >
6
4
7
5
<img srcset =" {{ img_url feature_image size =" s" }} 300w, {{ img_url feature_image size =" m" }} 600w, {{ img_url
8
6
feature_image size =" l" }} 1000w, {{ img_url feature_image size =" xl" }} 2000w"
11
9
12
10
</div >
13
11
14
- <div class =" p-6 col-span-2 md :col-start-3 md :col-end-5" >
12
+ <div class =" p-6 col-span-2 flex flex-col justify-center lg :col-start-3 lg :col-end-5 " >
15
13
16
- <div class =" flex flex-row justify-between" >
14
+ <div class =" flex row-span-2 flex-row justify-between" >
17
15
18
- < h6
19
- class = " block mb-4 font-sans text-base antialiased font-semibold leading-relaxed tracking-normal text-gray-700 uppercase " >
20
- {{ tags }}
21
- </ h6 >
16
+ {{ #if primary_tag }}
17
+ < a href = " {{ url }} "
18
+ class = " block mb-4 font-sans text-base antialiased font-semibold leading-relaxed tracking-normal text-gray-700 uppercase " > {{ primary_tag.name }} </ a >
19
+ {{ /if }}
22
20
23
21
{{ #unless access }}
22
+
24
23
{{ #has visibility =" members" }}
25
24
<h6
26
25
class =" block mb-4 font-sans text-base antialiased font-semibold leading-relaxed tracking-normal text-gray-700 uppercase" >
32
31
Paid Members only
33
32
</h6 >
34
33
{{ /has }}
34
+
35
35
{{ /unless }}
36
36
37
37
</div >
38
38
39
- <h4 class =" block mb-2 font-sans text-2xl antialiased font-semibold leading-snug tracking-normal text-blue-gray-900" >
40
- {{ title }}
41
- </h4 >
42
- <p class =" block mb-8 font-sans text-base antialiased font-normal leading-relaxed text-gray-700" >
43
- {{ excerpt words =" 100" }}
44
- </p >
39
+ <div class =" flex row-span-3 flex-col" >
40
+ <h4 class =" mb-2 font-sans text-2xl antialiased font-semibold leading-snug tracking-normal text-blue-gray-900" >
41
+ {{ title }}
42
+ </h4 >
43
+
44
+ <p class =" mb-8 font-sans text-base antialiased font-normal leading-relaxed text-gray-700" >
45
+ {{ excerpt words =" 30" }}
46
+ </p >
47
+ </div >
45
48
46
- <div class =" flex flex-row justify-between items-center" >
49
+ <div class =" flex row-span-4 flex-row justify-between items-center" >
47
50
51
+ {{!-- author for large screen --}}
48
52
<div class =" hidden sm:flex items-center space-x-4" >
53
+
49
54
<img src =" {{ primary_author.profile_image }} " alt =" {{ primary_author.name }} "
50
55
class =" w-10 h-10 rounded-full dark:bg-gray-500" />
51
- <div >
52
-
53
- <a href =" {{ primary_author.url }} " >
56
+
57
+ <div class =" flex flex-col justify-center items-center" >
58
+
59
+ <a class =" w-full" href =" {{ primary_author.url }} " >
54
60
<h3 class =" text-sm font-medium" >{{ primary_author.name }} </h3 >
55
61
</a >
56
62
57
- <time datetime =" {{ date format =' YYYY-MM-DD' }} " class =" text-sm dark:text-gray-400" >{{ date format =" DD MMMM
58
- YYYY" }} </time >
63
+ <time datetime =" {{ date format =' YYYY-MM-DD' }} " class =" text-sm dark:text-gray-400" >
64
+ {{ date format =" DD MMMM YYYY" }}
65
+ </time >
66
+
59
67
</div >
60
68
69
+
61
70
</div >
62
71
72
+ {{!-- author for small --}}
63
73
<a class =" block sm:hidden" href =" {{ primary_author.url }} " >
64
74
<h3 class =" text-sm font-medium" >{{ primary_author.name }} </h3 >
65
75
</a >
66
76
67
- <a href =" {{ url }} " class =" inline-block " >
77
+ <a href =" {{ url }} " class =" flex items-center gap-2 px-2.5 py-1 font-sans text-xs font-bold text-center text-gray-900 uppercase align-middle transition-all rounded-lg select-none disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none hover:bg-gray-900/10 active:bg-gray-900/20 " >
68
78
69
- <button
70
- class =" flex items-center gap-2 px-6 py-3 font-sans text-xs font-bold text-center text-gray-900 uppercase align-middle transition-all rounded-lg select-none disabled:opacity-50 disabled:shadow-none disabled:pointer-events-none hover:bg-gray-900/10 active:bg-gray-900/20"
71
- type =" button" >
72
- Learn More<svg xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" stroke =" currentColor"
73
- stroke-width =" 2" class =" w-4 h-4" >
79
+ Learn More
80
+
81
+ <svg xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" stroke =" currentColor" stroke-width =" 2"
82
+ class =" w-4 h-4" >
74
83
<path stroke-linecap =" round" stroke-linejoin =" round" d =" M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3" ></path >
75
84
</svg >
76
- </button >
77
85
78
86
</a >
87
+
79
88
</div >
80
89
81
90
</div >
91
+
82
92
</div >
0 commit comments