-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:rapidez/checkout-theme into feat/…
…out-of-stock-cart
- Loading branch information
Showing
25 changed files
with
128 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<footer class="mt-auto"> | ||
<div class="mt-10 flex items-center justify-center gap-6 border-b-4 border-b-ct-enhanced bg-ct-inactive-100 py-4 text-sm text-ct-inactive"> | ||
@foreach (['Privacy Policy', 'Terms & Conditions'] as $link) | ||
<a class="hover:underline" href="#"> | ||
{{ $link }} | ||
</a> | ||
@endforeach | ||
</div> | ||
</footer> |
16 changes: 16 additions & 0 deletions
16
resources/core-overwrites/layouts/checkout/header.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="bg-inactive-100 text-ct-inactive relative py-3 text-xs font-semibold"> | ||
<slider reference="header-usp-slider" autoplay loop> | ||
<div | ||
ref="header-usp-slider" | ||
class="scrollbar-hide flex snap-x snap-mandatory items-center gap-7 overflow-x-auto lg:justify-center" | ||
slot-scope="{ navigate, currentSlide, slidesTotal }" | ||
> | ||
@foreach (['Wide range of products', 'Free returns', 'All items shown are in stock', 'Free shipping'] as $usp) | ||
<div class="flex shrink-0 snap-center items-center justify-center gap-2 max-lg:w-full"> | ||
<x-heroicon-o-check class="size-4 text-ct-enhanced stroke-2" /> | ||
<span>{{ $usp }}</span> | ||
</div> | ||
@endforeach | ||
</div> | ||
</slider> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@props(['tag']) | ||
<x-tag | ||
<x-rapidez::tag | ||
is="{{ $tag ?? ($attributes->has('href') || $attributes->has('v-bind:href') ? 'a' : 'button') }}" | ||
{{ $attributes->merge(['class' => 'underline text-ct-inactive text-right disabled:no-underline disabled:cursor-not-allowed disabled:opacity-50']) }} | ||
> | ||
{{ $slot }} | ||
</x-tag> | ||
</x-rapidez::tag> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div {{ $attributes->class('mt-10 space-y-5 lg:mt-[52px] lg:w-[340px] xl:w-[370px]') }}> | ||
<div {{ $attributes->class('space-y-5 lg:w-[340px] xl:w-[370px]') }}> | ||
{{ $slot }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 300 300"><g clip-path="url(#a)"><path fill="url(#b)" d="M93.5999 61.9497H112.65c7.05 0 12.75 5.7 12.75 12.75s-5.7 12.75-12.75 12.75H93.5999c-7.0501 0-12.75-5.7-12.75-12.75s5.85-12.75 12.75-12.75Z"/><path fill="url(#c)" d="M46.05 162.6h60.3c7.05 0 12.75 5.7 12.75 12.75s-5.7 12.75-12.75 12.75h-60.3c-7.05 0-12.75-5.7-12.75-12.75 0-7.35 5.7-12.75 12.75-12.75Z"/><path fill="url(#d)" fill-opacity=".95" d="M244.5 61.9497h-93.75c-7.05 0-12.75 5.7-12.75 12.75 0 6 4.5 11.1 10.2 12.45h20.85c5.7 1.2 10.2 6.3 10.2 12.45 0 7.0503-5.7 12.7503-12.75 12.7503H84.75c-5.7 1.2-10.2 6.3-10.2 12.45 0 6.15 4.5 11.1 10.2 12.45h88.35c7.05 0 12.75 5.7 12.75 12.75s-5.7 12.75-12.75 12.75h-31.2c-5.7 1.2-10.2 6.3-10.2 12.45 0 6.15 4.5 11.1 10.2 12.45h12c.9 0 1.65 0 2.55.3.3 0 .3 0 .6.3.6 0 .9.3 1.65.3.3 0 .6.3.9.3.3.3.9.3 1.2.6.3.3.6.3.9.6l.9.9.6.6.9.9c.3.3.3.6.6.9.3.3.3.9.6 1.2 0 .3.3.6.3.9.3.6.3.9.3 1.65 0 .3 0 .6.3.6 0 .6.3 1.65.3 2.55 0 7.05-5.7 12.75-12.75 12.75H33.3c-.9 0-1.65 0-2.55-.3h-16.5c-7.05 0-12.75 5.7-12.75 12.75s5.7 12.75 12.75 12.75H184.2l11.7-66.45h10.2l24.75 66.45h48.3l-28.2-70.2c28.65-7.95 44.55-28.95 48.3-50.85 5.7-30.4502-11.55-55.2002-54.75-55.2003ZM255.3 119.1c-2.55 13.65-11.4 22.2-27.6 22.2H201l7.65-44.1003 26.7.0001c16.5 0 22.5 8.5502 19.95 21.9002Z"/></g><defs><linearGradient id="b" x1="103.158" x2="103.158" y1="61.9119" y2="87.3267" gradientUnits="userSpaceOnUse"><stop stop-color="#27AE60"/><stop offset="1" stop-color="#34CDB1"/></linearGradient><linearGradient id="c" x1="76.1552" x2="76.1552" y1="162.618" y2="188.032" gradientUnits="userSpaceOnUse"><stop stop-color="#27AE60"/><stop offset="1" stop-color="#34CDB1"/></linearGradient><linearGradient id="d" x1="150.867" x2="150.867" y1="61.9119" y2="237.907" gradientUnits="userSpaceOnUse"><stop stop-color="#202F60"/><stop offset="1" stop-color="#205060"/></linearGradient><clipPath id="a"><path fill="#fff" d="M0 0h300v300H0z"/></clipPath></defs></svg> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 300 300"><path fill="#2EBA86" d="M93.6 61.95h19.05c7.05 0 12.75 5.7 12.75 12.75s-5.7 12.75-12.75 12.75H93.6c-7.05 0-12.75-5.7-12.75-12.75S86.7 61.95 93.6 61.95ZM46.05 162.6h60.3c7.05 0 12.75 5.7 12.75 12.75s-5.7 12.75-12.75 12.75h-60.3c-7.05 0-12.75-5.7-12.75-12.75 0-7.35 5.7-12.75 12.75-12.75Z"/><path fill="#203F60" fill-opacity=".95" d="M244.5 61.95h-93.75c-7.05 0-12.75 5.7-12.75 12.75 0 6 4.5 11.1 10.2 12.45h20.85c5.7 1.2 10.2 6.3 10.2 12.45 0 7.05-5.7 12.75-12.75 12.75H84.75c-5.7 1.2-10.2 6.3-10.2 12.45 0 6.15 4.5 11.1 10.2 12.45h88.35c7.05 0 12.75 5.7 12.75 12.75s-5.7 12.75-12.75 12.75h-31.2c-5.7 1.2-10.2 6.3-10.2 12.45 0 6.15 4.5 11.1 10.2 12.45h12c.9 0 1.65 0 2.55.3.3 0 .3 0 .6.3.6 0 .9.3 1.65.3.3 0 .6.3.9.3.3.3.9.3 1.2.6.3.3.6.3.9.6l.9.9.6.6.9.9c.3.3.3.6.6.9.3.3.3.9.6 1.2 0 .3.3.6.3.9.3.6.3.9.3 1.65 0 .3 0 .6.3.6 0 .6.3 1.65.3 2.55 0 7.05-5.7 12.75-12.75 12.75H33.3c-.9 0-1.65 0-2.55-.3h-16.5c-7.05 0-12.75 5.7-12.75 12.75s5.7 12.75 12.75 12.75H184.2l11.7-66.45h10.2l24.75 66.45h48.3l-28.2-70.2c28.65-7.95 44.55-28.95 48.3-50.85 5.7-30.45-11.55-55.2-54.75-55.2Zm10.8 57.15c-2.55 13.65-11.4 22.2-27.6 22.2H201l7.65-44.1h26.7c16.5 0 22.5 8.55 19.95 21.9Z"/></svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div {{ $attributes->class('space-y-0.5 mt-5 mb-6') }}> | ||
<div {{ $attributes->class('space-y-0.5 mb-6') }}> | ||
{{ $slot }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@props(['tag' => 'ul']) | ||
<x-tag is="{{ $tag }}" {{ $attributes->class('flex flex-col text-sm mt-1 divide-y [&>*]:py-4 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0 [&>*]:flex [&>*]:flex-wrap [&>*]:justify-between') }}> | ||
<x-rapidez::tag is="{{ $tag }}" {{ $attributes->class('flex flex-col text-sm mt-1 divide-y [&>*]:py-4 [&>*:first-child]:pt-0 [&>*:last-child]:pb-0 [&>*]:flex [&>*]:flex-wrap [&>*]:justify-between') }}> | ||
{{ $slot }} | ||
</x-tag> | ||
</x-rapidez::tag> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
@aware(['checkoutSteps', 'currentStep', 'currentStepKey']) | ||
<div class="flex flex-wrap gap-1 items-baseline justify-between"> | ||
<x-rapidez-ct::title {{ $attributes->except(['checkoutSteps', 'currentStep', 'currentStepKey']) }}> | ||
{{ $slot }} | ||
</x-rapidez-ct::title> | ||
@php($isAnchor = $attributes->filter(null)->hasAny('href', ':href', 'v-bind:href')) | ||
<div class="flex flex-wrap items-end justify-between gap-1"> | ||
<div class="flex gap-5 max-lg:flex-col lg:-translate-x-10"> | ||
<div class="flex items-center gap-5 lg:items-center"> | ||
@if ($isAnchor) | ||
<a href="{{ $attributes->get('href', ':href', 'v-bind:href') }}" class="max-lg:size-14 max-lg:flex max-lg:items-center max-lg:justify-center max-lg:rounded-full max-lg:border"> | ||
<x-heroicon-o-arrow-left class="text-ct-primary size-5" /> | ||
</a> | ||
@endif | ||
<a href="{{ url('/') }}" class="*:h-auto *:max-h-16 *:w-full *:object-contain lg:hidden"> | ||
<x-rapidez-ct::logo /> | ||
</a> | ||
</div> | ||
<x-rapidez-ct::title {{ $attributes->except(['checkoutSteps', 'currentStep', 'currentStepKey']) }}> | ||
{{ $slot }} | ||
</x-rapidez-ct::title> | ||
</div> | ||
<x-rapidez-ct::progress-bar /> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
@props(['tag' => ($isAnchor = $attributes->filter(null)->hasAny('href', ':href', 'v-bind:href')) ? 'a' : 'p']) | ||
<x-tag is="{{ $tag }}" {{ $attributes->class('font-medium relative group') }}> | ||
@if ($isAnchor) | ||
<x-heroicon-o-arrow-left class="xl:absolute max-xl:mb-5 left-0 top-1/2 h-4 xl:-translate-x-full xl:-translate-y-1/2 xl:pr-6 text-ct-inactive group-hover:text-ct-primary transition" /> | ||
@endif | ||
<div {{ $attributes->class('font-medium relative group') }}> | ||
{{ $slot }} | ||
</x-tag> | ||
</div> |