Fixed up dark mode vs. not and added a linkedin mobil copy.
This commit is contained in:
parent
bf1426261d
commit
2477603190
12 changed files with 758 additions and 491 deletions
|
@ -5,31 +5,31 @@
|
|||
<h1><a href="/admin/table/">«</a> Admin {{ .Table }}</h1>
|
||||
|
||||
<block x-data="thePage">
|
||||
<block class="horizontal">
|
||||
<bar>
|
||||
<button type="button"><a href="/admin/new/table/{{ .Table }}/">New</a></button>
|
||||
<button type="button" @click="page -= 1">Prev</button>
|
||||
<button type="button" @click="page += 1">Next</button>
|
||||
<input type="text" x-model.debounce="search_query" name="search" size="40" placeholder="Search" />
|
||||
</block>
|
||||
</bar>
|
||||
|
||||
<table class="bg-gray-800 shadow-lg rounded-sm">
|
||||
<tr class="bg-gray-950 *:border-x *:border-black">
|
||||
<table>
|
||||
<tr class="table-header">
|
||||
<th>#</th>
|
||||
<template x-for="header in headers">
|
||||
<th x-text="header"></th>
|
||||
</template>
|
||||
</tr>
|
||||
<template x-for="item in contents" :key="item.id">
|
||||
<tr class="*:border-2 *:border-black *:p-1 hover:bg-gray-100 hover:text-gray-950">
|
||||
<td>
|
||||
<a x-bind:href="'/admin/table/{{ .Table }}/' + item.id + '/'">
|
||||
#
|
||||
</a>
|
||||
</td>
|
||||
<template x-for="(value, key) in item">
|
||||
<td x-text="value"></td>
|
||||
</template>
|
||||
</tr>
|
||||
<tr class="table-row">
|
||||
<td>
|
||||
<a x-bind:href="'/admin/table/{{ .Table }}/' + item.id + '/'">
|
||||
#
|
||||
</a>
|
||||
</td>
|
||||
<template x-for="(value, key) in item">
|
||||
<td x-text="value"></td>
|
||||
</template>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
</block>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue