Skip to content

Commit 49e087d

Browse files
committed
feat: Remove old sponsor categories
1 parent cb44069 commit 49e087d

File tree

1 file changed

+8
-75
lines changed

1 file changed

+8
-75
lines changed

source/_shared/sponsors.blade.php

Lines changed: 8 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,17 @@
11
<div class="site-section">
22
<div class="container">
3-
<div class="row">
4-
<div class="col-md-6 mx-auto text-center mb-5 section-heading">
5-
<h2 class="mb-5 text-uppercase">{{ $title }}</h2>
6-
</div>
7-
</div>
8-
<div class="row mb-5">
9-
<div class="col-md-12 text-left section-heading">
10-
<h4 class="mb-5 text-uppercase">{{ $page->categories['diamond']['description'] }}</h4>
11-
</div>
12-
13-
@foreach ($sponsors->filter(fn ($s) => $s->type === 'diamond') as $sponsor)
14-
<div class="col-12 col-md-6 col-lg-6 sponsor">
15-
@if($sponsor->website)
16-
<a href="{{ $sponsor->website }}" target="_blank" class="btn">
17-
<img src="{{ url($sponsor->image) }}" alt="{{ $sponsor->name }}" class="img-fluid">
18-
</a>
19-
@else
20-
<img src="{{ url($sponsor->image) }}" alt="{{ $sponsor->name }}" class="img-fluid">
21-
@endif
22-
</div>
23-
@endforeach
24-
</div>
25-
<div class="row mb-5">
26-
<div class="col-md-12 text-left section-heading">
27-
<h4 class="mb-5 text-uppercase">{{ $page->categories['silver']['description'] }}</h4>
28-
</div>
29-
30-
@foreach ($sponsors->filter(fn ($s) => $s->type === 'silver') as $sponsor)
31-
<div class="col-6 col-md-4 col-lg-4 sponsor">
32-
@if($sponsor->website)
33-
<a href="{{ $sponsor->website }}" target="_blank" class="btn">
34-
<img src="{{ url($sponsor->image) }}" alt="{{ $sponsor->name }}" class="img-fluid">
35-
</a>
36-
@else
37-
<img src="{{ url($sponsor->image) }}" alt="{{ $sponsor->name }}" class="img-fluid">
38-
@endif
3+
@if(isset($title))
4+
<div class="row">
5+
<div class="col-md-6 mx-auto text-center mb-5 section-heading">
6+
<h2 class="mb-5 text-uppercase">{{ $title }}</h2>
397
</div>
40-
@endforeach
41-
</div>
42-
<div class="row mb-5">
43-
<div class="col-md-12 text-left section-heading">
44-
<h4 class="mb-5 text-uppercase">{{ $page->categories['bronze']['description'] }}</h4>
458
</div>
9+
@endif
4610

47-
@foreach ($sponsors->filter(fn ($s) => $s->type === 'bronze') as $sponsor)
48-
<div class="col-4 col-md-2 col-lg-2 sponsor">
49-
@if($sponsor->website)
50-
<a href="{{ $sponsor->website }}" target="_blank" class="btn">
51-
<img src="{{ url($sponsor->image) }}" alt="{{ $sponsor->name }}" class="img-fluid">
52-
</a>
53-
@else
54-
<img src="{{ url($sponsor->image) }}" alt="{{ $sponsor->name }}" class="img-fluid">
55-
@endif
56-
</div>
57-
@endforeach
58-
</div>
59-
60-
<div class="row mb-5">
61-
<div class="col-md-12 col-lg-12 mb-4">
62-
<h1 class="text-center">Seja um <a target="_blank" href="https://bit.ly/3OEAiOy">patrocinador</a>!</h1>
63-
</div>
64-
</div>
65-
66-
<div class="row mb-5">
67-
<div class="col-md-12 text-left section-heading">
68-
<h4 class="mb-5 text-uppercase">{{ $page->categories['support']['description'] }}</h4>
11+
<div class="row">
12+
<div class="col-md-12 col-lg-12">
13+
<h1 class="text-center">Seja um <a target="_blank" href="{{ url('/contact') }}">patrocinador</a>!</h1>
6914
</div>
70-
71-
@foreach ($sponsors->filter(fn ($s) => $s->type === 'support') as $sponsor)
72-
<div class="col-4 col-md-2 col-lg-2 sponsor">
73-
@if($sponsor->website)
74-
<a href="{{ $sponsor->website }}" target="_blank" class="btn">
75-
<img src="{{ url($sponsor->image) }}" alt="{{ $sponsor->name }}" class="img-fluid">
76-
</a>
77-
@else
78-
<img src="{{ url($sponsor->image) }}" alt="{{ $sponsor->name }}" class="img-fluid">
79-
@endif
80-
</div>
81-
@endforeach
8215
</div>
8316
</div>
8417
</div>

0 commit comments

Comments
 (0)