Skip to content

Commit

Permalink
move news item details near header
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 26, 2023
1 parent 91fdb30 commit df2bc52
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/Components/NewsItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ export interface NewsItemProps {

const NewsItem = ({ headline, thumbnail, date, source, url }: NewsItemProps) => {
return (
<div className='grid grid-cols-12 mb-[9vw]'>
<h3 className='mb-[4vw] md:mb-[unset] text-left md:col-start-4 col-span-full'>{headline}</h3>
<div className='md:col-start-4 col-span-full flex flex-row justify-start'>
<p className="mr-[4vw]">{date}</p>
<ColorfulTag {...sourceTagStyles[source]} />
<a className="ml-[4vw] cursor-pointer" href={url} target='_blank'>See more...</a>
<div className='grid relative grid-cols-12 mb-[9vw] md:mb-[4vw]'>
<div className='text-left md:col-start-4 col-span-full'>
<h3 className="mb-[4vw] md:mb-[1vw]">{headline}</h3>
<div className='flex flex-row justify-start'>
<p className="mr-[4vw]">{date}</p>
<ColorfulTag {...sourceTagStyles[source]} />
<a className="ml-[4vw] cursor-pointer" href={url} target='_blank'>See more...</a>
</div>

</div>
<div className="relative row-start-3 md:row-start-1 mb-[2vw] md:mb-[unset]
place-self-center w-[60vw] h-[60vw] md:w-[15vw] md:h-[15vw] rounded col-start-1
Expand Down

0 comments on commit df2bc52

Please sign in to comment.