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); // 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/Privacy', [ 'content' => $styledContent, 'title' => 'Privacy Policy', ]); } 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); // 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/Terms', [ 'content' => $styledContent, 'title' => 'Terms & Conditions', ]); } 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 $html = preg_replace('/
]*)>/', '
', $html); $html = preg_replace('/
]*)>/', '', $html); $html = preg_replace('/]*)>/', '', $html); $html = preg_replace('/]*)>/', '', $html); return $html; } }