Revert "fix(style): Seperate CSS style to src\styles"
This reverts commit dbda554d28.
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
---
|
||||
import type { Translations } from '../i18n/translations'
|
||||
|
||||
export interface Props {
|
||||
t: Translations['preview']
|
||||
}
|
||||
|
||||
const { t } = Astro.props
|
||||
const slides = [
|
||||
"/assets/preview-phone.png",
|
||||
"/assets/preview-phone.png",
|
||||
@@ -13,56 +6,68 @@ const slides = [
|
||||
]
|
||||
---
|
||||
|
||||
<section class="app-preview">
|
||||
<div class="app-preview__header">
|
||||
<p class="app-preview__title">
|
||||
{t.title}
|
||||
<section class="bg-[#fef0eb] w-full flex flex-col gap-[60px] items-center pt-16 lg:pt-[120px] px-4 lg:px-[130px] overflow-hidden">
|
||||
<!-- Heading -->
|
||||
<div class="flex flex-col gap-[40px] items-start overflow-clip w-full max-w-[940px] mx-auto">
|
||||
<p class="font-bold text-[#1a1a1a] text-[32px] md:text-[40px] lg:text-[48px] text-center tracking-[-1.16px] leading-[1.2] w-full">
|
||||
A Familiar App Experience, Reimagined with a Modern Look
|
||||
</p>
|
||||
<p class="app-preview__description">
|
||||
{t.description}
|
||||
<p class="font-normal text-[#7a726d] text-[18px] text-center tracking-[-0.33px] leading-[1.5] w-full">
|
||||
TalkPro keeps the communication experience familiar while refining the visual layer with updated icons, colors, spacing, and interface details.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="app-preview__carousel" id="carousel">
|
||||
<div class="app-preview__side-phone">
|
||||
<img id="phone-left" alt="" class="app-preview__phone-image" src={slides[slides.length - 1]} />
|
||||
<!-- Carousel -->
|
||||
<div class="flex gap-[20px] items-end justify-center shrink-0 w-full" id="carousel">
|
||||
|
||||
<!-- Left phone (hidden on mobile) -->
|
||||
<div class="hidden lg:block relative h-[396px] w-[336px] opacity-20 shrink-0 overflow-hidden pointer-events-none transition-opacity duration-300">
|
||||
<img id="phone-left" alt="" class="absolute h-[175.34%] left-0 max-w-none top-[-0.03%] w-full transition-opacity duration-300" src={slides[slides.length - 1]} />
|
||||
</div>
|
||||
|
||||
<div class="app-preview__control-wrap">
|
||||
<div class="app-preview__control-inner">
|
||||
<button id="btn-prev" class="app-preview__button">
|
||||
<img alt={t.previous} class="app-preview__button-icon" src="/assets/preview-arrow-left.svg" />
|
||||
<!-- Prev button (hidden on mobile) -->
|
||||
<div class="hidden lg:flex items-end self-stretch shrink-0">
|
||||
<div class="flex items-center justify-center h-full">
|
||||
<button id="btn-prev" class="bg-[#f08458] flex items-center justify-center rounded-[9999px] size-[48px] hover:bg-[#e07a3b] active:scale-95 transition-all shrink-0 cursor-pointer">
|
||||
<img alt="Previous" class="block size-[24px]" src="/assets/preview-arrow-left.svg" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="app-preview__center-phone">
|
||||
<img id="phone-center" alt={t.phoneAlt} class="app-preview__phone-image" src={slides[0]} />
|
||||
<!-- Center phone -->
|
||||
<div class="relative w-full lg:w-[459px] aspect-[459/542] lg:aspect-auto lg:h-[542px] shrink-0 overflow-hidden pointer-events-none">
|
||||
<img id="phone-center" alt="TalkPro app preview" class="absolute h-[175.34%] left-0 max-w-none top-[-0.03%] w-full transition-opacity duration-300" src={slides[0]} />
|
||||
</div>
|
||||
|
||||
<div class="app-preview__control-wrap">
|
||||
<div class="app-preview__control-inner">
|
||||
<button id="btn-next" class="app-preview__button">
|
||||
<img alt={t.next} class="app-preview__button-icon app-preview__button-icon--next" src="/assets/preview-arrow-right.svg" />
|
||||
<!-- Next button (hidden on mobile) -->
|
||||
<div class="hidden lg:flex items-end self-stretch shrink-0">
|
||||
<div class="flex items-center justify-center h-full">
|
||||
<button id="btn-next" class="bg-[#f08458] flex items-center justify-center rounded-[9999px] size-[48px] hover:bg-[#e07a3b] active:scale-95 transition-all shrink-0 cursor-pointer">
|
||||
<img alt="Next" class="block size-[24px] rotate-180" src="/assets/preview-arrow-right.svg" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="app-preview__side-phone">
|
||||
<img id="phone-right" alt="" class="app-preview__phone-image" src={slides[1]} />
|
||||
<!-- Right phone (hidden on mobile) -->
|
||||
<div class="hidden lg:block relative h-[396px] w-[336px] opacity-20 shrink-0 overflow-hidden pointer-events-none transition-opacity duration-300">
|
||||
<img id="phone-right" alt="" class="absolute h-[175.34%] left-0 max-w-none top-[-0.03%] w-full transition-opacity duration-300" src={slides[1]} />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
const slides: string[] = (window as any).__carouselSlides || [];
|
||||
|
||||
// Read slides injected via data attribute
|
||||
const carousel = document.getElementById('carousel')!;
|
||||
const allSlides: string[] = JSON.parse(carousel.dataset.slides || '[]');
|
||||
|
||||
const leftImg = document.getElementById('phone-left') as HTMLImageElement;
|
||||
const leftImg = document.getElementById('phone-left') as HTMLImageElement;
|
||||
const centerImg = document.getElementById('phone-center') as HTMLImageElement;
|
||||
const rightImg = document.getElementById('phone-right') as HTMLImageElement;
|
||||
const btnPrev = document.getElementById('btn-prev')!;
|
||||
const btnNext = document.getElementById('btn-next')!;
|
||||
const rightImg = document.getElementById('phone-right') as HTMLImageElement;
|
||||
const btnPrev = document.getElementById('btn-prev')!;
|
||||
const btnNext = document.getElementById('btn-next')!;
|
||||
|
||||
let current = 0;
|
||||
|
||||
@@ -72,9 +77,9 @@ const slides = [
|
||||
[leftImg, centerImg, rightImg].forEach(img => img && (img.style.opacity = '0'));
|
||||
setTimeout(() => {
|
||||
current = mod(next, allSlides.length);
|
||||
if (leftImg) leftImg.src = allSlides[mod(current - 1, allSlides.length)];
|
||||
if (leftImg) leftImg.src = allSlides[mod(current - 1, allSlides.length)];
|
||||
if (centerImg) centerImg.src = allSlides[current];
|
||||
if (rightImg) rightImg.src = allSlides[mod(current + 1, allSlides.length)];
|
||||
if (rightImg) rightImg.src = allSlides[mod(current + 1, allSlides.length)];
|
||||
[leftImg, centerImg, rightImg].forEach(img => img && (img.style.opacity = '1'));
|
||||
}, 200);
|
||||
}
|
||||
|
||||
@@ -1,44 +1,47 @@
|
||||
---
|
||||
import type { Translations } from '../i18n/translations'
|
||||
|
||||
export interface Props {
|
||||
t: Translations['core']
|
||||
}
|
||||
|
||||
const { t } = Astro.props
|
||||
const halftone = "/assets/core-halftone-bg.png";
|
||||
const icons = [
|
||||
"/assets/core-icon-private.png",
|
||||
"/assets/core-icon-groups.png",
|
||||
"/assets/core-icon-channels.png",
|
||||
"/assets/core-icon-voice.png",
|
||||
"/assets/core-icon-video.png",
|
||||
"/assets/core-icon-media.png",
|
||||
const iconPrivate = "/assets/core-icon-private.png";
|
||||
const iconGroups = "/assets/core-icon-groups.png";
|
||||
const iconChannels = "/assets/core-icon-channels.png";
|
||||
const iconVoice = "/assets/core-icon-voice.png";
|
||||
const iconVideo = "/assets/core-icon-video.png";
|
||||
const iconMedia = "/assets/core-icon-media.png";
|
||||
|
||||
const cards = [
|
||||
{ img: iconPrivate, title: 'Private Messaging', desc: 'Stay connected through fast and familiar one-on-one conversations.' },
|
||||
{ img: iconGroups, title: 'Group Chats', desc: 'Create spaces for friends, teams, communities, and shared discussions.' },
|
||||
{ img: iconChannels, title: 'Channels', desc: 'Follow updates, announcements, and content from the people or communities you care about.' },
|
||||
{ img: iconVoice, title: 'Voice Calls', desc: 'Talk in real time whenever messages are not enough.' },
|
||||
{ img: iconVideo, title: 'Video Calls', desc: 'Connect face-to-face with a simple and reliable video call experience.' },
|
||||
{ img: iconMedia, title: 'Media Sharing', desc: 'Share photos, videos, files, and updates in your conversations.' },
|
||||
]
|
||||
---
|
||||
|
||||
<section id="features" class="features">
|
||||
<img alt="" class="features__bg" src={halftone} />
|
||||
<section id="features" class="relative w-full flex flex-col gap-[60px] items-center py-16 lg:py-[120px] overflow-hidden">
|
||||
<!-- Background halftone -->
|
||||
<img alt="" class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 h-[1319px] w-[2363px] object-cover pointer-events-none opacity-20" src={halftone} />
|
||||
|
||||
<div class="features__header">
|
||||
<div class="section-eyebrow">
|
||||
<span class="section-eyebrow__text">{t.eyebrow}</span>
|
||||
<!-- Section header -->
|
||||
<div class="relative flex flex-col gap-[24px] items-center justify-end overflow-clip w-full max-w-[1280px] mx-auto px-4 lg:px-[180px]">
|
||||
<div class="bg-white border border-[#fbbfa3] flex items-center justify-center px-[24px] py-[12px] rounded-[9999px] shrink-0">
|
||||
<span class="font-bold text-[#f08458] text-[14px] text-center tracking-[-0.04px] whitespace-nowrap leading-normal">CORE FEATURES</span>
|
||||
</div>
|
||||
<p class="features__title">{t.title}</p>
|
||||
<p class="features__description">
|
||||
{t.description}
|
||||
<p class="font-bold text-[#1a1a1a] text-[32px] md:text-[40px] lg:text-[48px] text-center tracking-[-1.16px] leading-[1.2] w-full">Everything You Need to Communicate</p>
|
||||
<p class="font-normal text-[#7a726d] text-[18px] text-center tracking-[-0.33px] leading-[1.5] w-full">
|
||||
Different identities, different conversations, and different privacy levels should not be forced into one flat interface. TalkPro lets them exist in order inside one platform.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="features__grid">
|
||||
{t.cards.map((card, index) => (
|
||||
<div class="feature-card">
|
||||
<div class="feature-card__icon-frame">
|
||||
<img alt={card.title} class="feature-card__icon" src={icons[index]} />
|
||||
<!-- Card grid -->
|
||||
<div class="relative grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[22px] w-full max-w-[1280px] mx-auto px-4 lg:px-0">
|
||||
{cards.map(card => (
|
||||
<div class="bg-[rgba(255,255,255,0.78)] flex flex-col gap-[16px] items-center p-[32px] rounded-[30px]">
|
||||
<div class="relative shrink-0 size-[160px] overflow-hidden">
|
||||
<img alt={card.title} class="absolute inset-0 max-w-none size-full object-contain" src={card.img} />
|
||||
</div>
|
||||
<div class="feature-card__copy">
|
||||
<p class="feature-card__title">{card.title}</p>
|
||||
<p class="feature-card__description">{card.desc}</p>
|
||||
<div class="flex flex-col gap-[12px] items-start text-center w-full">
|
||||
<p class="font-bold text-[#2e2a28] text-[24px] tracking-[-0.5px] leading-normal w-full">{card.title}</p>
|
||||
<p class="font-normal text-[#7a726d] text-[15px] tracking-[-0.13px] leading-[1.5] w-full">{card.desc}</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
---
|
||||
import type { Translations } from '../i18n/translations'
|
||||
|
||||
export interface Props {
|
||||
t: Translations['download']
|
||||
}
|
||||
|
||||
const { t } = Astro.props
|
||||
const bgPattern = "/assets/cta-bg-pattern.svg";
|
||||
const talkproLogo = "/assets/cta-talkpro-logo.svg";
|
||||
const androidIcon = "/assets/cta-android-icon.svg";
|
||||
@@ -13,50 +6,54 @@ const appleIcon = "/assets/cta-apple-icon.svg";
|
||||
const phoneArt = "/assets/cta-phone-art.png";
|
||||
---
|
||||
|
||||
<section id="download" class="download-cta">
|
||||
<img alt="" class="download-cta__pattern" src={bgPattern} />
|
||||
<section id="download" class="relative bg-white border-t border-[#eec8b8] w-full flex items-center justify-center overflow-hidden min-h-[400px] lg:h-[600px]">
|
||||
<!-- Background pattern -->
|
||||
<img alt="" class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 h-[923px] w-full max-w-[1920px] pointer-events-none" src={bgPattern} />
|
||||
|
||||
<div class="download-cta__inner">
|
||||
<div class="download-cta__content">
|
||||
<div class="section-eyebrow">
|
||||
<span class="section-eyebrow__text">{t.eyebrow}</span>
|
||||
<div class="relative flex flex-col lg:flex-row items-center gap-8 lg:gap-0 w-full max-w-[1280px] mx-auto px-4 lg:px-0 py-12 lg:py-0">
|
||||
<!-- Left: download panel -->
|
||||
<div class="flex flex-1 flex-col gap-[36px] items-start justify-center min-w-0 overflow-clip">
|
||||
<div class="bg-white border border-[#fbbfa3] flex items-center justify-center px-[24px] py-[12px] rounded-[9999px] shrink-0">
|
||||
<span class="font-bold text-[#f08458] text-[14px] text-center tracking-[-0.04px] whitespace-nowrap leading-normal">DOWNLOAD</span>
|
||||
</div>
|
||||
|
||||
<div class="download-cta__copy">
|
||||
<div class="download-cta__heading">
|
||||
<p class="download-cta__title">{t.title}</p>
|
||||
<div class="download-cta__logo-frame">
|
||||
<img alt={t.logoAlt} class="download-cta__logo" src={talkproLogo} />
|
||||
<div class="flex flex-col gap-[16px] items-start w-full">
|
||||
<div class="flex gap-[20px] items-start shrink-0 flex-wrap">
|
||||
<p class="font-bold text-[#1a1a1a] text-[32px] md:text-[40px] lg:text-[48px] tracking-[-1.16px] leading-[1.2] whitespace-nowrap">Download</p>
|
||||
<div class="relative shrink-0 h-[72px] w-[188px]">
|
||||
<img alt="TalkPro" class="absolute inset-0 block max-w-none size-full" src={talkproLogo} />
|
||||
</div>
|
||||
</div>
|
||||
<p class="download-cta__description">
|
||||
{t.description}
|
||||
<p class="font-normal text-[#7a726d] text-[18px] tracking-[-0.33px] leading-[1.5] max-w-[542px]">
|
||||
Download TalkPro and experience a cleaner, simpler, and more modern way to stay connected.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="store-badges">
|
||||
<div class="store-badge store-badge--android">
|
||||
<img alt={t.androidAlt} class="store-badge__icon" src={androidIcon} />
|
||||
<div class="store-badge__copy">
|
||||
<p class="store-badge__platform">{t.android}</p>
|
||||
<p class="store-badge__label">{t.androidCta}</p>
|
||||
<!-- Store badges -->
|
||||
<div class="flex flex-wrap gap-[16px] items-center overflow-clip shrink-0 w-full">
|
||||
<div class="bg-[#f28a4b] border border-[#c5834e] flex gap-[8px] h-[70px] items-center overflow-clip px-[16px] py-[12px] rounded-[20px] w-full sm:w-[260px] shrink-0">
|
||||
<img alt="Android" class="block shrink-0 size-[44px]" src={androidIcon} />
|
||||
<div class="flex flex-col gap-[3px] items-start overflow-clip shrink-0 whitespace-nowrap">
|
||||
<p class="font-semibold text-[#ffd6bc] text-[11px] tracking-[0.05px] leading-normal">ANDROID</p>
|
||||
<p class="font-semibold text-white text-[15px] tracking-[-0.13px] leading-normal">APK Coming Soon</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="store-badge store-badge--ios">
|
||||
<div class="store-badge__icon-frame">
|
||||
<img alt={t.appleAlt} class="store-badge__apple-icon" src={appleIcon} />
|
||||
<div class="bg-[#383838] border border-[#141414] flex gap-[8px] h-[70px] items-center overflow-clip px-[16px] py-[12px] rounded-[20px] w-full sm:w-[260px] shrink-0">
|
||||
<div class="bg-[#151515] flex items-center justify-center rounded-[12px] shrink-0 size-[44px]">
|
||||
<img alt="Apple" class="block h-[27px] w-[22px]" src={appleIcon} />
|
||||
</div>
|
||||
<div class="store-badge__copy">
|
||||
<p class="store-badge__platform">{t.ios}</p>
|
||||
<p class="store-badge__label">{t.iosCta}</p>
|
||||
<div class="flex flex-col gap-[3px] items-start overflow-clip shrink-0 whitespace-nowrap">
|
||||
<p class="font-semibold text-[#ccc] text-[11px] tracking-[0.05px] leading-normal">IOS</p>
|
||||
<p class="font-semibold text-white text-[15px] tracking-[-0.13px] leading-normal">Coming on App Store</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="download-cta__phone">
|
||||
<div class="download-cta__phone-crop">
|
||||
<img alt={t.phoneAlt} class="download-cta__phone-image" src={phoneArt} />
|
||||
<!-- Right: phone art (hidden on mobile) -->
|
||||
<div class="hidden lg:block relative shrink-0 h-[510px] w-[418px]">
|
||||
<div class="absolute inset-0 overflow-hidden pointer-events-none">
|
||||
<img alt="TalkPro on phone" class="absolute h-[136.1%] left-[3.8%] max-w-none top-[-18.05%] w-[92.43%]" src={phoneArt} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,44 +1,64 @@
|
||||
---
|
||||
import type { Translations } from '../i18n/translations'
|
||||
|
||||
export interface Props {
|
||||
t: Translations['experience']
|
||||
}
|
||||
|
||||
const { t } = Astro.props
|
||||
const images = ["/assets/exp-card-1.png", "/assets/exp-card-2.png", "/assets/exp-card-3.png"]
|
||||
const imageClasses = ['experience-card__image--one', 'experience-card__image--two', 'experience-card__image--three']
|
||||
---
|
||||
|
||||
<section id="experience" class="experience">
|
||||
<div class="experience__inner">
|
||||
<p class="experience__title">
|
||||
{t.title}
|
||||
<section id="experience" class="bg-white w-full flex flex-col items-center justify-center py-16 lg:py-[120px]">
|
||||
<div class="flex flex-col gap-[40px] items-center justify-center w-full max-w-[1008px] mx-auto px-4 lg:px-0">
|
||||
<p class="font-bold text-[#1a1a1a] text-[32px] md:text-[40px] lg:text-[48px] text-center tracking-[-1.16px] leading-[1.2] w-full">
|
||||
A Cleaner, More Comfortable Messaging Experience
|
||||
</p>
|
||||
|
||||
<div class="experience__body">
|
||||
<div class="experience__grid">
|
||||
{t.cards.map((card, index) => (
|
||||
<div class="experience-card">
|
||||
<div class={`experience-card__media ${index > 0 ? 'experience-card__media--tinted' : ''}`}>
|
||||
<div class="experience-card__media-crop">
|
||||
<img
|
||||
alt={card.alt}
|
||||
class={`experience-card__image ${imageClasses[index]}`}
|
||||
src={images[index]}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="experience-card__copy">
|
||||
<p class="experience-card__title">{card.title}</p>
|
||||
<p class="experience-card__description">{card.desc}</p>
|
||||
<div class="flex flex-col items-start w-full">
|
||||
<!-- 3 cards row -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 w-full">
|
||||
|
||||
<!-- Card 1: Clear Interface -->
|
||||
<div class="bg-gradient-to-b from-[#fef0eb] to-white flex flex-col gap-[36px] items-center overflow-clip pb-[36px] px-[36px] rounded-tl-[30px] rounded-tr-[30px] w-full">
|
||||
<div class="relative h-[232px] shrink-0 w-full">
|
||||
<div class="absolute inset-0 overflow-hidden pointer-events-none">
|
||||
<img alt="Clear interface screenshot" class="absolute h-[298.5%] left-0 max-w-none top-[-58.58%] w-full" src="/assets/exp-card-1.png" />
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
<div class="flex flex-col gap-[16px] items-start overflow-clip text-center w-full">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[24px] tracking-[-0.47px] leading-[1.4] w-full">Clear Interface</p>
|
||||
<p class="font-medium text-[#7a726d] text-[16px] tracking-[-0.18px] leading-[1.5] w-full">A clean layout that makes conversations easy to follow.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Card 2: Smooth Navigation -->
|
||||
<div class="bg-gradient-to-b from-[#fef0eb] to-white flex flex-col gap-[36px] items-center overflow-clip pb-[36px] px-[36px] rounded-tl-[30px] rounded-tr-[30px] w-full">
|
||||
<div class="bg-[#ffeddf] flex flex-col items-start w-full">
|
||||
<div class="relative h-[232px] shrink-0 w-full">
|
||||
<div class="absolute inset-0 overflow-hidden pointer-events-none">
|
||||
<img alt="Smooth navigation screenshot" class="absolute h-[411.28%] left-[-5.95%] max-w-none top-[-335.6%] w-[137.79%]" src="/assets/exp-card-2.png" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[16px] items-start overflow-clip text-center w-full">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[24px] tracking-[-0.47px] leading-[1.4] w-full">Smooth Navigation</p>
|
||||
<p class="font-medium text-[#7a726d] text-[16px] tracking-[-0.18px] leading-[1.5] w-full">Move between chats, groups, and channels with familiar controls.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Card 3: Refined Visual Design -->
|
||||
<div class="bg-gradient-to-b from-[#fef0eb] to-white flex flex-col gap-[36px] items-center overflow-clip pb-[36px] px-[36px] rounded-tl-[30px] rounded-tr-[30px] w-full">
|
||||
<div class="bg-[#ffeddf] flex flex-col h-[232px] items-start overflow-clip w-full">
|
||||
<div class="flex-1 min-h-0 relative w-full">
|
||||
<div class="absolute inset-0 overflow-hidden pointer-events-none">
|
||||
<img alt="Refined visual design screenshot" class="absolute h-[298.5%] left-0 max-w-none top-[-99.23%] w-full" src="/assets/exp-card-3.png" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[16px] items-start overflow-clip text-center w-full">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[24px] tracking-[-0.47px] leading-[1.4] w-full">Refined Visual Design</p>
|
||||
<p class="font-medium text-[#7a726d] text-[16px] tracking-[-0.18px] leading-[1.5] w-full">Modern icons, colors, and interface details create a more polished experience.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<p class="experience__caption">
|
||||
{t.caption}
|
||||
<!-- Footer caption -->
|
||||
<p class="font-normal text-[#7a726d] text-[18px] text-center tracking-[-0.33px] leading-[1.5] w-full mt-0">
|
||||
TalkPro is designed with clarity in mind. Every screen is built to help users focus on their conversations, reduce distractions, and move naturally between chats, groups, channels, and calls.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,66 +1,65 @@
|
||||
---
|
||||
import type { Translations } from '../i18n/translations'
|
||||
|
||||
export interface Props {
|
||||
t: Translations['footer']
|
||||
}
|
||||
|
||||
const { t } = Astro.props
|
||||
const logoFull = "/assets/footer-logo.png";
|
||||
const androidIcon = "/assets/footer-android-icon.svg";
|
||||
const appleIcon = "/assets/footer-apple-icon.svg";
|
||||
---
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="site-footer__inner">
|
||||
<div class="site-footer__top">
|
||||
<div class="site-footer__brand">
|
||||
<div class="site-footer__logo-frame">
|
||||
<img alt={t.logoAlt} class="site-footer__logo" src={logoFull} />
|
||||
<footer class="bg-[#fef0eb] w-full flex flex-col items-center justify-center py-16 lg:py-[120px]">
|
||||
<div class="flex flex-col gap-[36px] items-start w-full max-w-[1280px] mx-auto px-4 lg:px-0">
|
||||
<!-- Top row -->
|
||||
<div class="flex flex-col lg:flex-row lg:items-start lg:justify-between gap-10 lg:gap-0 w-full">
|
||||
<!-- Brand col -->
|
||||
<div class="flex flex-col gap-[24px] items-start overflow-clip shrink-0">
|
||||
<div class="relative h-[64px] w-[220px]">
|
||||
<img alt="TalkPro" class="absolute inset-0 max-w-none object-cover size-full pointer-events-none" src={logoFull} />
|
||||
</div>
|
||||
<p class="site-footer__description">
|
||||
{t.description}
|
||||
<p class="font-normal text-[#7a726d] text-[14px] tracking-[-0.09px] leading-[1.5] max-w-[320px]">
|
||||
TalkPro is a modern communication app designed for messaging, group conversations, channels, voice calls, and video calls.
|
||||
</p>
|
||||
<div class="store-badges">
|
||||
<div class="store-badge store-badge--android">
|
||||
<img alt="Android" class="store-badge__icon" src={androidIcon} />
|
||||
<div class="store-badge__copy">
|
||||
<p class="store-badge__platform">{t.android}</p>
|
||||
<p class="store-badge__label">{t.androidCta}</p>
|
||||
<!-- Store badges -->
|
||||
<div class="flex flex-wrap gap-[16px] items-center overflow-clip shrink-0 w-full">
|
||||
<div class="bg-[#f28a4b] border border-[#c5834e] flex gap-[8px] h-[70px] items-center overflow-clip px-[16px] py-[12px] rounded-[20px] w-full sm:w-[260px] shrink-0">
|
||||
<img alt="Android" class="block shrink-0 size-[44px]" src={androidIcon} />
|
||||
<div class="flex flex-col gap-[3px] items-start overflow-clip shrink-0 whitespace-nowrap">
|
||||
<p class="font-semibold text-[#ffd6bc] text-[11px] tracking-[0.05px] leading-normal">ANDROID</p>
|
||||
<p class="font-semibold text-white text-[15px] tracking-[-0.13px] leading-normal">APK Coming Soon</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="store-badge store-badge--ios">
|
||||
<div class="store-badge__icon-frame">
|
||||
<img alt="Apple" class="store-badge__apple-icon" src={appleIcon} />
|
||||
<div class="bg-[#383838] border border-[#141414] flex gap-[8px] h-[70px] items-center overflow-clip px-[16px] py-[12px] rounded-[20px] w-full sm:w-[260px] shrink-0">
|
||||
<div class="bg-[#151515] flex items-center justify-center rounded-[12px] shrink-0 size-[44px]">
|
||||
<img alt="Apple" class="block h-[27px] w-[22px]" src={appleIcon} />
|
||||
</div>
|
||||
<div class="store-badge__copy">
|
||||
<p class="store-badge__platform">{t.ios}</p>
|
||||
<p class="store-badge__label">{t.iosCta}</p>
|
||||
<div class="flex flex-col gap-[3px] items-start overflow-clip shrink-0 whitespace-nowrap">
|
||||
<p class="font-semibold text-[#ccc] text-[11px] tracking-[0.05px] leading-normal">IOS</p>
|
||||
<p class="font-semibold text-white text-[15px] tracking-[-0.13px] leading-normal">Coming on App Store</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="site-footer__links">
|
||||
<div class="site-footer__link-column">
|
||||
<a href="#download" class="site-footer__link">{t.links.download}</a>
|
||||
<a href="#features" class="site-footer__link">{t.links.features}</a>
|
||||
<a href="#" class="site-footer__link">{t.links.about}</a>
|
||||
<!-- Link cols -->
|
||||
<div class="flex gap-[32px] items-center leading-normal shrink-0">
|
||||
<div class="flex flex-col gap-[24px] items-start overflow-clip w-[160px]">
|
||||
<a href="#download" class="font-normal text-[#4a4a4a] text-[14px] whitespace-nowrap hover:text-[#f28a4b] transition-colors">Download</a>
|
||||
<a href="#features" class="font-normal text-[#4a4a4a] text-[14px] whitespace-nowrap hover:text-[#f28a4b] transition-colors">Features</a>
|
||||
<a href="#" class="font-normal text-[#4a4a4a] text-[14px] whitespace-nowrap hover:text-[#f28a4b] transition-colors">About</a>
|
||||
</div>
|
||||
<div class="site-footer__link-column">
|
||||
<p class="site-footer__text site-footer__text--heading">{t.links.contact}</p>
|
||||
<p class="site-footer__text">{t.email}</p>
|
||||
<p class="site-footer__text">{t.phone}</p>
|
||||
<div class="flex flex-col gap-[24px] items-start overflow-clip w-[160px]">
|
||||
<p class="font-medium text-[#4a4a4a] text-[14px] whitespace-nowrap">Contact</p>
|
||||
<p class="font-normal text-[#4a4a4a] text-[14px] whitespace-nowrap">email@hotmail.com</p>
|
||||
<p class="font-normal text-[#4a4a4a] text-[14px] whitespace-nowrap">+01 123 45562334</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="site-footer__divider"></div>
|
||||
<!-- Divider -->
|
||||
<div class="w-full h-px bg-[#e3d9d1]"></div>
|
||||
|
||||
<div class="site-footer__bottom">
|
||||
<p class="site-footer__legal">{t.copyright}</p>
|
||||
<div class="site-footer__spacer"></div>
|
||||
<p class="site-footer__legal">{t.legal}</p>
|
||||
<!-- Bottom row -->
|
||||
<div class="flex gap-[20px] items-center overflow-clip w-full">
|
||||
<p class="font-normal text-[#7a726d] text-[14px] tracking-[-0.09px] whitespace-nowrap leading-normal">© 2026 TalkPro. All rights reserved.</p>
|
||||
<div class="flex-1 min-w-0"></div>
|
||||
<p class="font-normal text-[#7a726d] text-[14px] tracking-[-0.09px] whitespace-nowrap leading-normal">Terms of Use · Privacy Policy · Support</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -1,110 +1,72 @@
|
||||
---
|
||||
import { getLocalePath, languageLabels, languageNames, languages, type Lang, type Translations } from '../i18n/translations'
|
||||
|
||||
export interface Props {
|
||||
lang: Lang
|
||||
t: Translations['header']
|
||||
}
|
||||
|
||||
const { lang, t } = Astro.props
|
||||
const logoIcon = "/assets/header-logo-icon.png";
|
||||
const logoWordmark = "/assets/header-logo-wordmark.svg";
|
||||
const globeIcon = "/assets/header-globe.svg";
|
||||
const navItems = [
|
||||
{ href: '#hero', label: t.nav.home },
|
||||
{ href: '#features', label: t.nav.features },
|
||||
{ href: '#experience', label: t.nav.experience },
|
||||
{ href: '#use-cases', label: t.nav.useCases },
|
||||
{ href: '#reliability', label: t.nav.reliability },
|
||||
]
|
||||
const languageOptions = languages.map(item => ({
|
||||
lang: item,
|
||||
href: getLocalePath(item),
|
||||
label: `${languageLabels[item]} - ${languageNames[item]}`,
|
||||
}))
|
||||
---
|
||||
|
||||
<header id="site-header" class="site-header">
|
||||
<div class="site-header__bar">
|
||||
<div class="site-header__brand">
|
||||
<a href={getLocalePath(lang)} class="site-logo">
|
||||
<div class="site-logo__icon-frame">
|
||||
<img alt={t.logoIconAlt} class="site-logo__icon" src={logoIcon} />
|
||||
<header id="site-header" class="bg-white border-b border-[#e3d9d1] w-full sticky top-0 z-50">
|
||||
<!-- Main bar -->
|
||||
<div class="flex items-center w-full max-w-[1280px] mx-auto px-4 lg:px-6 h-[72px] gap-6">
|
||||
<!-- Logo -->
|
||||
<div class="flex flex-1 items-center min-w-0">
|
||||
<a href="/" class="relative h-[42px] w-[143px] shrink-0 block">
|
||||
<div class="absolute h-[42px] left-0 top-0 w-[53px] overflow-hidden">
|
||||
<img alt="TalkPro icon" class="absolute h-[126.98%] left-0 max-w-none top-[-13.49%] w-full" src={logoIcon} />
|
||||
</div>
|
||||
<div class="site-logo__wordmark-frame">
|
||||
<img alt={t.logoAlt} class="site-logo__wordmark" src={logoWordmark} />
|
||||
<div class="absolute inset-[26.97%_0_7.92%_45.45%]">
|
||||
<img alt="TalkPro" class="absolute block inset-0 max-w-none size-full" src={logoWordmark} />
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<nav class="site-nav" aria-label={t.navLabel}>
|
||||
{navItems.map((item, index) => (
|
||||
<a href={item.href} class={`site-nav__link ${index === 0 ? 'is-active' : ''}`} data-nav-link>{item.label}</a>
|
||||
))}
|
||||
<!-- Desktop nav -->
|
||||
<nav class="hidden lg:flex items-center gap-[32px] shrink-0" aria-label="Main navigation">
|
||||
<a href="#hero" class="font-semibold text-[14px] text-[#f28a4b] tracking-[-0.09px] whitespace-nowrap leading-normal" data-nav-link>Home</a>
|
||||
<a href="#features" class="font-semibold text-[14px] text-[#7a726d] tracking-[-0.09px] whitespace-nowrap leading-normal hover:text-[#f28a4b] transition-colors" data-nav-link>Features</a>
|
||||
<a href="#experience" class="font-semibold text-[14px] text-[#7a726d] tracking-[-0.09px] whitespace-nowrap leading-normal hover:text-[#f28a4b] transition-colors" data-nav-link>Experience</a>
|
||||
<a href="#use-cases" class="font-semibold text-[14px] text-[#7a726d] tracking-[-0.09px] whitespace-nowrap leading-normal hover:text-[#f28a4b] transition-colors" data-nav-link>Use Cases</a>
|
||||
<a href="#reliability" class="font-semibold text-[14px] text-[#7a726d] tracking-[-0.09px] whitespace-nowrap leading-normal hover:text-[#f28a4b] transition-colors" data-nav-link>Reliability</a>
|
||||
</nav>
|
||||
|
||||
<div class="site-header__actions">
|
||||
<div class="language-switcher">
|
||||
<button
|
||||
id="language-toggle"
|
||||
class="language-switcher__button"
|
||||
type="button"
|
||||
aria-label={t.languageAlt}
|
||||
aria-expanded="false"
|
||||
aria-controls="language-menu"
|
||||
>
|
||||
<img alt="" class="language-switcher__icon" src={globeIcon} />
|
||||
<span class="language-switcher__current">{languageLabels[lang]}</span>
|
||||
</button>
|
||||
<div id="language-menu" class="language-switcher__menu is-hidden" aria-hidden="true">
|
||||
{languageOptions.map(option => (
|
||||
<a
|
||||
href={option.href}
|
||||
class={`language-switcher__option ${option.lang === lang ? 'is-active' : ''}`}
|
||||
aria-current={option.lang === lang ? 'page' : undefined}
|
||||
>
|
||||
{option.label}
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="#download" class="site-header__download">
|
||||
<span class="site-header__download-label">{t.download}</span>
|
||||
<!-- Actions -->
|
||||
<div class="flex flex-1 gap-[12px] items-center justify-end min-w-0">
|
||||
<!-- Language button (desktop only) -->
|
||||
<button class="hidden lg:flex border border-[rgba(46,42,40,0.3)] gap-[8px] h-[43px] items-center justify-center pl-[12px] pr-[16px] rounded-[17px] shrink-0 hover:border-[#f28a4b] transition-colors">
|
||||
<img alt="Language" class="block size-[26px] object-contain" src={globeIcon} />
|
||||
<span class="font-semibold text-[14px] text-[#2e2a28] tracking-[-0.09px] whitespace-nowrap leading-[14px]">EN</span>
|
||||
</button>
|
||||
<!-- Download button (desktop only) -->
|
||||
<a href="#download" class="hidden lg:flex bg-[#f28a4b] items-center justify-center px-[22px] py-[13px] rounded-[17px] shrink-0 hover:bg-[#e07a3b] transition-colors">
|
||||
<span class="font-bold text-[14px] text-white leading-normal whitespace-nowrap">Download</span>
|
||||
</a>
|
||||
|
||||
<!-- Hamburger toggle (mobile only) -->
|
||||
<button
|
||||
id="menu-toggle"
|
||||
class="menu-toggle"
|
||||
class="lg:hidden flex flex-col justify-center gap-[5px] w-[40px] h-[40px] p-[8px] shrink-0"
|
||||
type="button"
|
||||
aria-label={t.openMenu}
|
||||
aria-label="Open menu"
|
||||
aria-expanded="false"
|
||||
aria-controls="mobile-nav"
|
||||
data-open-label={t.openMenu}
|
||||
data-close-label={t.closeMenu}
|
||||
>
|
||||
<span id="bar-1" class="menu-toggle__bar"></span>
|
||||
<span id="bar-2" class="menu-toggle__bar"></span>
|
||||
<span id="bar-3" class="menu-toggle__bar"></span>
|
||||
<span id="bar-1" class="block w-full h-[2px] bg-[#2e2a28] rounded-sm transition-all duration-[240ms] origin-center"></span>
|
||||
<span id="bar-2" class="block w-full h-[2px] bg-[#2e2a28] rounded-sm transition-all duration-[240ms]"></span>
|
||||
<span id="bar-3" class="block w-full h-[2px] bg-[#2e2a28] rounded-sm transition-all duration-[240ms] origin-center"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="mobile-nav" class="mobile-nav is-hidden" aria-hidden="true">
|
||||
<ul class="mobile-nav__list">
|
||||
{navItems.map((item, index) => (
|
||||
<li><a href={item.href} class={`mobile-nav__link ${index === navItems.length - 1 ? 'mobile-nav__link--last' : ''}`} data-nav-link>{item.label}</a></li>
|
||||
))}
|
||||
<li class="mobile-nav__languages">
|
||||
{languages.map(item => (
|
||||
<a href={getLocalePath(item)} class={`mobile-nav__language-link ${item === lang ? 'is-active' : ''}`} aria-current={item === lang ? 'page' : undefined}>
|
||||
{languageNames[item]}
|
||||
</a>
|
||||
))}
|
||||
</li>
|
||||
<li class="mobile-nav__download-item">
|
||||
<a href="#download" class="mobile-nav__download">
|
||||
{t.download}
|
||||
<!-- Mobile nav drawer -->
|
||||
<div id="mobile-nav" class="hidden lg:!hidden border-t border-[#e3d9d1] bg-white" aria-hidden="true">
|
||||
<ul class="flex flex-col px-6 py-4 list-none m-0 p-0 px-6 py-4">
|
||||
<li><a href="#hero" class="block py-4 font-semibold text-[16px] text-[#2e2a28] border-b border-[#e3d9d1]" data-nav-link>Home</a></li>
|
||||
<li><a href="#features" class="block py-4 font-semibold text-[16px] text-[#2e2a28] border-b border-[#e3d9d1]" data-nav-link>Features</a></li>
|
||||
<li><a href="#experience" class="block py-4 font-semibold text-[16px] text-[#2e2a28] border-b border-[#e3d9d1]" data-nav-link>Experience</a></li>
|
||||
<li><a href="#use-cases" class="block py-4 font-semibold text-[16px] text-[#2e2a28] border-b border-[#e3d9d1]" data-nav-link>Use Cases</a></li>
|
||||
<li><a href="#reliability" class="block py-4 font-semibold text-[16px] text-[#2e2a28]" data-nav-link>Reliability</a></li>
|
||||
<li class="mt-4 mb-2">
|
||||
<a href="#download" class="block text-center bg-[#f28a4b] text-white font-bold text-[15px] py-[14px] px-6 rounded-[17px] hover:bg-[#e07a3b] transition-colors">
|
||||
Download
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -113,32 +75,17 @@ const languageOptions = languages.map(item => ({
|
||||
|
||||
<script>
|
||||
const toggle = document.getElementById('menu-toggle') as HTMLButtonElement;
|
||||
const nav = document.getElementById('mobile-nav') as HTMLDivElement;
|
||||
const bar1 = document.getElementById('bar-1') as HTMLSpanElement;
|
||||
const bar2 = document.getElementById('bar-2') as HTMLSpanElement;
|
||||
const bar3 = document.getElementById('bar-3') as HTMLSpanElement;
|
||||
const languageToggle = document.getElementById('language-toggle') as HTMLButtonElement | null;
|
||||
const languageMenu = document.getElementById('language-menu') as HTMLDivElement | null;
|
||||
|
||||
function closeLanguageMenu() {
|
||||
if (!languageToggle || !languageMenu) return;
|
||||
languageToggle.setAttribute('aria-expanded', 'false');
|
||||
languageMenu.classList.add('is-hidden');
|
||||
languageMenu.setAttribute('aria-hidden', 'true');
|
||||
}
|
||||
|
||||
function openLanguageMenu() {
|
||||
if (!languageToggle || !languageMenu) return;
|
||||
languageToggle.setAttribute('aria-expanded', 'true');
|
||||
languageMenu.classList.remove('is-hidden');
|
||||
languageMenu.removeAttribute('aria-hidden');
|
||||
}
|
||||
const nav = document.getElementById('mobile-nav') as HTMLDivElement;
|
||||
const bar1 = document.getElementById('bar-1') as HTMLSpanElement;
|
||||
const bar2 = document.getElementById('bar-2') as HTMLSpanElement;
|
||||
const bar3 = document.getElementById('bar-3') as HTMLSpanElement;
|
||||
|
||||
function openMenu() {
|
||||
toggle.setAttribute('aria-expanded', 'true');
|
||||
toggle.setAttribute('aria-label', toggle.dataset.closeLabel || 'Close menu');
|
||||
nav.classList.remove('is-hidden');
|
||||
toggle.setAttribute('aria-label', 'Close menu');
|
||||
nav.classList.remove('hidden');
|
||||
nav.removeAttribute('aria-hidden');
|
||||
// Animate to X
|
||||
bar1.style.transform = 'translateY(7px) rotate(45deg)';
|
||||
bar2.style.opacity = '0';
|
||||
bar3.style.transform = 'translateY(-7px) rotate(-45deg)';
|
||||
@@ -146,9 +93,10 @@ const languageOptions = languages.map(item => ({
|
||||
|
||||
function closeMenu() {
|
||||
toggle.setAttribute('aria-expanded', 'false');
|
||||
toggle.setAttribute('aria-label', toggle.dataset.openLabel || 'Open menu');
|
||||
nav.classList.add('is-hidden');
|
||||
toggle.setAttribute('aria-label', 'Open menu');
|
||||
nav.classList.add('hidden');
|
||||
nav.setAttribute('aria-hidden', 'true');
|
||||
// Reset bars
|
||||
bar1.style.transform = '';
|
||||
bar2.style.opacity = '';
|
||||
bar3.style.transform = '';
|
||||
@@ -158,23 +106,11 @@ const languageOptions = languages.map(item => ({
|
||||
toggle.getAttribute('aria-expanded') === 'true' ? closeMenu() : openMenu();
|
||||
});
|
||||
|
||||
languageToggle?.addEventListener('click', event => {
|
||||
event.stopPropagation();
|
||||
languageToggle.getAttribute('aria-expanded') === 'true' ? closeLanguageMenu() : openLanguageMenu();
|
||||
});
|
||||
|
||||
languageMenu?.addEventListener('click', event => event.stopPropagation());
|
||||
|
||||
document.addEventListener('click', closeLanguageMenu);
|
||||
|
||||
document.addEventListener('keydown', event => {
|
||||
if (event.key === 'Escape') closeLanguageMenu();
|
||||
});
|
||||
|
||||
// Close when any nav link is clicked
|
||||
nav.querySelectorAll('a').forEach(a => a.addEventListener('click', closeMenu));
|
||||
|
||||
// Close when resized past mobile breakpoint
|
||||
window.addEventListener('resize', () => {
|
||||
if (window.innerWidth >= 1024) closeMenu();
|
||||
if (window.innerWidth < 1024) closeLanguageMenu();
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -1,56 +1,57 @@
|
||||
---
|
||||
import type { Translations } from '../i18n/translations'
|
||||
|
||||
export interface Props {
|
||||
t: Translations['hero']
|
||||
}
|
||||
|
||||
const { t } = Astro.props
|
||||
const heroBg = "/assets/hero-bg.png";
|
||||
const phoneMockup = "/assets/hero-phone.png";
|
||||
---
|
||||
|
||||
<section id="hero" class="hero">
|
||||
<img alt="" class="hero__bg" src={heroBg} />
|
||||
<section id="hero" class="relative w-full flex items-start justify-center min-h-[600px] lg:h-[891px] overflow-hidden">
|
||||
<img alt="" class="absolute inset-0 max-w-none object-cover size-full pointer-events-none" src={heroBg} />
|
||||
|
||||
<div class="hero__inner">
|
||||
<div class="hero__phone-column">
|
||||
<div class="hero__phone-frame">
|
||||
<div class="hero__phone-crop">
|
||||
<img alt={t.phoneAlt} class="hero__phone" src={phoneMockup} />
|
||||
<div class="relative flex flex-col-reverse lg:flex-row gap-[40px] items-start w-full max-w-[1280px] mx-auto px-4 lg:px-0 h-full">
|
||||
<!-- Phone mockup -->
|
||||
<div class="hidden lg:flex flex-1 items-center min-w-0 pt-[60px] h-full">
|
||||
<div class="relative w-full" style="aspect-ratio: 673/1108;">
|
||||
<div class="absolute inset-0 overflow-hidden pointer-events-none">
|
||||
<img alt="TalkPro app on iPhone" class="absolute h-[114.36%] left-[-2.67%] max-w-none top-[-7.18%] w-[105.35%]" src={phoneMockup} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hero__content">
|
||||
<div class="hero__badge">
|
||||
<p class="hero__badge-text">{t.badge}</p>
|
||||
<!-- Hero copy -->
|
||||
<div class="flex flex-col gap-[60px] h-full items-start justify-center overflow-clip shrink-0 w-full lg:w-[660px] py-8 lg:py-[80px]">
|
||||
<!-- Pill -->
|
||||
<div class="bg-white border border-[#f08458] flex items-center overflow-clip px-[16px] py-[12px] rounded-[999px] shrink-0">
|
||||
<p class="font-bold text-[#0d0d0d] text-[14px] tracking-[-0.09px] leading-normal">✦ Available on iOS and Android</p>
|
||||
</div>
|
||||
|
||||
<div class="hero__copy">
|
||||
<div class="hero__title">
|
||||
<p class="hero__title-line">{t.titleLine1}</p>
|
||||
<p class="hero__title-line">{t.titleLine2}</p>
|
||||
<div class="flex flex-col gap-[24px] items-start shrink-0 w-full">
|
||||
<div class="font-bold text-[#2e2a28] text-[40px] md:text-[56px] lg:text-[72px] tracking-[-1.61px] w-full">
|
||||
<p class="leading-[1.1] mb-0">A Modern Way to</p>
|
||||
<p class="leading-[1.1]">Stay Connected</p>
|
||||
</div>
|
||||
<p class="hero__description">
|
||||
{t.description}
|
||||
<p class="font-normal text-[#7a726d] text-[18px] tracking-[-0.33px] leading-[1.5] w-full">
|
||||
TalkPro is a modern messaging app designed for clear, simple, and reliable communication. From private chats to group conversations, channels, voice calls, and video calls, TalkPro helps people stay connected in one familiar experience.
|
||||
</p>
|
||||
<div class="hero__actions">
|
||||
<a href="#download" class="hero__button hero__button--primary">
|
||||
<span class="hero__button-label">{t.download}</span>
|
||||
<div class="flex flex-wrap gap-[14px] items-center overflow-clip shrink-0">
|
||||
<a href="#download" class="bg-[#f28a4b] flex items-center justify-center overflow-clip px-[24px] py-[14px] rounded-[17px] shrink-0 hover:bg-[#e07a3b] transition-colors">
|
||||
<span class="font-bold text-white text-[15px] tracking-[-0.13px] leading-normal">Download TalkPro ↓</span>
|
||||
</a>
|
||||
<a href="#features" class="hero__button hero__button--secondary">
|
||||
<span class="hero__button-label">{t.explore}</span>
|
||||
<a href="#features" class="bg-[rgba(255,255,255,0.55)] border border-[#e3d9d1] flex items-center justify-center overflow-clip px-[24px] py-[14px] rounded-[17px] shrink-0 hover:bg-white transition-colors">
|
||||
<span class="font-bold text-[#2e2a28] text-[15px] tracking-[-0.13px] leading-normal">Explore Features →</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hero__tags">
|
||||
{t.tags.map(tag => (
|
||||
<div class="hero__tag">
|
||||
<span class="hero__tag-text">{tag}</span>
|
||||
</div>
|
||||
))}
|
||||
<!-- Tags -->
|
||||
<div class="flex flex-wrap gap-[10px] items-center overflow-clip shrink-0">
|
||||
<div class="bg-[rgba(255,255,255,0.68)] border border-white flex items-center overflow-clip px-[14px] py-[9px] rounded-[999px] shrink-0">
|
||||
<span class="font-bold text-[#7a726d] text-[14px] tracking-[-0.09px] whitespace-nowrap leading-normal">Identity Layer</span>
|
||||
</div>
|
||||
<div class="bg-[rgba(255,255,255,0.68)] border border-white flex items-center overflow-clip px-[14px] py-[9px] rounded-[999px] shrink-0">
|
||||
<span class="font-bold text-[#7a726d] text-[14px] tracking-[-0.09px] whitespace-nowrap leading-normal">AI Native Messaging</span>
|
||||
</div>
|
||||
<div class="bg-[rgba(255,255,255,0.68)] border border-white flex items-center overflow-clip px-[14px] py-[9px] rounded-[999px] shrink-0">
|
||||
<span class="font-bold text-[#7a726d] text-[14px] tracking-[-0.09px] whitespace-nowrap leading-normal">Adaptive Privacy</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,58 +1,96 @@
|
||||
---
|
||||
import type { Translations } from '../i18n/translations'
|
||||
|
||||
export interface Props {
|
||||
t: Translations['trust']
|
||||
}
|
||||
|
||||
const { t } = Astro.props
|
||||
const iconClasses = [
|
||||
'trust-card__icon--one',
|
||||
'trust-card__icon--two',
|
||||
'trust-card__icon--three',
|
||||
'trust-card__icon--four',
|
||||
]
|
||||
---
|
||||
|
||||
<section id="reliability" class="trust">
|
||||
<div class="trust__inner">
|
||||
<div class="trust__header">
|
||||
<div class="section-eyebrow">
|
||||
<span class="section-eyebrow__text">{t.eyebrow}</span>
|
||||
<section id="reliability" class="bg-white w-full flex flex-col items-center justify-center py-16 px-4 lg:p-[120px]">
|
||||
<div class="flex flex-col gap-[40px] items-start w-full max-w-[1280px] mx-auto">
|
||||
|
||||
<!-- Header -->
|
||||
<div class="flex flex-col gap-[24px] items-start overflow-clip w-full">
|
||||
<div class="bg-white border border-[#fbbfa3] flex items-center justify-center px-[24px] py-[12px] rounded-[9999px] shrink-0">
|
||||
<span class="font-bold text-[#f08458] text-[14px] text-center tracking-[-0.04px] whitespace-nowrap leading-normal">RELIABILITY</span>
|
||||
</div>
|
||||
<p class="trust__title">{t.title}</p>
|
||||
<p class="trust__description">
|
||||
{t.description}
|
||||
<p class="font-bold text-[#1a1a1a] text-[32px] md:text-[40px] lg:text-[48px] tracking-[-1.16px] leading-[1.2] w-full">Built with User Trust in Mind</p>
|
||||
<p class="font-normal text-[#7a726d] text-[18px] tracking-[-0.33px] leading-[1.5] w-full">
|
||||
TalkPro is designed with a privacy-conscious approach and a focus on dependable communication. The app keeps the user experience simple while supporting the core communication features people expect from a modern messaging platform.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="trust__grid">
|
||||
{t.cards.map((card, index) => (
|
||||
<>
|
||||
<div class="trust-card">
|
||||
<div class="trust-card__icon-frame">
|
||||
<div class="trust-card__icon-crop">
|
||||
<img
|
||||
alt=""
|
||||
class={`trust-card__icon ${iconClasses[index]}`}
|
||||
src={index === 3 ? "/assets/trust-icon-improvement.png" : "/assets/trust-icon-sprite.png"}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="trust-card__copy">
|
||||
<p class="trust-card__title">{card.title}</p>
|
||||
<p class="trust-card__description">{card.desc}</p>
|
||||
</div>
|
||||
<!-- 4-column feature row -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:flex lg:gap-[24px] lg:items-center gap-8 justify-center w-full">
|
||||
|
||||
<!-- Card 1: Privacy-Conscious Design -->
|
||||
<div class="flex flex-1 flex-col gap-[16px] items-center justify-end min-w-0 p-[24px] rounded-[30px]">
|
||||
<div class="relative shrink-0 size-[128px]">
|
||||
<div class="absolute inset-0 overflow-hidden pointer-events-none">
|
||||
<img alt="" class="absolute h-[174.55%] left-[-31.48%] max-w-none top-[7.04%] w-[312.73%]" src="/assets/trust-icon-sprite.png" />
|
||||
</div>
|
||||
{index < t.cards.length - 1 && (
|
||||
<div class="trust__divider">
|
||||
<div class="trust__divider-frame">
|
||||
<img alt="" class="trust__divider-image" src="/assets/trust-divider.svg" />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
))}
|
||||
</div>
|
||||
<div class="flex flex-col gap-[8px] items-start w-full">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[16px] leading-[22px] w-full">Privacy-Conscious Design</p>
|
||||
<p class="font-medium text-[#7a726d] text-[15px] leading-[1.5] w-full">Built with careful consideration for user communication and data handling.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Divider -->
|
||||
<div class="hidden lg:block relative h-[118px] shrink-0 w-0">
|
||||
<div class="absolute inset-[0_-0.5px]">
|
||||
<img alt="" class="block max-w-none size-full" src="/assets/trust-divider.svg" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Card 2: Minimal and Focused -->
|
||||
<div class="flex flex-1 flex-col gap-[16px] items-center justify-end min-w-0 p-[24px] rounded-[30px]">
|
||||
<div class="relative shrink-0 size-[128px]">
|
||||
<div class="absolute inset-0 overflow-hidden pointer-events-none">
|
||||
<img alt="" class="absolute h-[187.32%] left-[-164.72%] max-w-none top-[3.1%] w-[335.61%]" src="/assets/trust-icon-sprite.png" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[8px] items-start w-full">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[16px] leading-[22px] w-full">Minimal and Focused</p>
|
||||
<p class="font-medium text-[#7a726d] text-[15px] leading-[1.5] w-full">Designed around essential messaging features without unnecessary complexity.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Divider -->
|
||||
<div class="hidden lg:block relative h-[118px] shrink-0 w-0">
|
||||
<div class="absolute inset-[0_-0.5px]">
|
||||
<img alt="" class="block max-w-none size-full" src="/assets/trust-divider.svg" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Card 3: Reliable Experience -->
|
||||
<div class="flex flex-1 flex-col gap-[16px] items-center justify-end min-w-0 p-[24px] rounded-[30px]">
|
||||
<div class="relative shrink-0 size-[128px]">
|
||||
<div class="absolute inset-0 overflow-hidden pointer-events-none">
|
||||
<img alt="" class="absolute h-[211.46%] left-[-187.93%] max-w-none top-[-105.62%] w-[378.86%]" src="/assets/trust-icon-sprite.png" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[8px] items-start w-full">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[16px] leading-[22px] w-full">Reliable Experience</p>
|
||||
<p class="font-medium text-[#7a726d] text-[15px] leading-[1.5] w-full">Focused on providing a stable and familiar communication experience.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Divider -->
|
||||
<div class="hidden lg:block relative h-[118px] shrink-0 w-0">
|
||||
<div class="absolute inset-[0_-0.5px]">
|
||||
<img alt="" class="block max-w-none size-full" src="/assets/trust-divider.svg" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Card 4: Continuous Improvement -->
|
||||
<div class="flex flex-1 flex-col gap-[16px] items-center justify-end min-w-0 p-[24px] rounded-[30px]">
|
||||
<div class="relative shrink-0 size-[128px]">
|
||||
<div class="absolute inset-0 overflow-hidden pointer-events-none">
|
||||
<img alt="" class="absolute left-[4.14%] max-w-none size-full top-0" src="/assets/trust-icon-improvement.png" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-[8px] items-start w-full">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[16px] leading-[22px] w-full">Continuous Improvement</p>
|
||||
<p class="font-medium text-[#7a726d] text-[15px] leading-[1.5] w-full">TalkPro will continue to improve its interface, features, and overall user experience.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -1,35 +1,36 @@
|
||||
---
|
||||
import type { Translations } from '../i18n/translations'
|
||||
|
||||
export interface Props {
|
||||
t: Translations['useCases']
|
||||
}
|
||||
|
||||
const { t } = Astro.props
|
||||
const rows = [
|
||||
{ title: 'Personal Conversations', desc: 'Message friends, family, and close contacts in a simple private chat experience.' },
|
||||
{ title: 'Communities', desc: 'Join group conversations and stay active in shared interest spaces.' },
|
||||
{ title: 'Teams and Projects', desc: 'Coordinate discussions, updates, and quick decisions in group chats.' },
|
||||
{ title: 'News and Updates', desc: 'Follow channels for announcements, information, and community content.' },
|
||||
]
|
||||
---
|
||||
|
||||
<section id="use-cases" class="use-cases">
|
||||
<div class="use-cases__inner">
|
||||
<div class="use-cases__copy">
|
||||
<div class="section-eyebrow">
|
||||
<span class="section-eyebrow__text">{t.eyebrow}</span>
|
||||
<section id="use-cases" class="bg-[#fef0eb] w-full flex items-start justify-center py-16 lg:py-[120px] px-4 lg:px-[130px]">
|
||||
<div class="flex flex-col lg:flex-row lg:gap-[40px] lg:items-center gap-8 w-full max-w-[1280px] mx-auto">
|
||||
<!-- Left: heading -->
|
||||
<div class="flex flex-col gap-[24px] items-start overflow-clip shrink-0 w-full lg:w-[540px] lg:shrink-0">
|
||||
<div class="bg-white border border-[#fbbfa3] flex items-center justify-center px-[24px] py-[12px] rounded-[9999px] shrink-0">
|
||||
<span class="font-bold text-[#f08458] text-[14px] text-center tracking-[-0.04px] whitespace-nowrap leading-normal">USE CASES</span>
|
||||
</div>
|
||||
<p class="use-cases__title">
|
||||
{t.title}
|
||||
<p class="font-bold text-[#1a1a1a] text-[32px] md:text-[40px] lg:text-[48px] tracking-[-1.16px] leading-[1.2] w-full">
|
||||
Made for Personal, Social, and Community Communication
|
||||
</p>
|
||||
<p class="use-cases__description">
|
||||
{t.description}
|
||||
<p class="font-normal text-[#7a726d] text-[18px] tracking-[-0.33px] leading-[1.5] w-full">
|
||||
With separate spaces for every context, TalkPro keeps your personal, social, and professional communications distinct and organized.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="use-cases__rows">
|
||||
{t.rows.map(row => (
|
||||
<div class="use-case-row">
|
||||
<div class="use-case-row__title-cell">
|
||||
<p class="use-case-row__title">{row.title}</p>
|
||||
<!-- Right: rows -->
|
||||
<div class="flex flex-1 flex-col items-start min-w-0 overflow-clip rounded-[30px] gap-px">
|
||||
{rows.map(row => (
|
||||
<div class="bg-[#faede8] flex flex-col sm:flex-row sm:h-[120px] items-stretch overflow-clip w-full shrink-0">
|
||||
<div class="bg-[#f08458] flex items-center px-[24px] sm:px-[36px] py-[16px] sm:py-[24px] shrink-0 w-full sm:w-[300px]">
|
||||
<p class="flex-1 font-semibold text-[18px] sm:text-[20px] text-white tracking-[-0.6px] leading-normal min-w-0">{row.title}</p>
|
||||
</div>
|
||||
<div class="use-case-row__description-cell">
|
||||
<p class="use-case-row__description">{row.desc}</p>
|
||||
<div class="bg-white flex flex-1 items-center min-w-0 px-[24px] sm:px-[36px] py-[16px] sm:py-[24px]">
|
||||
<p class="font-medium text-[#7a726d] text-[15px] leading-[1.5] flex-1 min-w-0">{row.desc}</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@@ -1,61 +1,83 @@
|
||||
---
|
||||
import type { Translations } from '../i18n/translations'
|
||||
|
||||
export interface Props {
|
||||
t: Translations['why']
|
||||
}
|
||||
|
||||
const { t } = Astro.props
|
||||
const underline = "/assets/why-underline.svg";
|
||||
const icons = [
|
||||
"/assets/why-icon-simple.svg",
|
||||
"/assets/why-icon-familiar.svg",
|
||||
"/assets/why-icon-connected.svg",
|
||||
"/assets/why-icon-modern.svg",
|
||||
]
|
||||
const iconClasses = ['why-card__icon--square', 'why-card__icon--familiar', 'why-card__icon--square', 'why-card__icon--modern']
|
||||
const underline = "/assets/why-underline.svg";
|
||||
const iconSimple = "/assets/why-icon-simple.svg";
|
||||
const iconFamiliar = "/assets/why-icon-familiar.svg";
|
||||
const iconConn = "/assets/why-icon-connected.svg";
|
||||
const iconModern = "/assets/why-icon-modern.svg";
|
||||
---
|
||||
|
||||
<section class="why">
|
||||
<div class="why__inner">
|
||||
<div class="why__intro">
|
||||
<div class="why__copy">
|
||||
<div class="section-eyebrow">
|
||||
<span class="section-eyebrow__text">{t.eyebrow}</span>
|
||||
<section class="bg-white w-full flex flex-col items-center justify-center py-16 lg:py-[120px]">
|
||||
<div class="flex flex-col gap-[40px] items-start w-full max-w-[1280px] mx-auto px-4 lg:px-0">
|
||||
|
||||
<!-- Header row -->
|
||||
<div class="flex flex-col lg:flex-row gap-[36px] items-start overflow-clip w-full">
|
||||
<!-- Left: pill + heading + description -->
|
||||
<div class="flex flex-1 flex-col gap-[36px] items-start min-w-0">
|
||||
<div class="bg-white border border-[#fbbfa3] flex items-center justify-center px-[24px] py-[12px] rounded-[9999px] shrink-0">
|
||||
<span class="font-bold text-[#f08458] text-[14px] text-center tracking-[-0.04px] whitespace-nowrap leading-normal">WHY TALKPRO</span>
|
||||
</div>
|
||||
<div class="why__text">
|
||||
<div class="why__title">
|
||||
<p class="why__title-line">{t.titleLine1}</p>
|
||||
<p class="why__title-line">{t.titleLine2}</p>
|
||||
<div class="flex flex-col gap-[24px] items-start w-full">
|
||||
<div class="font-bold text-[#1a1a1a] text-[32px] md:text-[40px] lg:text-[48px] tracking-[-1.16px] w-full">
|
||||
<p class="leading-[1.2] mb-0">Designed for the Way</p>
|
||||
<p class="leading-[1.2]">People Communicate Today</p>
|
||||
</div>
|
||||
<div class="why__underline">
|
||||
<div class="why__underline-frame">
|
||||
<img alt="" class="why__underline-image" src={underline} />
|
||||
<!-- Underline decoration -->
|
||||
<div class="relative h-0 w-[295.5px] shrink-0">
|
||||
<div class="absolute inset-[-0.5px_0]">
|
||||
<img alt="" class="block max-w-none size-full" src={underline} />
|
||||
</div>
|
||||
</div>
|
||||
<p class="why__description">
|
||||
{t.description}
|
||||
<p class="font-normal text-[#7a726d] text-[18px] tracking-[-0.33px] leading-[1.5] w-full">
|
||||
Communication today happens across personal conversations, communities, work groups, and content channels. TalkPro brings these essential communication experiences together in a simple and familiar interface, making it easier for users to connect, share, and stay updated.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="why__illustration">
|
||||
<img alt={t.illustrationAlt} class="why__illustration-image" src="/assets/why-illustration.png" />
|
||||
<!-- Right: illustration -->
|
||||
<div class="hidden lg:block relative shrink-0 size-[480px]">
|
||||
<img alt="People communicating with TalkPro" class="absolute inset-0 size-full object-contain" src="/assets/why-illustration.png" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="why__grid">
|
||||
{t.cards.map((card, index) => (
|
||||
<div class="why-card">
|
||||
<div class="why-card__icon-frame">
|
||||
<img alt="" class={`why-card__icon ${iconClasses[index]}`} src={icons[index]} />
|
||||
</div>
|
||||
<div class="why-card__copy">
|
||||
<p class="why-card__title">{card.title}</p>
|
||||
<p class="why-card__description">{card.desc}</p>
|
||||
</div>
|
||||
<!-- 2×2 card grid -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 w-full">
|
||||
<div class="bg-[#fef0eb] border border-[#e8e4de] flex gap-[24px] h-auto md:h-[152px] items-center min-w-0 overflow-clip p-[36px] rounded-[30px]">
|
||||
<div class="bg-[#f08458] aspect-square h-[80px] flex items-center justify-center overflow-clip rounded-[9999px] shrink-0">
|
||||
<img alt="" class="block size-[44px]" src={iconSimple} />
|
||||
</div>
|
||||
))}
|
||||
<div class="flex flex-1 flex-col gap-[12px] items-start min-w-0 overflow-clip">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[24px] tracking-[-0.47px] leading-[20px] w-full">Simple</p>
|
||||
<p class="font-medium text-[#7a726d] text-[16px] tracking-[-0.18px] leading-[1.5] w-full">An easy-to-use experience designed for everyday communication.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-[#fef0eb] border border-[#e8e4de] flex gap-[24px] h-auto md:h-[152px] items-center min-w-0 overflow-clip p-[36px] rounded-[30px]">
|
||||
<div class="bg-[#f08458] aspect-square h-[80px] flex items-center justify-center overflow-clip rounded-[9999px] shrink-0">
|
||||
<img alt="" class="block" style="width:38px;height:40px;" src={iconFamiliar} />
|
||||
</div>
|
||||
<div class="flex flex-1 flex-col gap-[12px] items-start min-w-0 overflow-clip">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[24px] tracking-[-0.47px] leading-[20px] w-full">Familiar</p>
|
||||
<p class="font-medium text-[#7a726d] text-[16px] tracking-[-0.18px] leading-[1.5] w-full">A messaging structure that feels natural from the first use.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-[#fef0eb] border border-[#e8e4de] flex gap-[24px] h-auto md:h-[152px] items-center min-w-0 overflow-clip p-[36px] rounded-[30px]">
|
||||
<div class="bg-[#f08458] aspect-square h-[80px] flex items-center justify-center overflow-clip rounded-[9999px] shrink-0">
|
||||
<img alt="" class="block size-[44px]" src={iconConn} />
|
||||
</div>
|
||||
<div class="flex flex-1 flex-col gap-[12px] items-start min-w-0 overflow-clip">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[24px] tracking-[-0.47px] leading-[20px] w-full">Connected</p>
|
||||
<p class="font-medium text-[#7a726d] text-[16px] tracking-[-0.18px] leading-[1.5] w-full">Private chats, groups, channels, voice, and video in one app.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-[#fef0eb] border border-[#e8e4de] flex gap-[24px] h-auto md:h-[152px] items-center min-w-0 overflow-clip p-[36px] rounded-[30px]">
|
||||
<div class="bg-[#f08458] aspect-square h-[80px] flex items-center justify-center overflow-clip rounded-[9999px] shrink-0">
|
||||
<img alt="" class="block" style="width:24px;height:44px;" src={iconModern} />
|
||||
</div>
|
||||
<div class="flex flex-1 flex-col gap-[12px] items-start min-w-0 overflow-clip">
|
||||
<p class="font-semibold text-[#0d0d0d] text-[24px] tracking-[-0.47px] leading-[20px] w-full">Modern</p>
|
||||
<p class="font-medium text-[#7a726d] text-[16px] tracking-[-0.18px] leading-[1.5] w-full">A refined interface with clean visuals and smooth interaction.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -3,23 +3,16 @@ import '../styles/global.css'
|
||||
|
||||
export interface Props {
|
||||
title?: string
|
||||
description?: string
|
||||
lang?: string
|
||||
}
|
||||
|
||||
const {
|
||||
title = 'Talk Pro - One User. Multiple Worlds.',
|
||||
description = 'Talk Pro is a modern messaging app for private chats, group conversations, channels, voice and video calls.',
|
||||
lang = 'en',
|
||||
} = Astro.props
|
||||
const { title = 'Talk Pro — One User. Multiple Worlds.' } = Astro.props
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang={lang}>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content={description} />
|
||||
<meta name="description" content="Talk Pro is a modern messaging app for private chats, group conversations, channels, voice and video calls." />
|
||||
<title>{title}</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
@@ -32,6 +25,7 @@ const {
|
||||
const header = document.getElementById('site-header');
|
||||
const getOffset = () => header ? header.offsetHeight : 0;
|
||||
|
||||
// Smooth scroll with header offset
|
||||
document.querySelectorAll('a[href^="#"]').forEach(link => {
|
||||
link.addEventListener('click', e => {
|
||||
const href = link.getAttribute('href');
|
||||
@@ -44,6 +38,7 @@ const {
|
||||
});
|
||||
});
|
||||
|
||||
// Active nav highlighting via IntersectionObserver
|
||||
const navLinks = document.querySelectorAll('[data-nav-link]');
|
||||
const sections = Array.from(navLinks)
|
||||
.map(l => document.querySelector(l.getAttribute('href') ?? ''))
|
||||
@@ -57,7 +52,8 @@ const {
|
||||
if (!visible) return;
|
||||
navLinks.forEach(link => {
|
||||
const active = link.getAttribute('href') === `#${visible.target.id}`;
|
||||
link.classList.toggle('is-active', active);
|
||||
link.classList.toggle('!text-[#f28a4b]', active);
|
||||
link.classList.toggle('text-[#7a726d]', !active);
|
||||
});
|
||||
}, { rootMargin: '-30% 0px -60% 0px', threshold: 0 });
|
||||
sections.forEach(s => observer.observe(s));
|
||||
|
||||
@@ -10,21 +10,17 @@ import Trust from '../components/Trust.astro'
|
||||
import AppPreview from '../components/AppPreview.astro'
|
||||
import DownloadCTA from '../components/DownloadCTA.astro'
|
||||
import Footer from '../components/Footer.astro'
|
||||
import { defaultLang, getTranslations } from '../i18n/translations'
|
||||
|
||||
const lang = defaultLang
|
||||
const t = getTranslations(lang)
|
||||
---
|
||||
|
||||
<Base lang={lang} title={t.meta.title} description={t.meta.description}>
|
||||
<Header lang={lang} t={t.header} />
|
||||
<Hero t={t.hero} />
|
||||
<WhyTalkPro t={t.why} />
|
||||
<CoreSystem t={t.core} />
|
||||
<Experience t={t.experience} />
|
||||
<UseCases t={t.useCases} />
|
||||
<Trust t={t.trust} />
|
||||
<AppPreview t={t.preview} />
|
||||
<DownloadCTA t={t.download} />
|
||||
<Footer t={t.footer} />
|
||||
<Base>
|
||||
<Header />
|
||||
<Hero />
|
||||
<WhyTalkPro />
|
||||
<CoreSystem />
|
||||
<Experience />
|
||||
<UseCases />
|
||||
<Trust />
|
||||
<AppPreview />
|
||||
<DownloadCTA />
|
||||
<Footer />
|
||||
</Base>
|
||||
|
||||
@@ -1,10 +1 @@
|
||||
/* UnoCSS handles reset and utilities via astro.config.mjs injectReset */
|
||||
@import './header.css';
|
||||
@import './hero.css';
|
||||
@import './sections.css';
|
||||
@import './download.css';
|
||||
@import './footer.css';
|
||||
@import './why.css';
|
||||
@import './features.css';
|
||||
@import './trust.css';
|
||||
@import './preview.css';
|
||||
|
||||
Reference in New Issue
Block a user