add fonts + fix paddings

This commit is contained in:
Salam-vsem
2025-05-13 17:59:34 +03:00
parent f59c0085a3
commit 1f0a5d6768
9 changed files with 26 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ const { lang } = Astro.props
const t = useTranslations(lang) const t = useTranslations(lang)
--- ---
<footer id="contacts" class="flex flex-col items-center gap-6 text-center"> <footer id="contacts" class="flex flex-col items-center gap-4 md:gap-6 text-center">
<script <script
is:inline is:inline
type="text/javascript" type="text/javascript"
@@ -19,7 +19,7 @@ const t = useTranslations(lang)
async async
src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A069b17526dc83cbf87c488f13ae089eb3af0f8f74af57e1be82e183434693562&width=100%25&height=400&lang=ru_RU&scroll=true" src="https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A069b17526dc83cbf87c488f13ae089eb3af0f8f74af57e1be82e183434693562&width=100%25&height=400&lang=ru_RU&scroll=true"
></script> ></script>
<div class="flex flex-col items-center gap-4 px-6 py-8 text-center"> <div class="flex flex-col items-center gap-3 px-4 py-6 md:gap-4 md:px-6 md:py-8 text-center">
<Image src={logoSrc} alt="logo" class="h-32 w-auto md:h-48" /> <Image src={logoSrc} alt="logo" class="h-32 w-auto md:h-48" />
<p class="text-light text-sm"> <p class="text-light text-sm">
© {new Date().getFullYear()} © {new Date().getFullYear()}

View File

@@ -9,21 +9,24 @@ type Props = z.infer<ReturnType<typeof heroSchema>>
const { title, description, cta, image, imageAlt } = Astro.props const { title, description, cta, image, imageAlt } = Astro.props
--- ---
<Section id="hero" className="mt-16 p-0 md:mt-0 md:flex-row md:p-0"> <Section
<div class="mb-8 px-6 py-10 md:mb-0 md:w-1/2 md:p-24"> id="hero"
className="mt-[var(--header-height)] p-0 md:mt-0 md:flex-col-reverse md:py-24 lg:flex-row lg:items-center"
>
<div class="px-4 py-8 md:p-0 md:text-center lg:w-1/2 lg:text-start">
<h1 class="mb-4 text-4xl font-bold leading-tight md:text-6xl" set:html={title} /> <h1 class="mb-4 text-4xl font-bold leading-tight md:text-6xl" set:html={title} />
<p class="text-brand-text mb-6">{description}</p> <p class="text-brand-text mb-6">{description}</p>
{ {
cta && ( cta && (
<div class="flex w-full space-x-4"> <div class="flex w-full space-x-4">
<a href="#services" class="brand-btn w-full md:w-auto"> <a href="#services" class="brand-btn-outline lg:brand-btn w-full lg:w-auto">
{cta?.title} {cta?.title}
</a> </a>
</div> </div>
) )
} }
</div> </div>
<div class="relative hidden md:block md:w-1/2"> <div class="relative hidden md:block md:h-[450px] lg:w-1/2">
<Image src={image} alt={imageAlt} class="absolute h-full w-full object-cover" /> <Image src={image} alt={imageAlt} class="absolute h-full w-full object-contain" />
</div> </div>
</Section> </Section>

View File

@@ -13,7 +13,7 @@ const { title, description, className, id } = Astro.props
<section <section
class={cn( class={cn(
'flex flex-col gap-6 py-10 px-6 md:p-24 md:gap-14', 'flex flex-col gap-6 py-12 px-4 md:py-24 md:px-16 lg:px-24 md:gap-12',
className className
)} )}
id={id} id={id}

View File

@@ -9,7 +9,7 @@ const { title, charachteristics, highlighted = false, link } = Astro.props
<div <div
class:list={[ class:list={[
'flex h-full w-full flex-col border-2 px-7 py-8 md:max-w-[400px] md:min-h-[550px]', 'flex h-full w-full flex-col border-2 px-5 py-6 md:px-7 md:py-8 md:max-w-[400px] md:min-h-[550px]',
'border border-transparent bg-card', 'border border-transparent bg-card',
{ 'border-brand': highlighted }, { 'border-brand': highlighted },
]} ]}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

View File

@@ -1,8 +1,8 @@
--- ---
hero: hero:
title: 'ПРИДАЙТЕ ВАШЕМУ ТЕЛУ <br /> <span class="text-brand">ЗДОРОВУЮ</span> <br /> И <span class="text-brand">СТРОЙНУЮ ФОРМУ</span>' title: 'ПРЕОБРАЗИТЕ СВОЕ ТЕЛО <br /> <span class="text-brand">В СОВЕРШЕНСТВО</span>'
description: 'Преобразите свое тело и разум с помощью наших увлекательных тренировок и персонализированных программ. Присоединяйтесь к нам для достижения ваших фитнес-целей.' description: 'Профессиональные тренеры The Real Skill помогут достичь ваших целей через персональные тренировки и индивидуальный подход.'
image: './assets/hero.jpeg' image: '../../assets/logo.png'
imageAlt: 'hero' imageAlt: 'hero'
cta: cta:
title: 'Записаться' title: 'Записаться'
@@ -63,7 +63,8 @@ services:
- title: 'Разовые Персональные тренировки с тренером' - title: 'Разовые Персональные тренировки с тренером'
link: link:
title: 'Записаться' title: 'Записаться'
href: '/checkout/day-pass' href: 'https://api.whatsapp.com/message/JKEYZFZBLQBIF1?autoload=1&app_absent=0'
target: '_blank'
charachteristics: charachteristics:
- text: 'Разовая тренировка' - text: 'Разовая тренировка'
price: '5 000 ₽' price: '5 000 ₽'
@@ -85,7 +86,8 @@ services:
description: '30 календарных дней занятий с тренером' description: '30 календарных дней занятий с тренером'
link: link:
title: 'Записаться' title: 'Записаться'
href: '/checkout/monthly' href: 'https://n1381542.yclients.com/'
target: '_blank'
charachteristics: charachteristics:
- text: 'Персональный безлимит' - text: 'Персональный безлимит'
price: '50 000 ₽' price: '50 000 ₽'
@@ -97,7 +99,8 @@ services:
description: 'Присутствие тренера БЕСПЛАТНО' description: 'Присутствие тренера БЕСПЛАТНО'
link: link:
title: 'Записаться' title: 'Записаться'
href: '/checkout/annual' href: 'https://n1381542.yclients.com/'
target: '_blank'
charachteristics: charachteristics:
- text: 'Разовое посещение Время 75 минут' - text: 'Разовое посещение Время 75 минут'
price: '1500 ₽<br />c человека' price: '1500 ₽<br />c человека'

View File

@@ -57,7 +57,7 @@ const t = useTranslations(lang)
description={t('slider.subtitle')} description={t('slider.subtitle')}
className="bg-bg-light" className="bg-bg-light"
> >
<div class="-ml-6 flex w-[calc(100%+(1.5rem*2))] md:ml-0 md:w-full"> <div class="-ml-4 flex w-[calc(100%+(1rem*2))] md:ml-0 md:w-full">
<Swiper <Swiper
className="h-[540px]" className="h-[540px]"
client:visible client:visible
@@ -83,7 +83,7 @@ const t = useTranslations(lang)
{ {
reviews && ( reviews && (
<Section id="reviews" title={t('reviews.title')}> <Section id="reviews" title={t('reviews.title')}>
<div class="-ml-6 flex w-[calc(100%+(1.5rem*2))] md:-ml-24 md:w-[calc(100%+(6rem*2))]"> <div class="-mx-4 flex w-[calc(100%+2rem)] md:-mx-16 md:w-[calc(100%+8rem)] lg:-mx-24 lg:w-[calc(100%+12rem)]">
<Reviews client:visible reviews={reviews} lang={lang} /> <Reviews client:visible reviews={reviews} lang={lang} />
</div> </div>
</Section> </Section>

View File

@@ -1,3 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@@ -8,7 +9,7 @@
} }
html { html {
font-family: system-ui, sans-serif; font-family: 'Inter', system-ui, sans-serif;
scroll-behavior: smooth; scroll-behavior: smooth;
} }

View File

@@ -12,7 +12,7 @@ export default {
DEFAULT: 'rgba(28, 28, 30, 1)', DEFAULT: 'rgba(28, 28, 30, 1)',
}, },
brand: { brand: {
DEFAULT: 'rgba(163, 61, 215, 1)', DEFAULT: 'rgba(136,10,145, 1)',
}, },
text: { text: {
light: '#FFFFFF', light: '#FFFFFF',