Files
citrus/resources/views/components/company-history/hero.blade.php
T

80 lines
3.4 KiB
PHP

@props([
'titleBefore' => null,
'highlight' => null,
'titleAfter' => null,
'subtitle' => null,
'ctaLabel' => null,
'ctaUrl' => '#company-history-timeline',
'illustration' => null,
])
@php
$titleBefore = $titleBefore ?? __('company_history.hero_title_before');
$highlight = $highlight ?? __('company_history.hero_highlight');
$titleAfter = $titleAfter ?? __('company_history.hero_title_after');
$subtitle = $subtitle ?? __('company_history.hero_subtitle');
$ctaLabel = $ctaLabel ?? __('company_history.hero_cta');
$illustration = $illustration ?? asset('assets/img/illustrations/truncgil-overview-timeline.png');
@endphp
@include('components.company-history.fonts')
<section class="company-history-fonts company-history-hero wrapper bg-gradient-yellow">
<div class="container pt-10 xl:pt-[4.5rem] lg:pt-[4.5rem] md:pt-[4.5rem] pb-10 xl:pb-14 lg:pb-14 md:pb-14">
<div class="flex flex-wrap mx-[-15px] xl:mx-[-35px] lg:mx-[-20px] !mt-[-50px] items-center">
<div class="xl:w-7/12 lg:w-7/12 w-full flex-[0_0_auto] !px-[15px] xl:!px-[35px] lg:!px-[20px] !mt-[50px] max-w-full">
<figure class="m-0 p-0">
<img
class="w-auto max-w-full h-auto"
src="{{ $illustration }}"
alt="{{ __('company_history.hero_illustration_alt') }}"
loading="eager"
fetchpriority="high"
decoding="async"
>
</figure>
</div>
<div class="md:w-10/12 lg:w-5/12 xl:w-5/12 md:!ml-[8.33333333%] lg:!ml-0 xl:!ml-0 flex-[0_0_auto] !px-[15px] xl:!px-[35px] lg:!px-[20px] !mt-[50px] max-w-full text-center lg:!text-left xl:!text-left">
<h1 class="company-history-hero__title !text-[calc(1.375rem_+_1.5vw)] font-bold !leading-[1.15] xl:!text-[2.5rem] !mb-5 md:mx-[-1.25rem] lg:mx-0">
{{ $titleBefore }}@if($highlight)<span class="!text-[#fab758]"> {{ $highlight }}</span>@endif{{ $titleAfter }}
</h1>
@if($ctaLabel)
<span>
<a
href="{{ $ctaUrl }}"
class="company-history-hero__cta btn btn-yellow !text-white !bg-[#fab758] border-[#fab758] hover:text-white hover:bg-[#fab758] hover:!border-[#fab758] active:text-white active:bg-[#fab758] active:border-[#fab758] disabled:text-white disabled:bg-[#fab758] disabled:border-[#fab758] !text-[.85rem] !rounded-[50rem] hover:translate-y-[-0.15rem] hover:shadow-[0_0.25rem_0.75rem_rgba(30,34,40,0.15)]"
>{{ $ctaLabel }}</a>
</span>
@endif
</div>
</div>
</div>
</section>
@once
@push('styles')
<style>
/* demo1: header + hero tek parça krem gradient */
.company-history-hero.bg-gradient-yellow {
background: linear-gradient(180deg, #fff8ee, rgba(255, 255, 255, 0) 100%);
}
.company-history-hero__title {
font-family: var(--ch-font-year);
letter-spacing: -0.02em;
}
.company-history-hero__lead {
font-family: var(--ch-font-body);
}
.company-history-hero__cta {
font-family: var(--ch-font-label);
font-weight: 600;
}
</style>
@endpush
@endonce