@@ -47,40 +47,44 @@ const onEnter = () => {
4747<template >
4848 <div
4949 :class =" [
50- 'col-12 md:col-6 flex p-0 card ',
51- props.column === 'left' ? 'md:justify-content- end' : '',
52- props.row === 'top' ? 'md:align- items-end' : 'md:align- items-start',
50+ 'card md:mt- col-span-2 flex justify-center p-0 not-last-of-type:border-b-1 not-last-of-type:border-b-gray-400 md:col-span-1 not-last-of-type:md:border-b-0 ',
51+ props.column === 'left' ? 'md:justify-end' : '',
52+ props.row === 'top' ? 'md:items-end' : 'md:items-start',
5353 ]"
5454 >
5555 <div
56- class =" card-inner md:mx-2 md:mb-2"
56+ class =" card-inner relative w-full md:mx-2 md:mb-2 md:w-[380px] md:border-1 md:border-gray-200 lg:w-[420px] "
5757 @click =" onClick"
5858 @mouseenter =" onEnter"
5959 @mouseleave =" onLeave"
6060 >
6161 <div >
6262 <nuxt-img
63+ class =" h-auto w-full"
6364 :src =" `/links/${props.id}.png`"
64- sizes =" sm:100vw md:360px lg:400px "
65+ sizes =" sm:100vw md:380px lg:420px "
6566 :alt =" props.alt"
6667 />
6768 </div >
6869 <div
69- class =" card-overlay text-white surface-900 px-4 py-2 absolute top-0 left-0 transition-ease-in-out transition-duration-500 "
70+ class =" card-overlay transition-ease-in-out transition-duration-500 absolute top-0 left-0 h-full bg-gray-900 px-6 py-3 text-white opacity-0 hover:opacity-100 "
7071 :class =" {
71- 'card-opaque ': isOpaque && isClick,
72- 'card-transparent ': !isOpaque && isClick,
72+ 'opacity-100! ': isOpaque && isClick,
73+ 'opacity-0! ': !isOpaque && isClick,
7374 }"
7475 >
75- <div class =" flex h-full flex-column justify-content- between" >
76+ <div class =" flex h-full flex-col justify-between text-base " >
7677 <div >
77- <h2 >{{ props.title }}</h2 >
78+ <h2 class = " my-4 text-3xl font-bold " >{{ props.title }}</h2 >
7879 <slot />
7980 </div >
8081 <div >
8182 <p >
82- <a :href =" props.link" class =" explicit-link" target =" _blank"
83- ><i class =" pi pi-external-link mr-1" /> Go to
83+ <a
84+ :href =" props.link"
85+ class =" font-normal text-white no-underline visited:text-white hover:text-white"
86+ target =" _blank"
87+ ><i class =" pi pi-external-link mr-1 text-xs" /> Go to
8488 {{ props.linkText ? props.linkText : props.link }}</a
8589 >
8690 </p >
@@ -90,62 +94,3 @@ const onEnter = () => {
9094 </div >
9195 </div >
9296</template >
93-
94- <style lang="postcss">
95- .card {
96- @media (max-width : 768 px ) {
97- justify-content : center;
98- }
99-
100- &:not (:last-of-type ) {
101- @media (max-width : 768 px ) {
102- border-bottom : #666666 1 px solid;
103- }
104- }
105-
106- & .card-inner {
107- position : relative;
108-
109- @media (min-width : 769 px ) {
110- border : #e0e0e0 1 px solid;
111- }
112-
113- &:hover .card-overlay {
114- opacity : 1 ;
115- }
116-
117- & .card-overlay {
118- opacity : 0 ;
119- width : calc (100 % - 3 rem );
120- height : calc (100 % - 1 rem );
121-
122- & a {
123- color : #ffffff ;
124- text-decoration : underline;
125- font-weight : bold;
126-
127- & .explicit-link {
128- text-decoration : none;
129- font-weight : normal;
130- }
131-
132- & i {
133- font-size : 0.8 rem ;
134- }
135-
136- &:hover {
137- color : #ffffff ;
138- }
139- }
140- }
141- }
142- }
143-
144- .card-opaque {
145- opacity : 1 !important ;
146- }
147-
148- .card-transparent {
149- opacity : 0 !important ;
150- }
151- </style >
0 commit comments