Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
54 changes: 26 additions & 28 deletions components/landing-page/blog/BlogCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import {
CardContent,
CardFooter,
CardHeader,
CardTitle,
} from '@/components/ui/card';
import { Clock } from 'lucide-react';
import Link from 'next/link';
import Image from 'next/image';
import React from 'react';
Expand All @@ -24,18 +22,9 @@ const BlogCard = ({ blog }: { blog: Blog }) => {
return (
<Card
key={blog.id}
className='w-full max-w-none gap-0 overflow-hidden rounded-[8px] border-[#1B1B1B] bg-[#101010] p-0 transition-colors duration-300 hover:border-[#2A2A2A]'
className='max-w-noneflex h-full w-full flex-col gap-0 overflow-hidden rounded-[8px] border-[#1B1B1B] bg-[#101010] p-0 transition-colors duration-300 hover:border-[#2A2A2A]'
>
<CardHeader className='relative p-0 !pb-0'>
<CardTitle
className='absolute top-3.5 left-3.5 z-10 rounded-full border border-[rgba(255,255,255,0.48)] px-2.5 py-1 text-sm leading-[160%] font-medium text-white backdrop-blur-[12px]'
style={{
background:
'conic-gradient(from 180deg at 50% 50%, rgba(3, 3, 3, 0.12) 18.88653337955475deg, rgba(3, 3, 3, 0.12) 73.51145267486572deg, rgba(3, 3, 3, 0.12) 128.6191964149475deg, rgba(16, 16, 16, 0.12) 223.4290623664856deg, rgba(3, 3, 3, 0.12) 317.18567848205566deg)',
}}
>
{blog.category}
</CardTitle>
<div className='h-[214px] w-full'>
<Image
src={blog.image}
Expand All @@ -46,27 +35,36 @@ const BlogCard = ({ blog }: { blog: Blog }) => {
/>
</div>
</CardHeader>
<CardContent className='p-5 pb-2'>
<h2 className='line-clamp-2 text-sm leading-[145%] font-semibold text-white sm:text-base'>

<CardContent className='flex-1 border-b border-[#2B2B2B] px-3 py-3 pb-8'>
<div className='mb-3 flex items-center justify-between text-xs leading-[145%] text-[#b5b5b5] sm:text-sm'>
<span className='inline-block rounded-[8px] bg-[#A7F95014] px-2.5 py-2 text-sm font-medium text-[#A7F950]'>
{blog.category}
</span>
<span className='font-normal'>{blog.date}</span>
</div>
<h2 className='line-clamp-2 text-[16px] leading-[145%] font-semibold text-white sm:text-base'>
{blog.title}
</h2>
<p className='mt-3 line-clamp-2 text-sm leading-[160%] tracking-[-0.48px] text-[#D9D9D9] sm:text-base'>
<p className='mt-3 line-clamp-3 text-sm leading-[145%] font-normal tracking-[-0.48px] text-[#B5B5B5] sm:text-base'>
{blog.excerpt}
</p>
</CardContent>
<CardFooter className='mt-3 px-5 pb-5'>
<div className='flex w-full items-center justify-between gap-2'>
<div className='flex items-center justify-start gap-1 text-xs text-[#b5b5b5] sm:text-sm'>
<Clock className='h-3 w-3 sm:h-4 sm:w-4' />
{blog.date}
</div>
<Link
href={`/blog/${blog.slug}`}
className='text-xs text-white underline transition-colors duration-200 hover:text-[#D9D9D9] sm:text-sm'
>
Continue Reading
</Link>
</div>

<CardFooter className='mt-auto px-5 pt-6 pb-5'>
<Link
href={`/blog/${blog.slug}`}
className='flex w-full items-center justify-end gap-2 text-right text-sm font-medium text-[#A7F950]'
>
Continue reading
<Image
src='/right.svg'
alt='right icon'
width={40}
height={40}
className='inline-block w-4 pt-1'
/>
</Link>
</CardFooter>
</Card>
);
Expand Down
2 changes: 1 addition & 1 deletion components/landing-page/blog/BlogSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ const BlogSection = () => {
</div>
) : (
<div
className='grid w-full max-w-none grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6 lg:grid-cols-3 lg:gap-8 xl:grid-cols-3'
className='grid w-full max-w-none grid-cols-1 gap-4 sm:grid-cols-2 sm:gap-6 lg:grid-cols-3 lg:gap-6 xl:grid-cols-3'
role='list'
aria-label='Blog posts grid'
>
Expand Down
Binary file added public/Blog main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading