-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: styled project cards #15
Open
RickDeb2004
wants to merge
15
commits into
dscnitrourkela:main
Choose a base branch
from
RickDeb2004:debanjan/events
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3f251f3
styled project cards
RickDeb2004 dd23efb
Updated project card atyling & added typography for heading only
RickDeb2004 5478e04
Added typograogy for content of cards
RickDeb2004 f3ec285
Fix the alignment issue
RickDeb2004 3cf5436
eventData.js added & fixed desktop alignment of cards
RickDeb2004 b0d124b
fixed mobile view
RickDeb2004 4d84618
Merge branch 'main' into debanjan/events
Shurtu-gal cc963f7
chore: remove hero text from playground
Shurtu-gal f53d02d
Merge branch 'main' into debanjan/events
RickDeb2004 ec774e3
Merge branch 'main' into debanjan/events
RickDeb2004 0268912
Fixed responsiveness using grid
RickDeb2004 5e4f32a
fixed time div alignment issue with parent div
RickDeb2004 5c7e0a0
Fixed: typography for event time & modified inline styling & used Her…
RickDeb2004 7d8b257
Feat: added image icon beside heading and added vector arrow image
RickDeb2004 e983d74
feat: added typography for event headline for mobile screen
RickDeb2004 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { Heading, Paragraph, HeroText1 } from '../typography/index.jsx'; | ||
import eventData from '../../../data/eventData.js'; | ||
|
||
export default function Event() { | ||
return ( | ||
<div className='p-8 border-1 border-red-500 '> | ||
<div className=' flex items-center justify-center mx:auto'> | ||
<HeroText1 | ||
className='text-primary-yellow text-center sm:text-4xl' | ||
style={{ | ||
textShadow: '4.608px 4.608px 0px #000', | ||
|
||
WebkitTextStrokeWidth: 2.71052622795105, | ||
WebkitTextStrokeColor: '#252525', | ||
}}> | ||
Events | ||
</HeroText1> | ||
{eventData.length > 0 && <img src={eventData[0].titleUrl} alt='Icon' className='w-6 h-4 ml-2 lg:mt-10 sm: mt-6' />} | ||
</div> | ||
<div className='grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mt-12'> | ||
{eventData.map((event, index) => ( | ||
<div | ||
key={index} | ||
className='p-6 rounded-lg flex-shrink-0 relative w-auto bg-[#FF9E7C]' | ||
style={{ | ||
borderRadius: '8px', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove redundant styling |
||
border: '1px solid #000', | ||
|
||
boxShadow: '4px 4px 0px 0px #000', | ||
}}> | ||
<div | ||
className=' text-white px-3 py-1 rounded-full text-sm absolute -top-3.5 -right-4 z-10 whitespace-nowrap w-auto bg-yellow-300' | ||
style={{ | ||
borderRadius: '9px', | ||
border: '2px solid #000', | ||
}}> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change to tailwind styles |
||
<Paragraph variant='body3' className='text-black'> | ||
{event.time} | ||
</Paragraph> | ||
</div> | ||
<h3 className='text-xl font-semibold mb-2'> | ||
<Heading variant='h3'>{event.date}</Heading> | ||
</h3> | ||
<h4 className='text-lg font-semibold mb-4'> | ||
<Heading variant='h3'>{event.venue}</Heading> | ||
</h4> | ||
<ul className='text-[#d45500]'> | ||
{event.agenda.map((item, index) => ( | ||
<li key={index}> | ||
<Paragraph variant='body3' className='text-black'> | ||
{item} | ||
</Paragraph> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
))} | ||
</div> | ||
<div className=' bottom-0 right-0 my-px mr-2 '> | ||
{eventData.length > 0 && <img src={eventData[0].imageUrl} alt='Vector' className=' w-44 h-60 stroke-3 ' />} | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const eventData = [ | ||
{ | ||
time: '4PM onward', | ||
date: 'Friday, 22 Dec', | ||
venue: 'Hotel Deepti Courtyard', | ||
agenda: ['✦ Registration', '✦ Ice-Breakers', '✦ Dinner', '✦ Catch-up Celebration'], | ||
imageUrl: 'https://res.cloudinary.com/dkkuaymml/image/upload/v1711270555/Vector_716_1_lqh4wo.svg', | ||
titleUrl: 'https://res.cloudinary.com/dkkuaymml/image/upload/v1711271152/Group_8808_gnoig0.svg', | ||
}, | ||
{ | ||
time: '9AM to 10:30PM', | ||
date: 'Friday, 22 Dec', | ||
venue: 'Hotel Deepti Courtyard', | ||
agenda: ['✦ Registration', '✦ Ice-Breakers', '✦ Dinner', '✦ Catch-up Celebration'], | ||
}, | ||
{ | ||
time: '9AM to 2PM', | ||
date: 'Friday, 22 Dec', | ||
venue: 'Hotel Deepti Courtyard', | ||
agenda: ['✦ Registration', '✦ Ice-Breakers', '✦ Dinner', '✦ Catch-up Celebration'], | ||
}, | ||
]; | ||
|
||
export default eventData; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
import Hero from '../components/Hero'; | ||
import { Heading, Paragraph, PersonalizedText, Text } from '../components/shared'; | ||
import Event from '../components/shared/marginals/events.jsx'; | ||
export default function Playground() { | ||
return <Hero />; | ||
return ( | ||
<> | ||
<div className='container py-6'> | ||
<PersonalizedText>Personalized Text</PersonalizedText> | ||
<Heading variant='h1'>Heading 1</Heading> | ||
<Heading variant='h2'>Heading 2</Heading> | ||
<Heading variant='h3'>Heading 3</Heading> | ||
<Paragraph variant='body1'>Paragraph body1</Paragraph> | ||
<Paragraph variant='body2'>Paragraph body2</Paragraph> | ||
<Paragraph variant='body3'>Paragraph body3</Paragraph> | ||
<Text variant='button'>Text button</Text> | ||
<Text variant='nav'>Text nav</Text> | ||
<Text variant='navButton'>Text navButton</Text> | ||
<Text variant='footer'>Text footer</Text> | ||
|
||
<Heading variant='h1' className='mt-6'> | ||
Colors | ||
</Heading> | ||
<ul> | ||
<li className='text-primary'>Primary</li> | ||
<li className='text-primary-foreground'>Primary Foreground</li> | ||
<li className='text-primary-yellow'>Primary Yellow</li> | ||
<li className='text-black'>Black</li> | ||
<li className='text-black-foreground'>Black Foreground</li> | ||
</ul> | ||
</div> | ||
<Event /> | ||
</> | ||
); | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use tailwind styles.