Skip to content

Commit

Permalink
Added about image locally and refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
if3chi committed Dec 4, 2021
1 parent 02f57a2 commit 218aef0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 32 deletions.
9 changes: 8 additions & 1 deletion app/Utilities/Helpers.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

if (!function_exists('setAboutImage')) {

function setAboutImage()
{
return 'images/about.jpg';
}
}

if (!function_exists('textNl2br')) {

function textNl2br($text)
Expand All @@ -8,7 +16,6 @@ function textNl2br($text)
}
}


if (!function_exists('paypalLink')) {

function paypalLink($type)
Expand Down
Binary file added public/images/about.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 3 additions & 31 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<div class="container mx-auto px-4 lg:pt-12 pt-6">
<div class="flex flex-wrap items-center mt-24">
<div class="w-full md:w-5/12 px-4 mr-auto ml-auto">
{{-- <div
class="text-gray-600 p-3 text-center inline-flex items-center justify-center w-16 h-16 mb-6 shadow-lg rounded-full bg-gray-100">
<i class="fas fa-user-friends text-xl"></i>
</div> --}}
<h3 class="text-3xl mt-12 md:mt-0 mb-2 font-bold leading-normal text-blue-950">
About
</h3>
Expand All @@ -26,34 +22,11 @@ class="text-gray-600 p-3 text-center inline-flex items-center justify-center w-1
to the growth and advancement of young
people.
</p>

{{-- <a href="#_"
class="relative px-10 py-3 font-medium text-white transition duration-300 bg-green-400 rounded-md hover:bg-green-500 ease">
<span class="absolute bottom-0 left-0 h-full -ml-2">
<svg viewBox="0 0 487 487" class="w-auto h-full opacity-100 object-stretch"
xmlns="http://www.w3.org/2000/svg">
<path
d="M0 .3c67 2.1 134.1 4.3 186.3 37 52.2 32.7 89.6 95.8 112.8 150.6 23.2 54.8 32.3 101.4 61.2 149.9 28.9 48.4 77.7 98.8 126.4 149.2H0V.3z"
fill="#FFF" fill-rule="nonzero" fill-opacity=".1"></path>
</svg>
</span>
<span class="absolute top-0 right-0 w-12 h-full -mr-3">
<svg viewBox="0 0 487 487" class="object-cover w-full h-full"
xmlns="http://www.w3.org/2000/svg">
<path
d="M487 486.7c-66.1-3.6-132.3-7.3-186.3-37s-95.9-85.3-126.2-137.2c-30.4-51.8-49.3-99.9-76.5-151.4C70.9 109.6 35.6 54.8.3 0H487v486.7z"
fill="#FFF" fill-rule="nonzero" fill-opacity=".1"></path>
</svg>
</span>
<span class="relative font-semibold">Donate</span>
</a> --}}
</div>
<div class="w-full md:w-4/12 px-4 mr-auto ml-auto">
<div
class="relative flex flex-col min-w-0 break-words w-full my-6 shadow-lg rounded-lg bg-blue-black">
<img alt="..."
src="https://i0.wp.com/bmccn.org/wp-content/uploads/2020/01/IMG-20190722-WA0012.jpg?resize=1024%2C678&ssl=1"
class="w-full align-middle rounded-t-lg">
<img alt="..." src="{{ asset(setAboutImage()) }}" class="w-full align-middle rounded-t-lg">
<blockquote class="relative p-8 mb-4">
<svg preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 583 95"
class="absolute left-0 w-full block" style="height: 95px; top: -94px;">
Expand Down Expand Up @@ -93,8 +66,7 @@ class="absolute left-0 w-full block" style="height: 95px; top: -94px;">
<div class="flex flex-wrap mt-12 justify-center">
<div class="w-full lg:w-3/12 px-4 text-center space-y-3 -mb-8">

<x-paypal-btn href="{{ paypalLink('generic') }}"
class="justify-center shadow-xl" />
<x-paypal-btn href="{{ paypalLink('generic') }}" class="justify-center shadow-xl" />

<h6 class="mt-2 mb-4 text-gray-50 text-lg font-semibold">
Support our community projects.
Expand All @@ -104,7 +76,7 @@ class="justify-center shadow-xl" />
</section>

<section class="block py-24 lg:pt-0 bg-blue-black fade-in">
<livewire:front.contact-us />
<livewire:front.contact-us />
</section>

@push('styles')
Expand Down

0 comments on commit 218aef0

Please sign in to comment.