[examples/538] - changes requested by demenech

This commit is contained in:
Luccas Mateus de Medeiros Gomes 2023-05-10 18:12:14 -03:00
parent d49abb1161
commit e6a8ba114e
4 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,6 @@
import '@/styles/globals.css'
import '@portaljs/components/styles.css'
import type { AppProps } from 'next/app'
export default function App({ Component, pageProps }: AppProps) {

View File

@ -58,9 +58,10 @@ export default function DatasetPage({
</div>
{dataset.files && dataset.files.length > 0 && (
<>
<h2 className="mb-0 mt-10">PREVIEWS</h2>
<h2 className="mb-0 mt-10">DATA PREVIEWS</h2>
{dataset.files?.map((file) => (
<div key={file} className="preview-table my-8">
<h3>{file.split('/').slice(-1)}</h3>
<Table url={file} />
</div>
))}

View File

@ -43,10 +43,10 @@ export function MobileItem({ dataset }: { dataset: Dataset }) {
info
</a>
<a
className="border border-zinc-900 font-light px-4 py-1 text-sm transition hover:bg-zinc-900 hover:text-white"
className="ml-2 border border-zinc-900 font-light px-4 py-1 text-sm transition hover:bg-zinc-900 hover:text-white"
href={`/datasets/${dataset.name}`}
>
info
explore
</a>
{/*
<button>
@ -101,7 +101,7 @@ export function DesktopItem({ dataset }: { dataset: Dataset }) {
<td className="py-8">
{index === 0 && (
<a
className="border border-zinc-900 font-light px-[25px] py-2.5 text-sm transition hover:bg-zinc-900 hover:text-white"
className="ml-2 border border-zinc-900 font-light px-[25px] py-2.5 text-sm transition hover:bg-zinc-900 hover:text-white"
href={`/datasets/${dataset.name}`}
>
explore

View File

@ -14,6 +14,5 @@ module.exports = {
},
},
},
safelist: ['w-6', 'h-6', 'opacity-100'],
plugins: [require('@tailwindcss/typography')],
};