You've already forked framexEngine-pro
Firts up
This commit is contained in:
26
app/views/blocks/heros/hero-1.php
Normal file
26
app/views/blocks/heros/hero-1.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<section class="bg-white dark:bg-slate-900">
|
||||
<div class="mx-auto w-screen max-w-7xl px-4 py-16 sm:px-6 sm:py-24 lg:px-8 lg:py-32">
|
||||
<div class="mx-auto max-w-prose text-center">
|
||||
<h1 class="text-4xl font-bold text-gray-900 dark:text-white/90 sm:text-5xl">
|
||||
Understand user flow and
|
||||
<strong class="text-indigo-600"> increase </strong>
|
||||
conversions
|
||||
</h1>
|
||||
|
||||
<p class="mt-4 text-base text-pretty text-gray-700 dark:text-white/60 sm:text-lg/relaxed">
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque, nisi. Natus, provident
|
||||
accusamus impedit minima harum corporis iusto.
|
||||
</p>
|
||||
|
||||
<div class="mt-4 flex justify-center gap-4 sm:mt-6">
|
||||
<a class="btn btn-primary" href="#">
|
||||
Get Started
|
||||
</a>
|
||||
|
||||
<a class="btn btn-secondary" href="#">
|
||||
Learn More
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
33
app/views/blocks/heros/hero-2.php
Normal file
33
app/views/blocks/heros/hero-2.php
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
<section class="section">
|
||||
<!-- Container -->
|
||||
<div class="band">
|
||||
<!-- Title -->
|
||||
<h2 class="mb-8 text-3xl font-bold md:text-5xl md:mb-10">
|
||||
Meet Flowspark
|
||||
</h2>
|
||||
<p class="mb-8 max-w-lg text-sm text-gray-500 sm:text-base md:mb-16">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse
|
||||
varius enim in eros elementum tristique. Duis cursus, mi quis viverra
|
||||
ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.
|
||||
</p>
|
||||
<div class="grid gap-8 lg:grid-cols-2 lg:gap-10">
|
||||
<img src="<?= image() ?>image" alt="" class="inline-block h-full w-full rounded-2xl object-cover" />
|
||||
<div class="flex flex-col gap-5 rounded-2xl border border-solid border-black p-10 sm:p-12">
|
||||
<h2 class="text-3xl font-bold md:text-5xl">Our Mission</h2>
|
||||
<p class="text-sm text-gray-500 sm:text-base">
|
||||
Aliquet risus feugiat in ante metus. Arcu dui vivamus arcu felis
|
||||
bibendum ut. Vestibulum lorem sed risus ultricies tristique nulla.
|
||||
Vitae et leo duis ut diam quam. Bibendum arcu vitae elementum
|
||||
curabitur vitae nunc. Dictumst vestibulum rhoncus est
|
||||
pellentesque. Lectus proin nibh nisl condimentum id. Ullamcorper
|
||||
dignissim cras tincidunt lobortis feugiat vivamus.
|
||||
<br />
|
||||
<br />
|
||||
Massa id neque aliquam vestibulum morbi blandit. Nulla
|
||||
pellentesque dignissim enim sit amet venenatis.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
77
app/views/blocks/heros/index.php
Normal file
77
app/views/blocks/heros/index.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<section class="section">
|
||||
<div class="band">
|
||||
<div class="card">
|
||||
<div class="entry-section">
|
||||
<?php
|
||||
$serverURL = rtrim(parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH), '/') ?: '/';
|
||||
$parentURL = $serverURL === '/' ? '/' : dirname($serverURL);
|
||||
$parentURL = $parentURL === '\\' || $parentURL === '.' ? '/' : $parentURL;
|
||||
$folderSlug = basename($serverURL);
|
||||
$folderName = ucwords(str_replace(['-', '_'], ' ', $folderSlug));
|
||||
$directory = __DIR__;
|
||||
$items = scandir($directory) ?: [];
|
||||
|
||||
$folders = [];
|
||||
$files = [];
|
||||
|
||||
foreach ($items as $item) {
|
||||
if ($item === '.' || $item === '..' || str_starts_with($item, '.')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$path = $directory . DIRECTORY_SEPARATOR . $item;
|
||||
|
||||
if (is_dir($path)) {
|
||||
$folders[] = $item;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_file($path) && basename($item) !== 'index.php' && in_array(pathinfo($item, PATHINFO_EXTENSION), ['php', 'md'], true)) {
|
||||
$files[] = pathinfo($item, PATHINFO_FILENAME);
|
||||
}
|
||||
}
|
||||
|
||||
natcasesort($folders);
|
||||
natcasesort($files);
|
||||
?>
|
||||
<div class="flex justify-between items-center border-b border-slate-200 dark:border-slate-700 pb-5">
|
||||
<div class="text-4xl font-bold"><?= e($folderName) ?></div>
|
||||
<a class="btn btn-primary" href="<?= e($parentURL) ?>">
|
||||
Back
|
||||
</a>
|
||||
</div>
|
||||
<ul class="m-4">
|
||||
<?php
|
||||
foreach ($folders as $folder) :
|
||||
$itemName = ucwords(str_replace(['-', '_'], ' ', $folder)); ?>
|
||||
<li class="mt-2">
|
||||
<div class="flex items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z" />
|
||||
</svg>
|
||||
|
||||
<a class=' ms-2 hover:text-blue-600 font-bold' href='<?= e(rtrim($serverURL, '/') . '/' . $folder) ?>'>
|
||||
<?= e($itemName) ?></a>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
<ul class="m-4">
|
||||
<?php foreach ($files as $fileName) :
|
||||
$title = ucwords(str_replace(['-', '_'], ' ', $fileName)); ?>
|
||||
<li class="mt-2">
|
||||
<div class="flex items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="size-5">
|
||||
<path fill-rule="evenodd" d="M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
<a class='ms-1 hover:text-blue-600' href='<?= e(rtrim($serverURL, '/') . '/' . $fileName) ?>'><?= e($title) ?></a>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user