Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improved card readability #293

Closed
Closed
Show file tree
Hide file tree
Changes from 4 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
9 changes: 5 additions & 4 deletions components/Venue/venue.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ function Venue({ className, city }) {
<div>
<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="absolute inset-0 bg-black opacity-30 rounded-3xl"/>
<div className='flex justify-between flex-col w-full h-full z-10'>
<div className='flex justify-between items-center '>
<div><div className={`shadow-[3px_5px_10px_1px_#2D3748] text-white rounded-3xl px-4 py-2 bg-[#3e4757] text-xs text-center mt-2 ${city.cfp ? 'block': 'hidden' }`}>cfp is open</div></div>
<a href={city.map} target='_blank' className='w-8 h-8 bg-white rounded-xl flex items-center justify-center' rel="noreferrer">
<img src='/img/mapIcon.svg' className='w-6' />
</a>
Expand All @@ -19,7 +20,7 @@ function Venue({ className, city }) {
<span className='text-lg font-bold'>{city.country}, {city.name}</span>
</div>
<div className='flex items-center justify-between w-full'>
<div className='border border-gray-400 rounded-lg p-1 text-center mt-2'>{city.date}</div>
<div className='border text-xs border-[#1a2694] rounded-2xl px-2 py-2 text-[#1a2694] bg-[#edeefd] text-center mt-2'>{city.date}</div>
</div>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"dependencies": {
"axios": "^1.6.0",
"d3": "^7.8.5",
"lucide-react": "^0.350.0",
"next": "^12.0.0",
"react": "^17.0.2",
"react-confetti": "^6.1.0",
Expand Down
Loading