初始化
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
|
||||
|
||||
<?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">与工程师交流选型、调试与量产经验。</p>
|
||||
</div>
|
||||
|
||||
<?php if(auth()->guard()->guest()): ?>
|
||||
<div class="mb-8 flex flex-col gap-4 rounded-lg border border-line bg-surface p-5 shadow-soft sm:flex-row sm:items-center sm:justify-between">
|
||||
<div class="flex items-center gap-3">
|
||||
<span class="inline-flex h-11 w-11 items-center justify-center rounded-lg bg-primary-soft 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' => 'chat','size' => 24]] + (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' => 'chat','size' => 24]); ?>
|
||||
<?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>
|
||||
<p class="text-lg text-fg">登录后即可参与版块讨论、发帖与回复。</p>
|
||||
</div>
|
||||
<div class="flex items-center gap-3">
|
||||
<a href="<?php echo e(url('/login')); ?>" class="inline-flex items-center justify-center rounded-lg border border-line px-6 py-2.5 text-lg font-semibold text-fg transition hover:border-primary hover:text-primary">登录</a>
|
||||
<a href="<?php echo e(url('/register')); ?>" class="inline-flex items-center justify-center rounded-lg bg-primary px-6 py-2.5 text-lg font-semibold text-white transition hover:bg-primary-hover">注册</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="mt-8 grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<?php $__empty_1 = true; $__currentLoopData = $boards; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $board): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
||||
<a href="<?php echo e(route('forum.board', $board->slug)); ?>" class="group flex flex-col rounded-lg border border-line bg-surface p-6 shadow-soft transition hover:-translate-y-0.5 hover:border-primary hover:shadow-card">
|
||||
<span class="inline-flex h-10 w-10 items-center justify-center rounded-lg bg-primary-soft 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' => 'chat','size' => 22]] + (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' => 'chat','size' => 22]); ?>
|
||||
<?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>
|
||||
<h3 class="mt-4 text-lg font-semibold text-fg transition group-hover:text-primary"><?php echo e($board->name); ?></h3>
|
||||
<p class="mt-2 line-clamp-2 text-sm text-muted"><?php echo e($board->description); ?></p>
|
||||
<p class="mt-4 text-xs text-muted"><?php echo e($board->threads_count); ?> 个帖子</p>
|
||||
</a>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
|
||||
<p class="text-sm text-muted">版块即将开放,敬请期待。</p>
|
||||
<?php endif; ?>
|
||||
</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/forum/index.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user