add search page and search style

This commit is contained in:
ismailsosic
2022-12-30 04:02:16 +01:00
parent fe233c8562
commit 6eb127b8f9
40 changed files with 395 additions and 3622 deletions

View File

@@ -2,9 +2,6 @@ import Layout from '../components/Layout'
import '../styles/globals.css'
export default function App({ Component, pageProps }) {
return(
<Layout>
<Component {...pageProps} />
</Layout>
)
return <Component {...pageProps} />
}

View File

@@ -3,13 +3,13 @@ import '../styles/Layout.module.css'
export default function HomePage() {
return (
<div className="flex flex-col items-center w-[100vw] h-[50vh]">
<div className="flex flex-col justify-center items-center w-[100vw] h-[50vh]">
<div className="p-10 ">
<p className="text-6xl text-white font-serif">KitabCitab</p>
</div>
<div className="group
hover:bg-[#303134]
py-3 border-[1px] w-[90%]
py-2 border-[1px] w-[90%]
border-[#bdc1c6] rounded-3xl flex flex-row justify-around
tablet:w-[70%]
@@ -17,16 +17,16 @@ export default function HomePage() {
laptop:w-[40%]
"
>
<a className='rounded-3xl hover:border-black text-[#9aa0a6]' onClick={() => console.log("Search for results")}><AiOutlineSearch size={25}/></a>
<input className="bg-[#202124] group-hover:bg-[#303134] w-[80%] search px-2 active:border-none text-white font-serif outline-none"/>
<a className='rounded-3xl hover:border-black text-[#9aa0a6]' onClick={() => console.log("Remove text from input")}><AiOutlineClose size={25} /></a>
<a className='rounded-3xl hover:border-black text-[#9aa0a6] px-3' onClick={() => console.log("Search for results")}><AiOutlineSearch size={25}/></a>
<input className="bg-[#202124] group-hover:bg-[#303134] w-[80%] px-2 active:border-none text-white outline-none text-xl"/>
<a className='rounded-3xl hover:border-black text-[#9aa0a6] px-3' onClick={() => console.log("Remove text from input")}><AiOutlineClose size={25} /></a>
</div>
<button
<a href='/search'><button
className='py-1 px-10 mt-10 text-3xl rounded-md bg-[#303134] text-white font-serif border-[1px] border-[#303134] hover:border-[#fff] hover:border-[1px]'
onClick={() => console.log("Searching")}
>
Traži
</button>
</button></a>
</div>

View File

@@ -0,0 +1,38 @@
import React from 'react'
import { AiOutlineClose } from 'react-icons/ai'
const SearchPage = () => {
return (
<>
<div className="flex flex-col laptop:flex-row flex-wrap items-start w-[100vw] laptop:w-[80vw] h-[100vh]">
<div className="p-10 w-[100vw] laptop:w-[20vw]">
<a href='/'><p className="text-5xl tablet:text-6xl laptop:text-3xl text-white text-center font-serif ">KitabCitab</p></a>
</div>
<div className="group
my-3
mx-auto
py-5
h-[4vh]
max-w-[90vw]
bg-[#303134]
border-[1px] w-[90%] border-[#bdc1c6] rounded-3xl
flex flex-row justify-around items-center
tablet:w-[70%]
laptop:w-[40vw]
laptop:mx-0
laptop:my-10
laptop:justify-between
"
>
<input className="bg-[#303134] ml-5 w-[80%] active:border-none text-white outline-none text-lg "/>
<a className='rounded-3xl hover:border-black text-[#9aa0a6] px-3 py-auto' onClick={() => console.log("Remove text from input")}><AiOutlineClose size={25} /></a>
</div>
</div>
</>
)
}
export default SearchPage