Skip to content

Commit

Permalink
Merge pull request #97 from hydephp/update-testimonials
Browse files Browse the repository at this point in the history
Update testimonials
  • Loading branch information
caendesilva authored Dec 3, 2024
2 parents 96439ff + 346c164 commit 9f9db8f
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 14 deletions.
4 changes: 2 additions & 2 deletions _media/app.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions app/DataCollections/Types/Testimonials.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ class Testimonials extends DataCollectionType
public ?string $company_url;
public ?string $twitter_link;
public ?string $twitter_username;
public ?string $profile_image;

public Markdown $markdown;
}
4 changes: 1 addition & 3 deletions resources/collections/testimonials/1.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ twitter_link: "https://twitter.com/SavvasStephnds/status/1534928318503391233?ref
twitter_username: "SavvasStephnds"
---

What I'm mostly impressed with is how clean and straightforward the documentation is. Writing good documentation is an art and Caen did an amazing job at it.
<br><br>
⭐️⭐️⭐️⭐️
What I&#39;m mostly impressed with is how clean and straightforward the documentation is. Writing good documentation is an art and Caen did an amazing job at it. ⭐️⭐️⭐️⭐️
15 changes: 15 additions & 0 deletions resources/collections/testimonials/4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: "Yanik Kumar"
title: "Founder"
company: "FeedinWeb"
company_url: "https://feedinweb.com"
twitter_link: "https://x.com/yanikkumar/status/1863837157766664358"
twitter_username: "yanikkumar"
---

@CodeWithCaen is amazing....
So beautifully created the @HydeFramework

I was scrolling the internet to find the best tool to write documentation for the project which is simple to work with.
I think I found one now....
The best part, built on my go to framework Laravel. 🤯
6 changes: 0 additions & 6 deletions resources/collections/testimonials/default.md

This file was deleted.

20 changes: 17 additions & 3 deletions resources/views/testimonials.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@ class="flex items-center justify-center w-full px-8 pt-10 md:pt-16 lg:pt-24 xl:p
</p>
</div>
<div class="flex flex-col items-center justify-center max-w-2xl py-8 mx-auto xl:flex-row xl:max-w-full flex-wrap">
@php
$testimonials = \App\Extend\DataCollections::markdown('testimonials');
// Sort by Markdown length
$testimonials = $testimonials->sortByDesc(function (\App\DataCollections\Types\Testimonials $testimonial) {
return strlen($testimonial->markdown->body());
});
@endphp
@php /** @var \App\DataCollections\Types\Testimonials $testimonial */ @endphp
@foreach(\App\Extend\DataCollections::markdown('testimonials') as $file => $testimonial)
@foreach($testimonials as $file => $testimonial)
@continue($file === 'testimonials/README.md')
<div class="w-full xl:w-1/2 xl:px-4 h-auto ">
<div class="w-full xl:w-1/2 xl:px-4 h-auto self-baseline">
<blockquote class="my-4 flex flex-col-reverse items-center justify-between w-full h-full flex-1 col-span-1 p-6 text-center transition-all duration-200 bg-gray-100 rounded-lg md:flex-row md:text-left hover:bg-gray-50 hover:shadow ease">
<div class="flex flex-col sm:pr-8">
<div class="relative sm:pl-12">
Expand Down Expand Up @@ -61,15 +69,21 @@ class="flex items-center justify-center w-full px-8 pt-10 md:pt-16 lg:pt-24 xl:p
</span>
</h3>
</div>
@if($testimonial->profile_image)
<img class="flex-shrink-0 object-cover w-24 h-24 mb-5 bg-gray-300 rounded-full md:mb-0"
onerror="this.onerror=null; this.src='https://cdn.jsdelivr.net/gh/hydephp/cdn-static@master/avatar.png';"
src="{{ $testimonial->profile_image ?? 'https://cdn.jsdelivr.net/gh/hydephp/cdn-static@master/avatar.png' }}"
src="{{ $testimonial->profile_image }}"
alt="Profile image">
@endif
</blockquote>
</div>
@endforeach
</div>
<footer class="text-center opacity-75">
<div class="prose text-center mx-auto mb-2">
<p>Want to have your mention here? Send a Tweet at <a href="https://twitter.com/HydeFramework">@HydeFramework</a>, and/or use the hashtag <a href="https://twitter.com/hashtag/HydePHP">#HydePHP</a>!</p>
</div>

<small>Testimonials may be edited for formatting, spelling, and brevity, but never content.</small>
<small>Want your own testimonial here? Want to remove yours? This
<a class="text-indigo-700" href="https://github.com/hydephp/hydephp.com/blob/master/_pages/index.blade.php">page is open source</a>.</small>
Expand Down

0 comments on commit 9f9db8f

Please sign in to comment.