Skip to content

Commit

Permalink
feat(tailwind): convert index page
Browse files Browse the repository at this point in the history
From styled-components to tailwindcss
  • Loading branch information
mateusfg7 committed Aug 18, 2022
1 parent 04e7504 commit 4c0d3f9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,22 @@
import React from 'react'
import Head from 'next/head'

import GlobalStyle from '../styles/global'

import { Header } from '../components/Header'
import { Sound } from '../components/Sound'
import { Footer } from '../components/Footer'

import { SoundGridLayout } from '../styles/pages/index'

import soundList from '../sounds.json'

const Home: React.FC = () => {
return (
<div className="App">
<GlobalStyle />

<Head>
<title>Noisekun</title>
</Head>

<Header />
<section className="main-section audio-section">
<SoundGridLayout>
<section className="flex justify-center items-center min-h-[85vh] p-14">
<div className="grid gap-12 grid-cols-1 xs:grid-cols-2 2xs:grid-cols-3 sm:grid-cols-4 md:grid-cols-5 xl:grid-cols-6">
{soundList.map(sound => (
<Sound
key={sound.name}
Expand All @@ -31,7 +25,7 @@ const Home: React.FC = () => {
audioFile={sound.audioFile}
/>
))}
</SoundGridLayout>
</div>
</section>
<Footer />
</div>
Expand Down

0 comments on commit 4c0d3f9

Please sign in to comment.