初始化
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
|
||||
|
||||
<?php $__env->startSection('title', '术语库 - 深圳市云创芯电子有限公司'); ?>
|
||||
|
||||
<?php $__env->startSection('content'); ?>
|
||||
<section class="px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
|
||||
<div class="max-w-8xl mx-auto">
|
||||
<div class="mb-8">
|
||||
<h1 class="text-2xl font-bold tracking-tight text-fg sm:text-3xl">术语库</h1>
|
||||
<p class="mt-2 text-sm text-muted">PD / PHY / 快充协议关键术语速查。</p>
|
||||
</div>
|
||||
|
||||
<form method="GET" class="flex flex-wrap items-end gap-3">
|
||||
<div class="min-w-[220px] flex-1">
|
||||
<label class="mb-1.5 block text-sm font-medium text-fg">搜索</label>
|
||||
<div class="relative">
|
||||
<span class="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'search','size' => 18]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('icon'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['name' => 'search','size' => 18]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
|
||||
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
|
||||
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
|
||||
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
|
||||
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<input type="text" name="q" value="<?php echo e($q); ?>" placeholder="搜索术语、定义..." class="w-full rounded-lg border border-line bg-surface py-2.5 pl-10 pr-3 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="inline-flex items-center justify-center gap-2 rounded-lg bg-primary px-5 py-2.5 text-sm font-semibold text-white transition hover:bg-primary-hover">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'search','size' => 18]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('icon'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['name' => 'search','size' => 18]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
|
||||
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
|
||||
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
|
||||
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
|
||||
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
|
||||
<?php endif; ?> 查询
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="mt-8 space-y-4">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $terms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $term): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<a href="<?php echo e(route('glossary.show', $term->slug)); ?>" class="group flex items-center justify-between gap-4 rounded-lg border border-line bg-surface p-5 shadow-soft transition hover:border-primary hover:shadow-card">
|
||||
<div>
|
||||
<h3 class="text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($term->term); ?></h3>
|
||||
<p class="mt-1 line-clamp-2 text-sm text-muted"><?php echo e(Str::limit($term->definition, 90)); ?></p>
|
||||
</div>
|
||||
<span class="shrink-0 text-muted transition group-hover:text-primary">
|
||||
<?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'arrow','size' => 20]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('icon'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['name' => 'arrow','size' => 20]); ?>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
|
||||
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
|
||||
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
|
||||
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
|
||||
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</a>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
|
||||
<p class="text-sm text-muted">没有匹配的术语。</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="mt-8">
|
||||
<?php echo e($terms->links('pagination::bootstrap-5')); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php $__env->stopSection(); ?>
|
||||
|
||||
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /www/wwwroot/cloud-chip.cn/resources/views/glossary/index.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user