Skip to content

Commit fd115c3

Browse files
committed
Add NotchPay
1 parent 7dd597f commit fd115c3

File tree

10 files changed

+120901
-47
lines changed

10 files changed

+120901
-47
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Contracts\View\View;
6+
7+
class SponsoringController extends Controller
8+
{
9+
public function sponsors(): View
10+
{
11+
return view('sponsors.index');
12+
}
13+
}

public/css/app.css

Lines changed: 11043 additions & 11 deletions
Large diffs are not rendered by default.

public/js/app.js

Lines changed: 109751 additions & 2 deletions
Large diffs are not rendered by default.

public/mix-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"/js/app.js": "/js/app.js?id=7d33838f31a5f129f9e40f95493c3b47",
3-
"/css/app.css": "/css/app.css?id=c81faad7c99dc23b2559ae4fa79951ce"
2+
"/js/app.js": "/js/app.js",
3+
"/css/app.css": "/css/app.css"
44
}

resources/js/helpers/helpers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ window.highlightCode = (element) => {
1414
})
1515
}
1616

17+
window.formatMoney = (amount) => {
18+
return new Intl.NumberFormat('fr-FR', { style: 'currency', currency: 'XAF' }).format(amount)
19+
}
20+
1721
const share = function () {
1822
function popupCenter (url, title, width, height) {
1923
let popupWidth = width || 640

resources/views/components/footer-link.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
<li>
44
<a href="{{ $url }}" class="inline-flex items-center text-base text-skin-base hover:text-skin-menu-hover" title="{{ $title }}">
5-
{{ __($title) }}
5+
{{ $title }}
66
@if($soon)
7-
<span class="inline-flex ml-2 text-xs leading-4 text-green-800 bg-green-100 py-0.5 px-1.5 rounded-full">Bientôt</span>
7+
<span class="inline-flex ml-2 text-xs leading-4 text-green-800 bg-green-100 py-0.5 px-1.5 rounded-full">
8+
{{ __('Bientôt') }}
9+
</span>
810
@endif
911
</a>
1012
</li>

resources/views/home.blade.php

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
</div>
5858
</div>
5959
<div class="mt-6 text-center lg:mt-10">
60-
<a class="text-sm leading-5 text-flag-green hover:text-green-600 hover:underline" href="mailto:arthur@laravel.cm">
60+
<a class="text-sm leading-5 text-flag-green hover:text-green-600 hover:underline" href="{{ route('sponsors') }}">
6161
{{ __('Votre logo ici ?') }}
6262
</a>
6363
</div>
@@ -121,7 +121,7 @@
121121
</p>
122122
</a>
123123
<div class="mt-3">
124-
<a href="{{ route('forum.show', $thread) }}" class="text-base font-normal font-medium text-green-600 hover:text-green-500 hover:underline">
124+
<a href="{{ route('forum.show', $thread) }}" class="text-base font-medium text-green-600 hover:text-green-500 hover:underline">
125125
{{ __('Afficher la question') }}
126126
</a>
127127
</div>
@@ -196,38 +196,50 @@
196196
</div>
197197
<div class="max-w-4xl px-4 mx-auto lg:max-w-7xl xl:grid xl:grid-cols-2 xl:grid-flow-col-dense xl:gap-x-8">
198198
<div class="relative pt-12 pb-64 sm:pt-24 sm:pb-64 xl:col-start-1 xl:pb-24">
199-
<h2 class="text-sm font-semibold tracking-wide text-green-300 uppercase font-heading">{{ __('A propos') }}</h2>
200-
<p class="mt-3 text-3xl font-extrabold text-white">{{ __('Nous construisons une communauté Open Source d\'apprenants et d\'enseignants') }}</p>
199+
<h2 class="text-sm font-semibold tracking-wide text-green-300 uppercase font-heading">
200+
{{ __('A propos') }}
201+
</h2>
202+
<p class="mt-3 text-3xl font-extrabold text-white">
203+
{{ __('Nous construisons une communauté Open Source d\'apprenants et d\'enseignants') }}
204+
</p>
201205
<p class="mt-5 text-lg text-gray-400">
202-
<span class="text-white"><span class="italic text-skin-primary">"</span>{{ __('Tout le monde enseigne, tout le monde apprend') }}<span class="italic text-skin-primary">"</span></span>.
206+
<span class="text-white">
207+
<span class="italic text-skin-primary">"</span>
208+
{{ __('Tout le monde enseigne, tout le monde apprend') }}
209+
<span class="italic text-skin-primary">"</span>
210+
</span>.
203211
{{ __('Tel est l\'esprit qui est derrière la communauté. Une communauté qui se veut grandissante et qui donne la possibilité à tout le monde de partager ses connaissances et d\'apprendre.') }}
204212
</p>
205213
<div class="grid grid-cols-1 mt-12 gap-y-12 gap-x-6 sm:grid-cols-2">
206214
<p>
207215
<span class="block text-2xl text-white font-heading">600+</span>
208216
<span class="block mt-1 text-base text-gray-400">
209-
<span class="font-medium text-white">{{ __('Membres') }}</span> {{ __('qui ont rejoint les différents groupes de la communauté') }}
217+
<span class="font-medium text-white">{{ __('Membres') }}</span>
218+
{{ __('qui ont rejoint les différents groupes de la communauté') }}
210219
</span>
211220
</p>
212221

213222
<p>
214223
<span class="block text-2xl text-white font-heading">50K+</span>
215224
<span class="block mt-1 text-base text-gray-400">
216-
<span class="font-medium text-white">{{ __('Développeurs PHP & Laravel') }}</span> {{ __('dans l’ensemble du territoire national.') }}
225+
<span class="font-medium text-white">{{ __('Développeurs PHP & Laravel') }}</span>
226+
{{ __('dans l’ensemble du territoire national.') }}
217227
</span>
218228
</p>
219229

220230
<p>
221231
<span class="block text-2xl text-white font-heading">9%</span>
222232
<span class="block mt-1 text-base text-gray-400">
223-
<span class="font-medium text-white">{{ __('Taux de participation aux événements') }}</span> {{ __('car la communauté est encore très jeune.') }}
233+
<span class="font-medium text-white">{{ __('Taux de participation aux événements') }}</span>
234+
{{ __('car la communauté est encore très jeune.') }}
224235
</span>
225236
</p>
226237

227238
<p>
228239
<span class="block text-2xl text-white font-heading">10K+</span>
229240
<span class="block mt-1 text-base text-gray-400">
230-
<span class="font-medium text-white">stars</span> {{ __('sur les projets réalisés par les développeurs Camerounais sur Github.') }}
241+
<span class="font-medium text-white">stars</span>
242+
{{ __('sur les projets réalisés par les développeurs Camerounais sur Github.') }}
231243
</span>
232244
</p>
233245
</div>

resources/views/layouts/footer.blade.php

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,11 @@
1717
{{ __('Ressources') }}
1818
</h3>
1919
<ul class="mt-4 space-y-4">
20-
21-
<x-footer-link title="A propos" :url="route('about')" />
22-
23-
<x-footer-link title="Podcasts" url="#" soon />
24-
25-
<x-footer-link title="Jobs" url="#" soon />
26-
27-
<x-footer-link title="Sponsors" url="#" soon />
28-
29-
<x-footer-link title="Branding" url="https://github.com/caneco/laravel-country-logomarks/blob/main/src/cm/README.md" />
20+
<x-footer-link :title="__('A propos')" :url="route('about')" />
21+
<x-footer-link :title="__('Podcasts')" url="#" soon />
22+
<x-footer-link :title="__('Jobs')" url="#" soon />
23+
<x-footer-link :title="__('Sponsors')" :url="route('sponsors')" />
24+
<x-footer-link :title="__('Branding')" url="https://github.com/caneco/laravel-country-logomarks/blob/main/src/cm/README.md" />
3025

3126
</ul>
3227
</div>
@@ -35,15 +30,10 @@
3530
{{ __('Légal') }}
3631
</h3>
3732
<ul class="mt-4 space-y-4">
38-
39-
<x-footer-link title="Conditions d’utilisation" :url="route('terms')" />
40-
41-
<x-footer-link title="Confidentialité" :url="route('privacy')" />
42-
43-
<x-footer-link title="Code de conduite" :url="route('rules')" />
44-
45-
<x-footer-link title="FAQ" :url="route('faq')" />
46-
33+
<x-footer-link :title="__('Conditions d’utilisation')" :url="route('terms')" />
34+
<x-footer-link :title="__('Confidentialité')" :url="route('privacy')" />
35+
<x-footer-link :title="__('Code de conduite')" :url="route('rules')" />
36+
<x-footer-link :title="__('FAQ')" :url="route('faq')" />
4737
</ul>
4838
</div>
4939
</div>
@@ -105,7 +95,7 @@
10595
</div>
10696
<div class="border-t border-skin-base py-6 sm:flex sm:items-center sm:justify-between lg:py-8">
10797
<p class="text-base text-center leading-6 text-skin-muted lg:text-left">
108-
© 2018 - {{ date('Y') }} Laravel Cameroun. Tous droits réservés.
98+
{{ __('© 2018 - :date Laravel Cameroun. Tous droits réservés.', ['date' => date('Y')]) }}
10999
</p>
110100
<div class="mt-4 flex justify-center space-x-6 sm:mt-0 lg:justify-start">
111101
<a href="{{ route('twitter') }}" class="text-skin-muted hover:text-skin-base">
@@ -132,7 +122,6 @@
132122
<span class="sr-only">YouTube</span>
133123
<x-icon.youtube class="h-6 w-6" />
134124
</a>
135-
136125
</div>
137126
</div>
138127
</div>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
@title(__('Soutenir Laravel Cameroun'))
2+
3+
@extends('layouts.default')
4+
5+
@section('body')
6+
7+
<div class="lg:grid lg:grid-cols-10 lg:gap-10">
8+
<div class="lg:col-span-7">
9+
Page de sponsoring
10+
</div>
11+
<div class="mt-5 lg:mt-0 lg:col-span-3">
12+
<x-sticky-content>
13+
<div class="overflow-hidden border border-skin-base rounded-md">
14+
<div class="px-4 py-3 text-skin-base bg-skin-card flex items-center flex-wrap">
15+
<span>{{ __('Sponsorisé comme') }}</span>
16+
@auth
17+
<span class="text-sm inline-flex items-center space-x-2 ml-3">
18+
<img class="h-5 w-5 object-cover rounded-full" src="{{ Auth::user()->profile_photo_url }}" alt="{{ Auth::user()->name }}">
19+
<span class="font-medium text-skin-inverted">{{ Auth::user()->username() }}</span>
20+
</span>
21+
@else
22+
<span class="ml-2">
23+
{{ __('anonyme ou') }}
24+
<a href="{{ route('login') }}" class="text-sm text-primary-500 underline font-medium">
25+
{{ __('se connecter') }}
26+
</a>
27+
</span>
28+
@endauth
29+
</div>
30+
@auth
31+
<div class="p-4 flex items-center border-t border-skin-base bg-skin-card-muted">
32+
<span class="relative inline-block">
33+
<img class="h-10 w-10 rounded-full ring-2 ring-yellow-500" src="{{ Auth::user()->profile_photo_url }}" alt="{{ Auth::user()->username() }}">
34+
<span class="absolute -right-1 top-0 flex items-center justify-center h-4 w-4 rounded-full bg-white ring-2 ring-yellow-500">
35+
<svg class="w-3 h-3 text-yellow-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
36+
<path fill-rule="evenodd" d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z" clip-rule="evenodd" />
37+
</svg>
38+
</span>
39+
</span>
40+
<p class="flex-1 ml-4 text-sm leading-5 text-skin-base">
41+
{{ __('Voici le badge sur votre avatar que vous obtiendrez et qui indique que vous êtes un sponsor de @laravelcm.') }}
42+
</p>
43+
</div>
44+
@endauth
45+
</div>
46+
</x-sticky-content>
47+
</div>
48+
</div>
49+
50+
@endsection

routes/web.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use App\Http\Controllers\OAuthController;
1010
use App\Http\Controllers\ReplyAbleController;
1111
use App\Http\Controllers\SlackController;
12+
use App\Http\Controllers\SponsoringController;
1213
use App\Http\Controllers\SubscriptionController;
1314
use App\Http\Controllers\ThreadController;
1415
use App\Http\Controllers\User;
@@ -114,3 +115,5 @@
114115
]);
115116

116117
Route::feeds();
118+
119+
Route::get('sponsors', [SponsoringController::class, 'sponsors'])->name('sponsors');

0 commit comments

Comments
 (0)