JSFiddle - React, Tailwind, and code Playground
by Sergey khorev
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Active Orders</title>
<!-- MaterializeCSS CDN -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" rel="stylesheet">
<style>
body {
padding: 20px;
}
table {
table-layout: fixed;
width: 100%;
}
td, th {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.order-status {
font-weight: bold;
}
.order-status.approved {
color: green;
}
.order-status.loading {
color: orange;
}
.order-status.cancelled {
color: red;
}
.actions {
margin-bottom: 20px;
}
.pagination {
justify-content: center;
}
</style>
</head>
<body>
<!-- Actions Bar -->
<div class="row actions">
<div class="col s12">
<a class="waves-effect waves-light btn green">Создать заявку</a>
<a class="waves-effect waves-light btn blue">Обновить</a>
<a class="waves-effect waves-light btn yellow">Скопировать</a>
<a class="waves-effect waves-light btn red">Удалить</a>
<a class="waves-effect waves-light btn orange right">Найти</a>
</div>
</div>
<!-- Orders Table -->
<table class="highlight responsive-table">
<thead>
<tr>
<th>Статус заявки</th>
<th>Номер</th>
<th>Дата</th>
<th>Заказчик</th>
<th>Перевозчик</th>
<th>Водитель</th>
<th>Маршрут</th>
<th>Долг заказчика</th>
<th>Долг перевозчика</th>
</tr>
</thead>
<tbody>
...