Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions client/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Binary file added client/public/Icons/Google.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 4 additions & 24 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,13 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'

import './App.css'
import Login from './components/Login'

function App() {
const [count, setCount] = useState(0)

return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.jsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>


</>
)
}
Expand Down
9 changes: 9 additions & 0 deletions client/src/components/Hompage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

function Hompage() {
return (
<div>Hompage</div>
)
}

export default Hompage
48 changes: 48 additions & 0 deletions client/src/components/Login.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import React, { useState } from 'react'
import GIcon from '../../public/Icons/Google.png'
function Login() {
const [logEmail, setLogEmail ] = useState(false)
return (
<>
<section className='w-full relative h-screen overflow-hidden flex justify-center items-center'>
<video src="https://videos.pexels.com/video-files/6101343/6101343-hd_1366_720_30fps.mp4" autoPlay loop muted className='w-full z-[-5] absolute'></video>

<div className='border-2 rounded-xl min-w-96 w-[40%] bg-slate-700 bg-opacity-60'>
<div id="logo" className='text-center py-3 '>
<img className='w-10 block mx-auto my-5 bg-transparent' src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTKvQ4Pvr8MU3QMOhu_3UFkztfs4qhp7Iz9_Q&s" alt="" />
<h1 className='text-3xl text-white font-bold pt-2'>Welcome to DevAuction</h1>
</div>
<div className="button flex gap-3 flex-col items-center my-6">
<button className='flex justify-center items-center w-[400px] bg-blue-950 px-6 rounded-md '>
<img className='w-10' src={GIcon} alt="" />
<span className='text-lg text-white font-semibold'>Continue With Google</span>
</button>
{
logEmail === false ? (
<button
className='py-2 w-[400px] bg-blue-950 rounded-md'
onClick={() => setLogEmail(true)}
>

<span className='text-lg h-10 text-white font-semibold'>Continue With Email</span>
</button>
) :
(
<>
<input type="email" className='w-[400px] outline-none text-white p-2 bg-transparent border-2 border-blue-600 rounded-lg' placeholder='Email' name="" id="" />
<button className='flex justify-around items-center w-[350px] bg-blue-950 px-6 py-2 rounded-md'>
<span className='text-lg text-white font-semibold'>Continue With Email</span>
</button>
</>
)
}
</div>

</div>

</section>
</>
)
}

export default Login