Add visual CMS, media library and product directory

This commit is contained in:
2026-11-21 19:27:46 +08:00
parent 188a63fb2f
commit 474008b06e
42 changed files with 1710 additions and 134 deletions
+6 -6
View File
@@ -7,7 +7,7 @@ $home = $page['slug'] === 'home';
$service = in_array($page['slug'], ['sc', 'shnu-sc'], true);
?>
<section class="hero hero-<?= $e($page['slug']) ?>" id="home" data-enter>
<div class="wrap hero-inner">
<div class="wrap hero-inner<?= $page['image'] === '' ? ' hero-text-only' : '' ?>">
<div class="hero-copy">
<?php if (!$home): ?>
<nav class="breadcrumbs" aria-label="面包屑" itemscope itemtype="https://schema.org/BreadcrumbList">
@@ -22,13 +22,13 @@ $service = in_array($page['slug'], ['sc', 'shnu-sc'], true);
</span>
</nav>
<?php else: ?>
<p class="overline hero-label">上海来笙信息科技有限公司</p>
<p class="overline hero-label"><?= $e($site['footer']['name'] ?? $site['name']) ?></p>
<?php endif ?>
<h1><?= $e($page['heading']) ?><?php if ($page['accent'] !== ''): ?><br><span><?= $e($page['accent']) ?></span><?php endif ?></h1>
<p class="hero-lead"><?= $e($page['lead']) ?></p>
<h1><span class="hero-heading-primary" data-studio-field="heading"><?= $e($page['heading']) ?></span><?php if ($page['accent'] !== ''): ?><br><span><?= $e($page['accent']) ?></span><?php endif ?></h1>
<p class="hero-lead" data-studio-field="lead"><?= $e($page['lead']) ?></p>
<div class="actions hero-actions">
<?php foreach ($page['actions'] as $index => [$url, $label]): ?>
<a class="button <?= $index ? 'button-outline' : 'button-primary' ?>" href="<?= $e($url) ?>"><?= $e($label) ?></a>
<a class="button <?= $index ? 'button-outline' : 'button-primary' ?>" href="<?= $e($home && $url === '/#product' ? '/services' : $url) ?>"><?= $e($label) ?></a>
<?php endforeach ?>
</div>
</div>
@@ -40,7 +40,7 @@ $service = in_array($page['slug'], ['sc', 'shnu-sc'], true);
</div>
<?php if ($home): ?>
<div class="wrap hero-directory">
<span class="overline">产品与服务</span>
<a class="overline directory-label" href="/services">产品与服务</a>
<a href="/pagepan"><span>PAGEPAN</span><small>可视化建站</small></a>
<a href="/highspeaker"><span>HighSpeaker DNS</span><small>开源智能解析</small></a>
<a href="/sc"><span>软著代理</span><small>登记申请与材料服务</small></a>