Skip to content

Commit c404cef

Browse files
committed
Tweak css
1 parent 9b38e37 commit c404cef

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/app/(frontend)/[locale]/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ function imageBlock(
9797
</figure>
9898
</div>
9999
<figure
100-
className={`flex py-20 lg:hidden justify-center gap-y-16 grow w-full`}
100+
className={`flex py-25 lg:hidden justify-center gap-y-16 grow w-full ${overflowMobile ? '' : 'px-8'}`}
101101
style={{
102102
flexDirection: flexDirectionMobile,
103103
}}
104104
>
105105
<ImageSkeleton
106106
image={imageFile}
107-
className={`shrink ${overflowMobile ? '' : 'max-w-5/6 mx-auto max-h-1/2'}`}
107+
className="shrink"
108108
sizes={overflowMobile ? '100vw' : '90vw'}
109109
/>
110110
{image.description && descPosMobile && (
@@ -126,7 +126,7 @@ function imageBlock(
126126
function aboutUsBlock(message: Extract<MainPageImageType, { blockType: 'aboutUs' }>) {
127127
return (
128128
<figure
129-
className="relative lg:h-svh w-full flex flex-col gap-x-20 gap-y-10 py-10 lg:py-0 lg:flex-row items-center justify-center px-8 lg:px-0"
129+
className="relative lg:h-svh w-full flex flex-col gap-x-20 gap-y-10 py-25 lg:py-0 lg:flex-row items-center justify-center px-8 lg:px-0"
130130
id="aboutUs"
131131
>
132132
<Image
@@ -216,7 +216,7 @@ export default async function MainPage({ params }: Props) {
216216
return (
217217
<div
218218
id="welcome"
219-
className="header-screen flex flex-col lg:flex-row [&_figcaption]:flex [&_figcaption]:items-center [&_figcaption]:justify-center [&_figure]:pb-0! [&>div]:px-0! justify-stretch items-center grow lg:px-10 mb-20 lg:mb-0"
219+
className="header-screen flex flex-col lg:flex-row [&_figcaption]:flex [&_figcaption]:items-center [&_figcaption]:justify-center [&_figure]:pb-0! [&>div]:px-0! justify-stretch items-center grow lg:px-10 lg:mb-0"
220220
key={image.id}
221221
style={{ backgroundColor: image.bgColor }}
222222
>
@@ -255,7 +255,7 @@ export default async function MainPage({ params }: Props) {
255255
<div
256256
style={{ backgroundColor: image.bgColor }}
257257
key={image.id}
258-
className={`${image.blockType !== 'navigation' ? 'min-h-svh' : ''} flex items-center`}
258+
className={`${image.blockType !== 'navigation' ? 'lg:min-h-svh' : ''} flex items-center`}
259259
>
260260
{image.blockType === 'image' && imageBlock(image)}
261261
{image.blockType === 'aboutUs' && aboutUsBlock(image)}

src/components/carousel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function Carousel({ projects }: Props) {
7070
<li className="glide__slide h-fit! flex justify-center items-center" key={id}>
7171
<Link
7272
href={`/projects/${id}`}
73-
className="size-fit flex-col items-start transition-transform hover:cursor-pointer flex gap-y-5"
73+
className="size-fit flex-col items-start transition-transform hover:cursor-pointer flex gap-y-5 pb-1"
7474
>
7575
<figure
7676
className="h-100 relative overflow-hidden"
@@ -88,7 +88,7 @@ export default function Carousel({ projects }: Props) {
8888
{i + 1}. {name}
8989
</figcaption>
9090
</figure>
91-
<div className="text-vector-black bg-vector-orange hover:bg-vector-black hover:text-vector-cream transition-colors mx-auto py-2 px-5 rounded-lg">
91+
<div className="text-vector-cream border-1 hover:scale-115 border-vector-cream transition-transform mx-auto py-2 px-5 rounded-lg">
9292
{locale === 'es' ? 'Ver' : 'View'}
9393
</div>
9494
</Link>

0 commit comments

Comments
 (0)