初始化

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
+56
View File
@@ -0,0 +1,56 @@
@extends('layouts.app')
@section('title', '注册 - 深圳市云创芯电子有限公司')
@section('content')
<section class="px-4 py-12 sm:px-6 lg:px-8 lg:py-16">
<div class="mx-auto max-w-md">
<div 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">注册</h1>
<p class="mt-2 text-sm text-muted">创建账户,参与论坛交流并投稿技术文章。</p>
<form method="POST" action="{{ url('/register') }}" class="mt-6 space-y-5">
@csrf
<div>
<label for="name" class="mb-1.5 block text-sm font-medium text-fg">姓名</label>
<input id="name" name="name" type="text" value="{{ old('name') }}" maxlength="40" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 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>
<label for="email" class="mb-1.5 block text-sm font-medium text-fg">邮箱</label>
<input id="email" name="email" type="email" value="{{ old('email') }}" maxlength="120" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 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>
<label for="real_name" class="mb-1.5 block text-sm font-medium text-fg">真实姓名(选填)</label>
<input id="real_name" name="real_name" type="text" value="{{ old('real_name') }}" maxlength="40" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 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>
<label for="phone" class="mb-1.5 block text-sm font-medium text-fg">手机号(选填)</label>
<input id="phone" name="phone" type="tel" value="{{ old('phone') }}" maxlength="30" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 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>
<label for="company" class="mb-1.5 block text-sm font-medium text-fg">公司名称(选填)</label>
<input id="company" name="company" type="text" value="{{ old('company') }}" maxlength="120" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 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>
<label for="industry" class="mb-1.5 block text-sm font-medium text-fg">行业/领域(选填)</label>
<input id="industry" name="industry" type="text" value="{{ old('industry') }}" maxlength="60" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 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>
<label for="password" class="mb-1.5 block text-sm font-medium text-fg">密码(至少 8 位)</label>
<input id="password" name="password" type="password" required autocomplete="new-password" class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 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>
<label for="password_confirmation" class="mb-1.5 block text-sm font-medium text-fg">确认密码</label>
<input id="password_confirmation" name="password_confirmation" type="password" required class="w-full rounded-lg border border-line bg-surface px-3 py-2.5 text-sm text-fg placeholder:text-muted focus:border-primary focus:outline-none focus:shadow-[0_0_0_3px_var(--color-primary-soft)]">
</div>
<button type="submit" class="inline-flex w-full 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">
注册
</button>
<p class="text-center text-sm text-muted">
已有账号?<a href="{{ url('/login') }}" class="font-medium text-primary hover:text-primary-hover">去登录</a>
</p>
</form>
</div>
</div>
</section>
@endsection