Update
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Artesaos\SEOTools\Facades\OpenGraph;
|
||||
use Artesaos\SEOTools\Facades\SEOMeta;
|
||||
use Artesaos\SEOTools\Facades\TwitterCard;
|
||||
use Illuminate\Support\Str;
|
||||
use Inertia\Inertia;
|
||||
|
||||
@@ -9,6 +12,25 @@ class FrontPagesController extends Controller
|
||||
{
|
||||
public function privacy()
|
||||
{
|
||||
// Set up SEO meta tags
|
||||
$title = 'Privacy Policy';
|
||||
$description = 'Read our privacy policy to understand how Memefast collects, uses, and protects your personal information when using our video meme creation platform.';
|
||||
|
||||
SEOMeta::setTitle($title);
|
||||
SEOMeta::setDescription($description);
|
||||
SEOMeta::setCanonical(request()->url());
|
||||
|
||||
// OpenGraph tags
|
||||
OpenGraph::setTitle($title);
|
||||
OpenGraph::setDescription($description);
|
||||
OpenGraph::setUrl(request()->url());
|
||||
OpenGraph::addProperty('type', 'website');
|
||||
|
||||
// Twitter Card
|
||||
TwitterCard::setTitle($title);
|
||||
TwitterCard::setDescription($description);
|
||||
TwitterCard::setType('summary');
|
||||
|
||||
$markdownPath = resource_path('markdown/privacy.md');
|
||||
$markdownContent = file_get_contents($markdownPath);
|
||||
|
||||
@@ -26,6 +48,25 @@ public function privacy()
|
||||
|
||||
public function terms()
|
||||
{
|
||||
// Set up SEO meta tags
|
||||
$title = 'Terms & Conditions';
|
||||
$description = 'Review our terms and conditions to understand the rules and guidelines for using Memefast video meme creation platform and services.';
|
||||
|
||||
SEOMeta::setTitle($title);
|
||||
SEOMeta::setDescription($description);
|
||||
SEOMeta::setCanonical(request()->url());
|
||||
|
||||
// OpenGraph tags
|
||||
OpenGraph::setTitle($title);
|
||||
OpenGraph::setDescription($description);
|
||||
OpenGraph::setUrl(request()->url());
|
||||
OpenGraph::addProperty('type', 'website');
|
||||
|
||||
// Twitter Card
|
||||
TwitterCard::setTitle($title);
|
||||
TwitterCard::setDescription($description);
|
||||
TwitterCard::setType('summary');
|
||||
|
||||
$markdownPath = resource_path('markdown/terms.md');
|
||||
$markdownContent = file_get_contents($markdownPath);
|
||||
|
||||
@@ -41,6 +82,42 @@ public function terms()
|
||||
]);
|
||||
}
|
||||
|
||||
public function dmcaCopyright()
|
||||
{
|
||||
// Set up SEO meta tags
|
||||
$title = 'DMCA Copyright Policy';
|
||||
$description = 'MEMEFA.ST DMCA copyright policy and procedures for reporting copyright infringement. Learn how to file DMCA notices and counter-notices.';
|
||||
|
||||
SEOMeta::setTitle($title);
|
||||
SEOMeta::setDescription($description);
|
||||
SEOMeta::setCanonical(request()->url());
|
||||
|
||||
// OpenGraph tags
|
||||
OpenGraph::setTitle($title);
|
||||
OpenGraph::setDescription($description);
|
||||
OpenGraph::setUrl(request()->url());
|
||||
OpenGraph::addProperty('type', 'website');
|
||||
|
||||
// Twitter Card
|
||||
TwitterCard::setTitle($title);
|
||||
TwitterCard::setDescription($description);
|
||||
TwitterCard::setType('summary');
|
||||
|
||||
$markdownPath = resource_path('markdown/dmca-copyright.md');
|
||||
$markdownContent = file_get_contents($markdownPath);
|
||||
|
||||
// Parse markdown to HTML using Laravel's built-in Str::markdown helper
|
||||
$htmlContent = Str::markdown($markdownContent);
|
||||
|
||||
// Style the HTML with Tailwind classes
|
||||
$styledContent = $this->styleHtmlContent($htmlContent);
|
||||
|
||||
return Inertia::render('FrontPages/DmcaCopyright', [
|
||||
'content' => $styledContent,
|
||||
'title' => 'DMCA Copyright Policy',
|
||||
]);
|
||||
}
|
||||
|
||||
private function styleHtmlContent($html)
|
||||
{
|
||||
// Add classes to various HTML elements using string replacement for Tailwind 4
|
||||
|
||||
Reference in New Issue
Block a user