-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f603adc
commit e23317a
Showing
21 changed files
with
1,176 additions
and
109 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,11 @@ | ||
--- | ||
type Props = { | ||
color: string; | ||
label?: string; | ||
}; | ||
const { color, label } = Astro.props; | ||
--- | ||
<code | ||
class="before:inline-block before:h-[1em] before:aspect-square before:bg-(--color) before:me-1 text-inherit before:align-[-1px]" | ||
style={{ '--color': color }}>{label || color}</code> |
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,53 @@ | ||
--- | ||
type ColorSchemes = 'purple' | 'green' | 'red' | 'orange'; | ||
type Props = { | ||
title?: string; | ||
label?: string; | ||
class?: string; | ||
color: ColorSchemes; | ||
}; | ||
const { | ||
title, | ||
label, | ||
color, | ||
class: className = '', | ||
...props | ||
} = Astro.props; | ||
const colorSchemes: Record<ColorSchemes, string> = { | ||
'purple': '**:text-violet-500 dark:**:text-violet-400', | ||
'green': '**:text-green-700', | ||
'red': '**:text-red-700 dark:**:text-red-800', | ||
'orange': '**:text-amber-600 dark:**:text-amber-700', | ||
}; | ||
--- | ||
<div | ||
class:list={[ | ||
'text-center', | ||
className, | ||
]} | ||
{...props} | ||
> | ||
|
||
{title && ( | ||
<div class="text-xs text-slate-500"> | ||
{title} | ||
</div> | ||
)} | ||
|
||
<div class:list={[ | ||
'text-3xl font-extrabold **:mb-0 my-3', | ||
colorSchemes[color], | ||
]}> | ||
<slot /> | ||
</div> | ||
|
||
{label && ( | ||
<div class="text-xs text-slate-500"> | ||
{label} | ||
</div> | ||
)} | ||
|
||
</div> |
Binary file added
BIN
+9.6 KB
src/content/posts/bootstrap-to-tailwind-migration/chart-tailwind-vs-bootstrap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+339 KB
...ent/posts/bootstrap-to-tailwind-migration/cover-bootstrap-to-tailwind-dalle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.