Skip to content

Commit

Permalink
Improve code in venue.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shauryag2002 authored Mar 19, 2024
1 parent 5a8b97a commit 22e494b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Venue/venue.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function Venue({ className, city }) {
<div style={{'--image-url': `url(${city.img})`}}
className='relative w-[300px] h-[400px] sm:w-[250px] sm:h-[350px] card-bg bg-[image:var(--image-url)] flex items-center justify-center p-4 cursor-pointer'>
<div className='flex justify-between flex-col w-full h-full'>
<div className='flex justify-between items-center'>
<div><div className={`border text-white text-md rounded-lg p-1 text-center mt-2 ${city.cfp ? 'block': 'hidden' }`}>cfp is open</div></div>
<div className={`flex ${city.cfp ? 'justify-between' : 'justify-end'} items-center`}>
{city.cfp? <div><div className='border text-white text-md rounded-lg p-1 text-center mt-2'>cfp is open</div></div> :null}
<button onClick={(e) => {
e.preventDefault()
window.open(city.map, '_blank', 'noopener')
Expand Down

0 comments on commit 22e494b

Please sign in to comment.