temporary image handling and some responsive

This commit is contained in:
elvira committed 2026-10-24 00:51:38 +03:00
1 parent 0ae5f49bcf
commit 50ec0eebf2
27 files changed
+107 -48

No files matched your search

+11
View File
@@ -34,6 +34,17 @@ @theme {
BASE
═══════════════════════════════════════════════════════════════════ */
@layer base {
/* Heading scale steps down below `lg`, so a heading keeps one class
(text-h2) at every size instead of stepping text-h3 sm:text-h2. */
@media (width < 64rem) {
:root {
--text-h1: 48px;
--text-h2: 40px;
--text-h3: 30px;
--text-h4: 22px;
}
}
body {
background-color: theme(colors.neutral.200);
font-family: var(--font-sans);
+1 -1
View File
@@ -7,7 +7,7 @@
<div class="flex max-w-2xl flex-col gap-12">
<div class="flex flex-col gap-6">
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
<h1 class="font-display text-h2 font-black tracking-tight">
{{ __('storefront.auth.enter_code') }}
</h1>
+1 -1
View File
@@ -7,7 +7,7 @@
<div class="flex max-w-2xl flex-col gap-12">
<div class="flex flex-col gap-6">
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
<h1 class="font-display text-h2 font-black tracking-tight">
{{ __('storefront.account.email_change_heading') }}
</h1>
@@ -6,7 +6,7 @@
<div class="flex max-w-4xl flex-col gap-12">
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
<h1 class="font-display text-h2 font-black tracking-tight">
{{ __('storefront.account.nav_orders') }}
</h1>
@@ -21,7 +21,7 @@
{{ __('storefront.orders.back') }}
</a>
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
<h1 class="font-display text-h2 font-black tracking-tight">
{{ __('storefront.orders.order_title', ['number' => $orderReference]) }}
</h1>
</div>
+1 -1
View File
@@ -17,7 +17,7 @@
<div class="flex max-w-2xl flex-col gap-16">
<div class="flex flex-col gap-6">
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
<h1 class="font-display text-h2 font-black tracking-tight">
{{ __('storefront.account.nav_profile') }}
</h1>
+1 -1
View File
@@ -6,7 +6,7 @@
<div class="flex flex-col gap-12">
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
<h1 class="font-display text-h2 font-black tracking-tight">
{{ __('storefront.account.nav_wishlist') }}
</h1>
+2 -2
View File
@@ -8,9 +8,9 @@
@section('content')
<section class="mx-auto max-w-2xl px-4 py-20 sm:px-8 sm:py-32">
<section class="mx-auto max-w-2xl px-5 py-20 sm:px-8 sm:py-32">
<h1 class="mb-6 font-display text-h3 font-black tracking-tight sm:text-h2">
<h1 class="mb-6 font-display text-h2 font-black tracking-tight">
{{ __('storefront.auth.enter_code') }}
</h1>
+2 -2
View File
@@ -13,9 +13,9 @@
@section('content')
<section class="mx-auto max-w-2xl px-4 py-20 sm:px-8 sm:py-32">
<section class="mx-auto max-w-2xl px-5 py-20 sm:px-8 sm:py-32">
<h1 class="mb-6 font-display text-h3 font-black tracking-tight sm:text-h2">
<h1 class="mb-6 font-display text-h2 font-black tracking-tight">
{{ __('storefront.auth.login') }}
</h1>
+2 -2
View File
@@ -15,10 +15,10 @@
@section('content')
{{-- <div class="max-w-5xl mx-auto pt-26 pb-12"> --}}
<div class="max-w-7xl mx-auto px-4 sm:px-8 pt-12 pb-12 lg:pt-26">
<div class="max-w-7xl mx-auto px-5 sm:px-8 pt-12 pb-12 lg:pt-26">
<div class="flex items-end justify-between gap-x-6 gap-y-3 flex-wrap mb-10 lg:mb-16">
<h1 class="font-medium text-h3 lg:text-h2">{{ $collection['name'] }}</h1>
<h1 class="font-medium text-h2">{{ $collection['name'] }}</h1>
<x-breadcrumb :items="[
['label' => __('storefront.nav.home'), 'href' => route('home')],
+1 -1
View File
@@ -1,5 +1,5 @@
<footer class="border-t border-black">
<div class="max-w-7xl mx-auto px-4 py-12 flex flex-col items-center gap-10 sm:px-8 lg:px-10 lg:py-20 lg:gap-16">
<div class="max-w-7xl mx-auto px-5 py-12 flex flex-col items-center gap-10 sm:px-8 lg:px-10 lg:py-20 lg:gap-16">
{{-- Logo --}}
<a href="{{ url('/'.app()->getLocale()) }}" class="shrink-0">
+5 -4
View File
@@ -1,5 +1,6 @@
<header class="sticky top-0 z-50 h-20 bg-neutral-200 border-b border-black lg:h-26">
<div class="flex items-center gap-4 px-4 max-lg:h-full sm:px-8 lg:gap-14 lg:px-10">
{{-- No bottom border on the mobile homepage, so the header runs straight into the hero. --}}
<header @class(['sticky top-0 z-50 h-20 bg-neutral-200 border-b border-black lg:h-26', 'max-lg:border-b-0' => request()->routeIs('home')])>
<div class="flex items-center gap-4 px-5 max-lg:h-full sm:px-8 lg:gap-14 lg:px-10">
{{-- Logo --}}
<a href="{{ url('/'.app()->getLocale()) }}" class="shrink-0 lg:py-4">
@@ -119,9 +120,9 @@ class="burger flex h-10 w-10.5 shrink-0 flex-col items-center justify-center gap
id="mobile-nav"
popover
aria-label="{{ __('storefront.nav.menu') }}"
class="mobile-menu fixed inset-x-0 top-20 bottom-auto m-0 max-h-[calc(100dvh-5rem)] w-full max-w-none overflow-y-auto border-0 border-b border-black bg-neutral-200 p-0 text-black"
class="mobile-menu fixed inset-x-0 top-20 bottom-auto m-0 max-h-[calc(100dvh-5rem)] w-full max-w-none overflow-y-auto border-0 bg-neutral-200 p-0 text-black"
>
<div class="flex flex-col gap-8 px-4 py-6 sm:px-8">
<div class="flex flex-col gap-8 px-5 py-6 sm:px-8">
<ul class="flex flex-col gap-5 font-display font-extrabold italic">
<li class="flex flex-col gap-4">
@@ -4,9 +4,9 @@
<section {{ $attributes }}>
<div class="grid grid-cols-1 lg:grid-cols-2">
<div class="flex flex-col justify-center gap-8 px-4 py-12 sm:px-8 lg:py-16 lg:px-16 items-center">
<div class="flex flex-col justify-center gap-8 px-5 py-12 sm:px-8 lg:py-16 lg:px-16 items-center">
<h2
class="text-h3 sm:text-h2 lg:text-h1 leading-[1.3] max-w-xl text-center"
class="text-h1 leading-[1.3] max-w-xl text-center"
aria-label="Γράψου στο newsletter μας"
data-controller="appear"
data-appear-visible-class="is-visible"
@@ -2,7 +2,7 @@
<section {{ $attributes }}>
<div class="max-w-3xl bg-brand mx-auto px-6 py-12 sm:px-16 sm:py-16 flex flex-col items-center text-center gap-8 border-1">
<p class="text-h4 sm:text-h3 leading-snug">Γράψου στο newsletter για <span class="font-extrabold italic">5% έκπτωση</span> στην πρώτη σου παραγγελία</p>
<p class="text-h3 leading-snug">Γράψου στο newsletter για <span class="font-extrabold italic">5% έκπτωση</span> στην πρώτη σου παραγγελία</p>
<form method="POST" action="#" class="w-full flex flex-col gap-5">
@csrf
@@ -26,7 +26,7 @@ class="fixed w-full inset-x-0 top-0 bottom-auto m-0 border-0 bg-transparent p-0"
method="get"
action="{{ route('search') }}"
data-nav-search-target="form"
class="flex h-[var(--search-overlay-h)] items-center gap-4 bg-brand px-4 sm:px-8 lg:gap-6 lg:px-10"
class="flex h-[var(--search-overlay-h)] items-center gap-4 bg-brand px-5 sm:px-8 lg:gap-6 lg:px-10"
>
<label id="search-overlay-label" for="search-overlay-input" class="sr-only">{{ __('storefront.shop.search_label') }}</label>
<input
+3 -3
View File
@@ -13,13 +13,13 @@
<section class="grid grid-cols-1 lg:grid-cols-2 lg:divide-x lg:divide-black lg:min-h-[calc(100vh-102px)]">
<div class="flex flex-col justify-center gap-10 px-4 py-12 sm:px-8 lg:py-16 lg:px-16">
<div class="flex flex-col justify-center gap-10 px-5 py-12 sm:px-8 lg:py-16 lg:px-16">
<svg viewBox="0 0 135 124" class="rotating-star text-brand w-24 h-24 lg:w-40 lg:h-40" aria-hidden="true" fill="currentColor">
<path d="m88.4 0 4 28.9 29.7-5.2-14.3 25.7L135 62l-27.2 12.6 14.3 25.7-29.7-5.2-4 28.9-20.9-21.1L46.6 124l-4-28.9-29.7 5.2 14.3-25.7L0 62l27.2-12.6-14.3-25.7 29.7 5.2 4-28.9 20.9 21.1L88.4 0z"/>
</svg>
<h1 class="font-display text-h3 sm:text-h2 lg:text-h1 font-semibold leading-tight"
<h1 class="font-display text-h1 font-semibold leading-tight"
data-controller="appear"
data-appear-visible-class="is-visible">
<span class="text-dance" data-stoic="pages/contact#heading_first">{{ $page->heading_first }}</span><br>
@@ -75,7 +75,7 @@ class="h-captcha min-h-[78px]"
</div>
<div class="flex flex-col justify-center border-t border-black px-4 py-12 sm:px-8 lg:border-t-0 lg:py-16 lg:px-16">
<div class="flex flex-col justify-center border-t border-black px-5 py-12 sm:px-8 lg:border-t-0 lg:py-16 lg:px-16">
<x-contact-details :store="$store" />
</div>
+2 -2
View File
@@ -13,9 +13,9 @@
@section('content')
<section class="flex flex-col items-center justify-center gap-8 px-4 py-16 text-center sm:px-8 lg:py-24 min-h-[calc(100vh-12rem)] sm:min-h-[calc(100vh-8rem)]">
<section class="flex flex-col items-center justify-center gap-8 px-5 py-16 text-center sm:px-8 lg:py-24 min-h-[calc(100vh-12rem)] sm:min-h-[calc(100vh-8rem)]">
<h1 class="font-display text-h3 sm:text-h2 lg:text-h1 font-semibold leading-tight">@yield('error_title')</h1>
<h1 class="font-display text-h1 font-semibold leading-tight">@yield('error_title')</h1>
<p class="max-w-xl">@yield('error_text')</p>
+8 -8
View File
@@ -25,13 +25,13 @@
{{-- Hero --}}
<div class="grid grid-cols-1 lg:grid-cols-2 lg:divide-x lg:divide-black border-b border-black min-h-[calc(100vh-102px)]">
<div class="flex flex-col justify-center gap-8 px-4 py-12 sm:px-8 lg:py-16 lg:px-16">
<svg viewBox="0 0 135 124" class="rotating-star w-28 h-auto text-[#f3d121] lg:w-[173px] lg:h-[159px]" aria-hidden="true" fill="currentColor">
<div class="flex flex-col justify-center gap-8 px-5 pt-8 pb-4 sm:px-8 lg:py-16 lg:px-16">
<svg viewBox="0 0 135 124" class="rotating-star w-22 h-auto text-[#f3d121] lg:w-[173px] lg:h-[159px]" aria-hidden="true" fill="currentColor">
<path d="m88.4 0 4 28.9 29.7-5.2-14.3 25.7L135 62l-27.2 12.6 14.3 25.7-29.7-5.2-4 28.9-20.9-21.1L46.6 124l-4-28.9-29.7 5.2 14.3-25.7L0 62l27.2-12.6-14.3-25.7 29.7 5.2 4-28.9 20.9 21.1L88.4 0z"/>
</svg>
<h1
class="font-display font-semibold text-4xl sm:text-6xl lg:text-[72px] leading-tight"
class="font-display font-semibold text-5xl sm:text-6xl lg:text-[72px] leading-tight"
aria-label="Ό,τι φαντάζεσαι, το τυπώνουμε"
data-controller="appear"
data-appear-visible-class="is-visible"
@@ -145,8 +145,8 @@ class="w-full h-full object-cover "
@endif
</div>
<div class="flex flex-col justify-center gap-6 px-4 py-12 sm:px-8 lg:py-16 lg:px-16 text-center">
<h2 class="font-semibold text-h3 lg:text-h2"
<div class="flex flex-col justify-center gap-6 px-5 py-12 sm:px-8 lg:py-16 lg:px-16 text-center">
<h2 class="font-semibold text-h2"
data-controller="appear"
data-appear-visible-class="is-visible">100% σουρεάλ & <span class="text-dance" data-text="3d-printed">3d-printed</span></h2>
<div class="max-w-md mx-auto" data-stoic="pages/home#trivia_body">
@@ -175,12 +175,12 @@ class="w-full max-w-xs"
{{-- Classics --}}
<div class="border-b border-black" data-controller="carousel">
<div class="flex flex-col items-start gap-6 px-4 py-10 border-b border-black sm:flex-row sm:items-center sm:justify-between sm:gap-4 sm:px-8 lg:py-12">
<h2 class="font-display font-extrabold text-h3 lg:text-h2" data-stoic="pages/home#classics_title">{{ $page->classics_title }}</h2>
<div class="flex flex-col items-start gap-6 px-5 py-10 border-b border-black sm:flex-row sm:items-center sm:justify-between sm:gap-4 sm:px-8 lg:py-12">
<h2 class="font-display font-extrabold text-h2" data-stoic="pages/home#classics_title">{{ $page->classics_title }}</h2>
<x-ui.button size="lg" :href="route('products')">Όλα τα προϊόντα</x-ui.button>
</div>
<div class="flex flex-wrap items-center justify-center gap-x-12 gap-y-8 px-4 py-10 sm:flex-nowrap sm:gap-6 sm:px-8 lg:py-12">
<div class="flex flex-wrap items-center justify-center gap-x-12 gap-y-8 px-5 py-10 sm:flex-nowrap sm:gap-6 sm:px-8 lg:py-12">
<button type="button" data-action="carousel#prev" aria-label="Προηγούμενα προϊόντα" class="shrink-0 hover:-translate-x-0.5 hover:opacity-60 transition duration-500">
<x-ui.icon name="arrow-left" :size="32" />
</button>
+2 -2
View File
@@ -39,7 +39,7 @@
<aside class="border-b border-black lg:w-80 lg:shrink-0 lg:border-b-0 lg:border-r">
<nav aria-label="{{ __('storefront.nav.account') }}">
<ul class="flex gap-8 overflow-x-auto px-4 py-5 sm:px-8 lg:flex-col lg:gap-5 lg:overflow-visible lg:px-10 lg:py-12">
<ul class="flex gap-8 overflow-x-auto px-5 py-5 sm:px-8 lg:flex-col lg:gap-5 lg:overflow-visible lg:px-10 lg:py-12">
@foreach ($accountNav as $item)
<li class="shrink-0">
<a
@@ -62,7 +62,7 @@
</nav>
</aside>
<div class="min-w-0 flex-1 px-4 py-12 sm:px-8 lg:px-16 lg:py-16">
<div class="min-w-0 flex-1 px-5 py-12 sm:px-8 lg:px-16 lg:py-16">
@yield('account')
</div>
+2 -2
View File
@@ -12,10 +12,10 @@
@section('content')
<section class="mx-auto max-w-2xl px-4 py-20 sm:px-8 sm:py-32">
<section class="mx-auto max-w-2xl px-5 py-20 sm:px-8 sm:py-32">
<div class="mb-12 text-center">
<h1 class="mt-2 font-display text-h3 font-black tracking-tight sm:text-h2" data-stoic="pages/{{ $page->slug }}#name">
<h1 class="mt-2 font-display text-h2 font-black tracking-tight" data-stoic="pages/{{ $page->slug }}#name">
{{ $page->name }}
</h1>
</div>
+5 -2
View File
@@ -4,7 +4,7 @@
@section('description', $product['description'])
@section('content')
<div class="max-w-7xl mx-auto px-4 sm:px-8 py-12">
<div class="max-w-7xl mx-auto px-5 sm:px-8 py-12">
<x-breadcrumb class="mb-8 justify-end lg:mb-14" :items="[
$collection
@@ -34,7 +34,10 @@ class="relative flex flex-col-reverse gap-4 lg:flex-row lg:items-start"
@if(!empty($product['media']))
{{-- Thumbnails --}}
<div class="flex flex-col items-center gap-1 w-full shrink-0 lg:w-[116px] lg:-mt-12.5">
<div @class([
'flex flex-col items-center gap-1 w-full shrink-0 lg:w-[116px] lg:-mt-12.5',
'max-lg:hidden' => count($product['media']) === 1,
])>
<button
type="button"
data-action="click->product-gallery#scrollUp"
+2 -2
View File
@@ -13,10 +13,10 @@
@section('content')
{{-- <div class="max-w-5xl mx-auto pt-26 pb-12"> --}}
<div class="max-w-7xl mx-auto px-4 sm:px-8 pt-12 pb-12 lg:pt-26">
<div class="max-w-7xl mx-auto px-5 sm:px-8 pt-12 pb-12 lg:pt-26">
<div class="flex items-end justify-between gap-x-6 gap-y-3 flex-wrap mb-10 lg:mb-16">
<h1 class="font-medium text-h3 lg:text-h2">{{ __('storefront.shop.all_products') }}</h1>
<h1 class="font-medium text-h2">{{ __('storefront.shop.all_products') }}</h1>
<x-breadcrumb :items="[
['label' => __('storefront.nav.home'), 'href' => route('home')],
+2 -2
View File
@@ -13,10 +13,10 @@
@section('content')
{{-- <div class="max-w-5xl mx-auto pt-26 pb-12"> --}}
<div class="max-w-7xl mx-auto px-4 sm:px-8 pt-12 pb-12 lg:pt-26">
<div class="max-w-7xl mx-auto px-5 sm:px-8 pt-12 pb-12 lg:pt-26">
<div class="flex items-end justify-between gap-x-6 gap-y-3 flex-wrap mb-10 lg:mb-16">
<h1 class="font-medium text-h3 lg:text-h2">{{ $heading }}</h1>
<h1 class="font-medium text-h2">{{ $heading }}</h1>
<x-breadcrumb :items="[
['label' => __('storefront.nav.home'), 'href' => route('home')],
@@ -62,7 +62,7 @@ class="inline-flex items-center gap-2 font-display font-bold uppercase italic lg
aria-label="{{ __('storefront.shop.filters') }}"
class="drawer fixed inset-y-0 left-0 right-auto m-0 h-dvh max-h-dvh w-full max-w-sm overflow-y-auto border-0 border-r border-black bg-neutral-200 p-0 text-black lg:static lg:block lg:h-auto lg:max-h-none lg:w-auto lg:max-w-none lg:overflow-visible lg:border-r-0 lg:bg-transparent lg:transform-none"
>
<div class="flex flex-col gap-10 px-4 py-6 sm:px-8 lg:p-0">
<div class="flex flex-col gap-10 px-5 py-6 sm:px-8 lg:p-0">
<button
type="button"
+2 -2
View File
@@ -9,10 +9,10 @@
@section('content')
<section class="flex flex-col gap-12 px-4 py-20 sm:px-8 lg:px-16">
<section class="flex flex-col gap-12 px-5 py-20 sm:px-8 lg:px-16">
<div class="flex flex-col gap-6">
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
<h1 class="font-display text-h2 font-black tracking-tight">
{{ __('storefront.account.nav_wishlist') }}
</h1>