Skip to content

Commit

Permalink
work around for crestem ong (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 authored May 15, 2023
1 parent 6b57abe commit 9f037d6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
16 changes: 12 additions & 4 deletions resources/views/components/site/header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,18 @@
<div class="relative flex items-center justify-between gap-3">
<a href="{{ localized_route('front.pages.index') }}" class="inline-flex text-primary">
@if ($logo)
<img
class="object-contain h-16 max-w-48 sm:max-w-64"
src="{{ $logo }}"
alt="{{ $title }}">
@if(env('APP_URL') != 'https://wf.test')
<img
class="object-contain max-w-[180px] sm:max-w-64"
src="{{ $logo }}"
alt="{{ $title }}">
@else
<img
class="object-contain h-16 max-w-48 sm:max-w-64"
src="{{ $logo }}"
alt="{{ $title }}">
@endif

@else
<x-icon-logo class="h-12 md:h-16" />
@endif
Expand Down
10 changes: 8 additions & 2 deletions resources/views/components/site/partners.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<aside class="border-b">
<div class="container flex items-center gap-4 sm:justify-end md:gap-x-8">
<span class="text-sm font-medium text-gray-600">@lang('partner.banner')</span>
@if(env('APP_URL') != 'https://app.crestem.ong/')
<span class="text-sm font-medium text-gray-600">@lang('partner.banner')</span>
@endif
<div class="flex flex-wrap items-center justify-end flex-1 gap-4 py-5 lg:gap-x-6 sm:flex-initial">
@foreach ($partners as $partner)
@if ($partner->url)
Expand All @@ -10,7 +12,11 @@
rel="noopener"
class="inline-flex hover:ring-1 ring-primary focus:outline-none focus:ring-2 ring-offset-2 px-2.5 py-1.5 shrink-0"
title="{{ $partner->name }}">
<img class="object-contain h-12" src="{{ $partner->logo }}" alt="{{ $partner->name }}">
@if(env('APP_URL') != 'https://app.crestem.ong/')
<img class="object-contain h-[80px]" src="{{ $partner->logo }}" alt="{{ $partner->name }}">
@else
<img class="object-contain h-12" src="{{ $partner->logo }}" alt="{{ $partner->name }}">
@endif
</a>
@else
<span class="inline-flex shrink-0">
Expand Down

0 comments on commit 9f037d6

Please sign in to comment.