Skip to content

Commit

Permalink
Revert "Revert "the not so secret black friday commit which needs to …
Browse files Browse the repository at this point in the history
…be reversed""

This reverts commit f47cef4.
  • Loading branch information
jimirobaer committed Dec 3, 2024
1 parent 6594fe0 commit 8d66ad0
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 100 deletions.
24 changes: 6 additions & 18 deletions resources/views/front/pages/home/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,34 +1,22 @@
@php
$image = image("/backgrounds/bf-24-hero.jpg");
@endphp

@push('startBody')
<div class="wallpaper">
<img srcset="{{ $image->getSrcset() }}" src="{{ $image->getUrl() }}" width="2400" sizes="100vw" alt="" class="h-svh object-cover">
</div>
@endpush

<x-page
title="Websites & webapplications in Laravel"
background=""
bodyClass="bg-bf-dark-gray">
title="Websites & webapplications in Laravel"
background="/backgrounds/home-2020.jpg">
<x-slot name="description">
Spatie is a digital allrounder: we design solid websites & web applications using Laravel & Vue. No frills, just
proven expertise. From Antwerp, Belgium
</x-slot>

{{-- @include('front.pages.home.partials.banner') --}}
@include('front.pages.home.partials.bf-banner')
@include('front.pages.home.partials.banner')

<div class="mb-8">
<a href="{{ route('products.index') }}">
{{-- @include('front.pages.products.partials.ctaLaraconEU') --}}
{{-- @include('front.pages.products.partials.ctaLaraconEU') --}}
</a>
</div>

{{-- @include('front.pages.home.partials.news') --}}
@include('front.pages.home.partials.news')

<div class="section section-group section-fade bg-white">
<div class="section section-group section-fade">
@include('front.pages.home.partials.portfolio')
@include('front.pages.home.partials.newsletter')
@include('front.pages.home.partials.clients')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<section id="open-source" class="section bg-white">
<section id="open-source" class="section">
<div class="wrap wrap-8">
<div class="sm:col-span-3 sm:col-start-2">
<div class="markup links-underline links-blue">
Expand Down
153 changes: 72 additions & 81 deletions resources/views/front/pages/products/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,81 +1,72 @@
@php
$image = image("/backgrounds/bf-24-hero-alt.jpg");
@endphp

@push('startBody')
<div class="wallpaper">
<img srcset="{{ $image->getSrcset() }}" src="{{ $image->getUrl() }}" width="2400" sizes="100vw" alt="" class="h-screen object-cover">
</div>
@endpush

<x-page
ogImage="https://spatie.be/images/og-store.png"
title="Applications and digital courses built for modern developers"
background="/backgrounds/product.jpg"
description="Welcome in our store, by artisans for artisans. Get access to our paid products, courses and ebooks"
bodyClass="bg-bf-dark-gray"
>
{{-- <section id="banner" class="banner" role="banner">
<div class="wrap">
<h1 class="banner-slogan">
Welcome in <br>our store
</h1>
<section id="banner" class="banner" role="banner">
<div class="wrap">
<h1 class="banner-slogan">
Welcome in <br>our store
</h1>

<!--
<p class="banner-intro">
Applications and digital courses built for modern developers
</p>
-->
</div>
</section> --}}

@include('front.pages.products.partials.bf-banner')
</section>

{{-- @include('front.pages.products.partials.ctaLaraconEU') --}}
{{-- @include('front.pages.products.partials.ctaLaraconEU') --}}

<div class="section section-group">

<section class="section overflow-visible text-white">

<section class="section overflow-visible">
@if (count($bundles))
<div class="wrap">
<h2 class="title line-after mb-12">All of our products</h2>
</div>
<div class="wrap">
<h2 class="title line-after mb-12">All of our products</h2>
</div>
@endif
<div class="wrap">
<div class="grid gap-x-24 gap-y-24 | sm:grid-cols-2 items-stretch">
@foreach ($products as $product)
<div class="my-6">
@if($product->external && $product->action_url)
<a target="_blank" rel="nofollow noreferrer noopener" href="{{ $product->action_url }}" class="group">
@else
<a href="{{ route('products.show', $product) }}" class="group">
@endif
<div class="-mt-8 pb-6 transition-transform transform ease-in-out group-hover:-translate-y-2 duration-200">
<div class="shadow-md group-hover:shadow-lg">{{ $product->getFirstMedia('product-image') }}</div>
</div>

<h2 class="title-sm link-white link-underline-hover">{{ $product->title }}</h2>
@if(! $product->visible && current_user()?->hasAccessToUnReleasedProducts())<p class="mt-2 text-orange text-sm">This product is currently set to non-visible, it is visible to users that have access to unreleased products.</p>@endif
</a>

<p class="my-4 flex items-center space-x-4">
@if($product->external && $product->action_url)
<a target="_blank" rel="nofollow noreferrer noopener" href="{{ $product->action_url }}">
<x-button>{{ $product->action_label }}</x-button>
</a>
@else
<a href="{{ route('products.show', $product) }}">
<x-button>{{ $product->action_label }}</x-button>
</a>
@endif
</p>

@if ($purchasable = $product->purchasableWithDiscount())
<p class="mt-4">
Now at <b>-{{ $purchasable->displayableDiscountPercentage() }}%</b>
</p>
@endif

<div class="mt-4 text-gray-light">{{ $product->formattedDescription }}</div>
<a target="_blank" rel="nofollow noreferrer noopener" href="{{ $product->action_url }}" class="group">
@else
<a href="{{ route('products.show', $product) }}" class="group">
@endif
<div class="-mt-8 pb-6 transition-transform transform ease-in-out group-hover:-translate-y-2 duration-200">
<div class="shadow-md group-hover:shadow-lg">{{ $product->getFirstMedia('product-image') }}</div>
</div>

<h2 class="title-sm link-black link-underline-hover">{{ $product->title }}</h2>
@if(! $product->visible && current_user()?->hasAccessToUnReleasedProducts())<p class="mt-2 text-orange text-sm">This product is currently set to non-visible, it is visible to users that have access to unreleased products.</p>@endif
</a>

<p class="my-4 flex items-center space-x-4">
@if($product->external && $product->action_url)
<a target="_blank" rel="nofollow noreferrer noopener" href="{{ $product->action_url }}">
<x-button>{{ $product->action_label }}</x-button>
</a>
@else
<a href="{{ route('products.show', $product) }}">
<x-button>{{ $product->action_label }}</x-button>
</a>
@endif
</p>

@if ($purchasable = $product->purchasableWithDiscount())
<p class="mt-4">
Now at <b>-{{ $purchasable->displayableDiscountPercentage() }}%</b>
</p>
@endif



<p class="mt-4">{{ $product->formattedDescription }}</p>

</div>
@endforeach
Expand All @@ -84,35 +75,35 @@
</section>

@if (count($bundles))
<section class="section overflow-visible text-white">
<div class="wrap">
<h2 class="title line-after mb-12">Check our bundle promotions!</h2>
</div>
<div class="wrap">
<div class="grid gap-x-24 gap-y-24 | sm:grid-cols-2 items-stretch">
@foreach ($bundles as $bundle)
<div class="my-6">
<a href="{{ route('bundles.show', $bundle) }}" class="group">
<div class="-mt-8 pb-6 transition-transform transform ease-in-out group-hover:-translate-y-2 duration-200">
<div class="shadow-md group-hover:shadow-lg">{{ $bundle->getFirstMedia('image') }}</div>
</div>
<h2 class="title-sm link-white link-underline-hover">{{ $bundle->title }}</h2>
</a>

<p class="my-4 flex items-center space-x-4">
<a href="{{ route('bundles.show', $bundle) }}">
<x-button>Buy Bundle</x-button>
<section class="section overflow-visible">
<div class="wrap">
<h2 class="title line-after mb-12">Check our bundle promotions!</h2>
</div>
<div class="wrap">
<div class="grid gap-x-24 gap-y-24 | sm:grid-cols-2 items-stretch">
@foreach ($bundles as $bundle)
<div class="my-6">
<a href="{{ route('bundles.show', $bundle) }}" class="group">
<div class="-mt-8 pb-6 transition-transform transform ease-in-out group-hover:-translate-y-2 duration-200">
<div class="shadow-md group-hover:shadow-lg">{{ $bundle->getFirstMedia('image') }}</div>
</div>
<h2 class="title-sm link-black link-underline-hover">{{ $bundle->title }}</h2>
</a>
</p>

<div class="mt-4 text-gray-light">{{ $bundle->formattedDescription }}</div>
<p class="my-4 flex items-center space-x-4">
<a href="{{ route('bundles.show', $bundle) }}">
<x-button>Buy Bundle</x-button>
</a>
</p>

<p class="mt-4">{{ $bundle->formattedDescription }}</p>

</div>
@endforeach
</div>
@endforeach
</div>
</div>
</div>
</section>
@endif
</div>
</section>
@endif
</div>

</x-page>

0 comments on commit 8d66ad0

Please sign in to comment.