Skip to content

Commit

Permalink
feat: Added footer
Browse files Browse the repository at this point in the history
  • Loading branch information
maximepires4 committed Mar 8, 2024
1 parent 734488f commit 5708ebf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
16 changes: 14 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { useEffect, useState } from 'react'
import { useState } from 'react'
import Input from '../components/Input'
import KanaList from '../components/KanaList'
import { toHiragana, toKatakana } from 'wanakana'
import Link from 'next/link'
import Image from 'next/image'

const hiraganaArray = [
'あ', 'い', 'う', 'え', 'お',
Expand Down Expand Up @@ -126,7 +128,7 @@ export default function Home() {
</button>
</div>

<aside className='fixed top-0 left-0 flex'>
<aside className='fixed z-40 top-0 left-0 flex'>
<div className={'h-screen overflow-y-auto border-r-2 dark:border-gray-800 bg-zinc-50 dark:bg-black transition-transform ' + (tabVisible ? 'translate-x-0' : '-translate-x-full')}>
<div className='sticky z-50 top-0 items-center bg-zinc-50 dark:bg-black'>
<ul className="flex-grow flex justify-between text-sm font-medium text-center text-gray-500 dark:text-gray-400">
Expand Down Expand Up @@ -158,6 +160,16 @@ export default function Home() {
}
</button>
</aside>

<footer className="fixed bottom-0 flex justify-center items-center w-full h-24 border-t dark:text-white dark:border-gray-800">
Created by Maxime Pires
<a href="https://github.com/maximepires4" target="_blank" rel="noopener noreferrer" className="ml-2">
<Image src="/learnkana/github.svg" className='dark:invert' alt="Github" width={24} height={24} />
</a>
<a href="https://linkedin.com/maximepires" target="_blank" rel="noopener noreferrer" className="ml-2">
<Image src="/learnkana/linkedin.webp" alt="Linkedin" width={24} height={24} />
</a>
</footer>
</main>
)
}
3 changes: 3 additions & 0 deletions public/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/linkedin.webp
Binary file not shown.

0 comments on commit 5708ebf

Please # to comment.