初始化
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', $glossaryTerm->term . ' - 云创芯术语库')
|
||||
|
||||
@section('content')
|
||||
<section class="px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
|
||||
<div class="mx-auto max-w-3xl">
|
||||
<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('glossary.index') }}" class="hover:text-primary">术语库</a>
|
||||
<span>/</span>
|
||||
<span class="text-fg">{{ $glossaryTerm->term }}</span>
|
||||
</nav>
|
||||
|
||||
<article class="rounded-lg border border-line bg-surface p-6 shadow-soft sm:p-8">
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg sm:text-3xl">{{ $glossaryTerm->term }}</h1>
|
||||
@if ($glossaryTerm->category)
|
||||
<p class="mt-2 text-sm text-muted">分类:{{ $glossaryTerm->category }}</p>
|
||||
@endif
|
||||
<div class="prose mt-5 text-fg">
|
||||
{!! nl2br(e($glossaryTerm->definition)) !!}
|
||||
</div>
|
||||
@if ($glossaryTerm->aliases)
|
||||
<p class="mt-4 text-sm text-muted">别名:{{ $glossaryTerm->aliases }}</p>
|
||||
@endif
|
||||
</article>
|
||||
|
||||
<div class="mt-6">
|
||||
<a href="{{ route('glossary.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
|
||||
Reference in New Issue
Block a user