Skip to content

Commit

Permalink
[frontend] Removed Temporary BG from News
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastlyMC956 committed Sep 12, 2024
1 parent 3fdc395 commit d02a12e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions frontend/src/app/[language]/bulletin/components/newsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@ export default function NewsCard({ newsItem }: { newsItem: News }) {
>
<CardHeader>
<Link href={'./news/' + newsItem.url} className='group w-full h-fit'>
{newsItem.translations[0].main_image_url ? (
{newsItem.translations[0].main_image_url && (
<Image
src={newsItem.translations[0].main_image_url}
alt={newsItem.translations[0].title + ' Image'}
width={300}
height={100}
className='object-cover w-full h-full'
/>
) : (
<div className='w-full h-[100px] bg-blue-400' />
)}

<CardTitle className='py-2 underline-offset-4 decoration-yellow-400 decoration-2 group-hover:underline'>
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/app/[language]/bulletin/news/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default async function NewsPage({
</BreadcrumbList>
</Breadcrumb>
<div className='flex flex-col items-center justify-start min-h-[1080px] h-fit px-4 sm:px-20 lg:px-0'>
<div className='w-full lg:w-[700px] h-fit'>
<div className='w-full lg:w-[700px] h-fit border-b-2 border-yellow-400 pb-1 mb-1'>
<ul className='flex min-h-10 h-fit py-2'>
{data.categories &&
data.categories.map((category) => (
Expand Down Expand Up @@ -188,8 +188,7 @@ export default async function NewsPage({
</p>
)}
</div>
<div className='w-full lg:w-[700px] h-[300px] bg-blue-500 my-8'></div>
<div className='w-full lg:w-[700px] -mt-4 mb-8'>
<div className='w-full lg:w-[700px] my-4 mb-8'>
<Body body={data.translations[0].body} />
</div>
</div>
Expand Down

0 comments on commit d02a12e

Please sign in to comment.