初始化

This commit is contained in:
2026-08-08 18:27:38 +08:00
parent efc150c937
commit 060eb79c09
336 changed files with 24613 additions and 15 deletions
+45
View File
@@ -0,0 +1,45 @@
@extends('layouts.app')
@php $siteName = App\Models\Setting::get('site_name', '深圳市云创芯电子有限公司'); @endphp
@section('title', $product->seoTitle() . ' - ' . $siteName)
@section('description', $product->seoDescription())
@section('content')
<section class="px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
<div class="mx-auto max-w-5xl">
<nav class="mb-6 flex items-center gap-1.5 text-sm text-muted">
<a href="{{ url('/') }}" class="hover:text-primary">首页</a>
<span>/</span>
<a href="{{ route('products.index') }}" class="hover:text-primary">产品中心</a>
<span>/</span>
<span class="text-fg">{{ $product->name }}</span>
</nav>
<article class="rounded-lg border border-line bg-surface p-6 shadow-soft sm:p-8">
<span class="inline-block rounded bg-primary-soft px-2 py-1 font-mono text-xs font-medium text-primary">{{ $product->model ?: $product->slug }}</span>
<h1 class="mt-4 text-2xl font-bold tracking-tight text-fg sm:text-3xl">{{ $product->name }}</h1>
@if ($product->category)
<p class="mt-2 text-sm text-muted">分类:{{ $product->category->name }}</p>
@endif
@if ($product->summary)
<p class="mt-4 text-base text-muted">{{ $product->summary }}</p>
@endif
@if ($product->description)
<div class="prose mt-6 text-fg">
{!! nl2br(e($product->description)) !!}
</div>
@endif
@if ($product->specs)
<h2 class="mt-8 text-lg font-semibold text-fg">规格参数</h2>
<pre class="mt-3 overflow-x-auto rounded-lg border border-line bg-surface-2 p-4 font-mono text-sm text-fg">{{ $product->specs }}</pre>
@endif
</article>
<div class="mt-6">
<a href="{{ route('products.index') }}" class="inline-flex items-center gap-1.5 text-sm font-medium text-primary hover:text-primary-hover">
<x-icon name="arrow" :size="16" class="rotate-180" /> 返回产品中心
</a>
</div>
</div>
</section>
@endsection