You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
314 lines
15 KiB
314 lines
15 KiB
import React from 'react';
|
|
import Layout from '../components/Layout';
|
|
|
|
export const Registration = (): JSX.Element => {
|
|
return (
|
|
<Layout
|
|
customMeta={{
|
|
title: 'О нас',
|
|
}}
|
|
>
|
|
<h1>РоботТоп</h1>
|
|
|
|
<div className="mt-10 sm:mt-0">
|
|
<div className="md:grid md:grid-cols-3 md:gap-6">
|
|
<div className="md:col-span-1">
|
|
<div className="px-4 sm:px-0">
|
|
<h3 className="text-lg font-medium leading-6">Регистрация команды</h3>
|
|
<p className="mt-1 text-sm">Введите актуальные данные команды</p>
|
|
</div>
|
|
</div>
|
|
<div className="mt-5 md:mt-0 md:col-span-2">
|
|
<form action="/api/registration" method="POST">
|
|
<div className="shadow overflow-hidden sm:rounded-md">
|
|
<div className="px-4 py-5 bg-white sm:p-6">
|
|
<div className="grid grid-cols-6 gap-6">
|
|
<div className="col-span-6 sm:col-span-3">
|
|
<label htmlFor="first-name" className="block text-sm font-medium text-gray-700">
|
|
ФИО тренера команды
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="name_team_coach"
|
|
id="first-name"
|
|
placeholder="Иванов Иван Иванович"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
/>
|
|
</div>
|
|
|
|
<div className="col-span-6 sm:col-span-3">
|
|
<label htmlFor="last-name" className="block text-sm font-medium text-gray-700">
|
|
Номер теленона тренера
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="coach_telenon_number"
|
|
id="last-name"
|
|
placeholder="+79181234567"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
/>
|
|
</div>
|
|
|
|
<div className="col-span-6 sm:col-span-3">
|
|
<label htmlFor="email-address" className="block text-sm font-medium text-gray-700">
|
|
Email тренера
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="trainer_mail"
|
|
id="email-address"
|
|
placeholder="you@example.com"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
/>
|
|
</div>
|
|
|
|
<div className="col-span-6 sm:col-span-3">
|
|
<label htmlFor="email-address" className="block text-sm font-medium text-gray-700">
|
|
Город команда
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="city_team"
|
|
id="email-address"
|
|
placeholder="Краснодар"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
/>
|
|
</div>
|
|
|
|
<div className="col-span-3">
|
|
<label htmlFor="street-address" className="block text-sm font-medium text-gray-700">
|
|
Учебное заведение команды
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="training_institution_team"
|
|
id="street-address"
|
|
placeholder="МАОУ СОШ 103"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
/>
|
|
</div>
|
|
|
|
<div className="col-span-3">
|
|
<label htmlFor="region" className="block text-sm font-medium text-gray-700">
|
|
Название команды
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="team_name"
|
|
id="region"
|
|
placeholder="Фиксики"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
/>
|
|
</div>
|
|
|
|
<div className="col-span-6 sm:col-span-3">
|
|
<label htmlFor="city" className="block text-sm font-medium text-gray-700">
|
|
ФИО первого участника
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="name_first_participant"
|
|
id="city"
|
|
placeholder="Иванов Иван Иванович / нет"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
/>
|
|
</div>
|
|
|
|
<div className="col-span-6 sm:col-span-3">
|
|
<label htmlFor="country" className="block text-sm font-medium text-gray-700">
|
|
Класс участника
|
|
</label>
|
|
<select
|
|
id="country"
|
|
name="first_partial_class"
|
|
autoComplete="country-name"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
>
|
|
<option>1</option>
|
|
<option>2</option>
|
|
<option>3</option>
|
|
<option>4</option>
|
|
<option>5</option>
|
|
<option>6</option>
|
|
<option>7</option>
|
|
<option>8</option>
|
|
<option>9</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div className="col-span-6 sm:col-span-3">
|
|
<label htmlFor="city" className="block text-sm font-medium text-gray-700">
|
|
ФИО второго участника
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="name_second_participant"
|
|
id="city"
|
|
placeholder="Иванов Петрт Иванович / нет"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
/>
|
|
</div>
|
|
|
|
<div className="col-span-6 sm:col-span-3">
|
|
<label htmlFor="country" className="block text-sm font-medium text-gray-700">
|
|
Класс участника
|
|
</label>
|
|
<select
|
|
id="country"
|
|
name="second_class"
|
|
autoComplete="country-name"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
>
|
|
<option>1</option>
|
|
<option>2</option>
|
|
<option>3</option>
|
|
<option>4</option>
|
|
<option>5</option>
|
|
<option>6</option>
|
|
<option>7</option>
|
|
<option>8</option>
|
|
<option>9</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div className="col-span-6 sm:col-span-3">
|
|
<label htmlFor="city" className="block text-sm font-medium text-gray-700">
|
|
ФИО третьего участника
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="name_third_party"
|
|
id="city"
|
|
placeholder="Иванов Дмитрий Иванович / нет"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
/>
|
|
</div>
|
|
|
|
<div className="col-span-6 sm:col-span-3">
|
|
<label htmlFor="country" className="block text-sm font-medium text-gray-700">
|
|
Класс участника
|
|
</label>
|
|
<select
|
|
id="country"
|
|
name="third_part_class"
|
|
autoComplete="country-name"
|
|
className="mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
|
|
>
|
|
<option>1</option>
|
|
<option>2</option>
|
|
<option>3</option>
|
|
<option>4</option>
|
|
<option>5</option>
|
|
<option>6</option>
|
|
<option>7</option>
|
|
<option>8</option>
|
|
<option>9</option>
|
|
<option>10</option>
|
|
<option>11</option>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div className="px-4 py-3 bg-gray-50 text-right sm:px-6">
|
|
<button
|
|
type="submit"
|
|
className="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
|
|
>
|
|
Зарегистрировать команду
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="relative overflow-x-auto shadow-md sm:rounded-lg">
|
|
<div className="px-4 sm:px-2 m-1 block">
|
|
<h3 className="text-lg font-medium leading-6">Зарегистрированные команды</h3>
|
|
</div>
|
|
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
|
<thead className="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
|
|
<tr>
|
|
<th scope="col" className="px-6 py-3">
|
|
Product name
|
|
</th>
|
|
<th scope="col" className="px-6 py-3">
|
|
Color
|
|
</th>
|
|
<th scope="col" className="px-6 py-3">
|
|
Category
|
|
</th>
|
|
<th scope="col" className="px-6 py-3">
|
|
Price
|
|
</th>
|
|
<th scope="col" className="px-6 py-3">
|
|
<span className="sr-only">Edit</span>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr className="bg-white border-b dark:bg-gray-800 dark:border-gray-700">
|
|
<th scope="row" className="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
|
|
Apple MacBook Pro 17"
|
|
</th>
|
|
<td className="px-6 py-4">
|
|
Sliver
|
|
</td>
|
|
<td className="px-6 py-4">
|
|
Laptop
|
|
</td>
|
|
<td className="px-6 py-4">
|
|
$2999
|
|
</td>
|
|
<td className="px-6 py-4 text-right">
|
|
<a href="#" className="font-medium text-blue-600 dark:text-blue-500 hover:underline">Edit</a>
|
|
</td>
|
|
</tr>
|
|
<tr className="bg-white border-b dark:bg-gray-800 dark:border-gray-700">
|
|
<th scope="row" className="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
|
|
Microsoft Surface Pro
|
|
</th>
|
|
<td className="px-6 py-4">
|
|
White
|
|
</td>
|
|
<td className="px-6 py-4">
|
|
Laptop PC
|
|
</td>
|
|
<td className="px-6 py-4">
|
|
$1999
|
|
</td>
|
|
<td className="px-6 py-4 text-right">
|
|
<a href="#" className="font-medium text-blue-600 dark:text-blue-500 hover:underline">Edit</a>
|
|
</td>
|
|
</tr>
|
|
<tr className="bg-white dark:bg-gray-800">
|
|
<th scope="row" className="px-6 py-4 font-medium text-gray-900 dark:text-white whitespace-nowrap">
|
|
Magic Mouse 2
|
|
</th>
|
|
<td className="px-6 py-4">
|
|
Black
|
|
</td>
|
|
<td className="px-6 py-4">
|
|
Accessories
|
|
</td>
|
|
<td className="px-6 py-4">
|
|
$99
|
|
</td>
|
|
<td className="px-6 py-4 text-right">
|
|
<a href="#" className="font-medium text-blue-600 dark:text-blue-500 hover:underline">Edit</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</Layout>
|
|
);
|
|
};
|
|
|
|
export default Registration;
|
|
|