-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new blog entry (linux terminal tools)
- Loading branch information
Showing
39 changed files
with
670 additions
and
165 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
import { Image } from 'astro:assets' | ||
interface Props { | ||
src: string | ||
} | ||
const { src } = Astro.props | ||
--- | ||
|
||
<style> | ||
img { | ||
--b: 8px; /* border thickness*/ | ||
--s: 60px; /* size of the corner*/ | ||
--g: 14px; /* the gap*/ | ||
--c: #edc951; | ||
|
||
padding: calc(var(--b) + var(--g)); | ||
background-image: conic-gradient( | ||
from 90deg at top var(--b) left var(--b), | ||
#0000 25%, | ||
var(--c) 0 | ||
), | ||
conic-gradient( | ||
from -90deg at bottom var(--b) right var(--b), | ||
#0000 25%, | ||
var(--c) 0 | ||
); | ||
background-position: | ||
var(--_p, 0%) var(--_p, 0%), | ||
calc(100% - var(--_p, 0%)) calc(100% - var(--_p, 0%)); | ||
background-size: var(--s) var(--s); | ||
background-repeat: no-repeat; | ||
cursor: pointer; | ||
transition: | ||
background-position 0.3s var(--_i, 0.3s), | ||
background-size 0.3s calc(0.3s - var(--_i, 0.3s)); | ||
} | ||
img.alt { | ||
background-image: conic-gradient( | ||
from 180deg at top var(--b) right var(--b), | ||
#0000 25%, | ||
var(--c) 0 | ||
), | ||
conic-gradient( | ||
from 0deg at bottom var(--b) left var(--b), | ||
#0000 25%, | ||
var(--c) 0 | ||
); | ||
background-position: | ||
calc(100% - var(--_p, 0%)) var(--_p, 0%), | ||
var(--_p, 0%) calc(100% - var(--_p, 0%)); | ||
} | ||
img:hover { | ||
background-size: calc(100% - var(--g)) calc(100% - var(--g)); | ||
--_p: calc(var(--g) / 2); | ||
--_i: 0s; | ||
} | ||
</style> | ||
<Image | ||
src={src} | ||
alt='blog image with rounded border' | ||
width='250' | ||
height='250' | ||
class='rounded' | ||
/> |
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
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.