-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from pereira-tech-talks/feature/custom-blog-co…
…mponent Create custom component to show blog items
- Loading branch information
Showing
13 changed files
with
107 additions
and
785 deletions.
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
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,52 @@ | ||
/* src/styles/BlogCard.css */ | ||
.blog-card { | ||
@apply transition-transform duration-300; | ||
@apply bg-white shadow-md rounded-lg overflow-hidden; | ||
} | ||
|
||
.blog-card:hover { | ||
@apply -translate-y-1 shadow-lg; | ||
} | ||
|
||
.tooltip { | ||
@apply relative inline-block cursor-pointer; | ||
} | ||
|
||
.tooltip .tooltiptext { | ||
@apply invisible bg-black text-white text-center rounded-lg p-1 absolute z-10 opacity-0 transition-opacity duration-300; | ||
width: 120px; | ||
bottom: 125%; | ||
/* Position the tooltip above the text */ | ||
left: 50%; | ||
transform: translateX(-50%); | ||
/* Center the tooltip horizontally */ | ||
} | ||
|
||
.tooltip:hover .tooltiptext { | ||
@apply visible opacity-100; | ||
} | ||
|
||
.read-time { | ||
@apply text-gray-500 text-sm ml-auto uppercase; | ||
} | ||
|
||
.tag { | ||
@apply bg-gray-100 text-gray-700 text-sm px-2 py-1 rounded-full mr-2; | ||
} | ||
|
||
/* Blog Card Horizontal */ | ||
.blog-card-horizontal { | ||
@apply transition-transform duration-300 bg-white shadow-md rounded-lg overflow-hidden flex; | ||
} | ||
|
||
.blog-card-horizontal:hover { | ||
@apply -translate-y-1 shadow-lg; | ||
} | ||
|
||
.image-container { | ||
@apply w-1/3; | ||
} | ||
|
||
.content-container { | ||
@apply w-2/3 p-6; | ||
} |
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
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
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
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
Oops, something went wrong.