Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
Blog
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sakilesh J
Blog
Commits
3b04e668
Commit
3b04e668
authored
Aug 01, 2024
by
Sakilesh J
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the cards design
parent
d83ad450
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
BlogCard.tsx
components/Top-Level/blog-card/BlogCard.tsx
+4
-5
Home.tsx
pages/Home.tsx
+1
-1
No files found.
components/Top-Level/blog-card/BlogCard.tsx
View file @
3b04e668
...
...
@@ -12,9 +12,9 @@ interface blogcardprops extends profileCardsItems{
const
BlogCard
:
React
.
FC
<
blogcardprops
>
=
({
img
,
title
,
description
,
id
,
...
props
})
=>
{
return
(
<
Link
href=
{
`/blog/${id}`
}
>
<
Link
href=
{
`/blog/${id}`
}
className=
"sm:max-w-[28rem] w-full inline-block"
>
<
div
className=
"
sm:min-w-sm w-full
shadow-md rounded-md cursor-pointer hover:shadow-xl transition-all duration-300 hover:scale-[1.01] ease-in-out overflow-hidden
className=
"
w-auto
shadow-md rounded-md cursor-pointer hover:shadow-xl transition-all duration-300 hover:scale-[1.01] ease-in-out overflow-hidden
dark:*:text-white group h-full"
>
{
img
&&
...
...
@@ -29,9 +29,8 @@ const BlogCard: React.FC<blogcardprops> = ({ img, title, description, id, ...pro
</
p
>
<
ProfileCard
{
...
props
}
/>
</
div
>
</
div
>
</
Link
>
</
div
>
</
Link
>
)
}
...
...
pages/Home.tsx
View file @
3b04e668
...
...
@@ -30,7 +30,7 @@ const Home = () => {
}
{
data
?.
slice
(
start
,
end
).
map
((
data
)
=>
(
<
div
key=
{
data
.
id
}
className=
"flex-grow sm:flex-grow-0 sm:w-[calc(50%-1rem)]
lg:w-[calc(33.33%-1rem)] *:sm:m
ax
-w-full *:h-full"
>
lg:w-[calc(33.33%-1rem)] *:sm:m
in
-w-full *:h-full"
>
<
BlogCard
{
...
{
img
:
data
.
banner
.
img
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment