-
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.
- Loading branch information
1 parent
108020e
commit 3c39bca
Showing
33 changed files
with
541 additions
and
661 deletions.
There are no files selected for viewing
This file was deleted.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
import Icon from './Icon.astro'; | ||
import type { HTMLAttributes } from 'astro/types'; | ||
export interface Props extends HTMLAttributes<'a'> { | ||
type: 'video' | 'slides' | 'award'; | ||
icon?: string; | ||
} | ||
const { icon, type, ...attrs } = Astro.props; | ||
--- | ||
|
||
<a | ||
target="_blank" | ||
rel="noopener noreferrer external" | ||
class="c-media-link" | ||
{...attrs} | ||
> | ||
<Icon name={icon || type} size={1.2} /> | ||
<span class="c-media-link__label" | ||
><slot /> | ||
<span class="u-visuallyhidden">(Opens in another tab)</span> | ||
</span> | ||
</a> | ||
<style> | ||
.c-media-link { | ||
display: flex; | ||
column-gap: 0.2em; | ||
color: currentcolor; | ||
text-decoration: none; | ||
} | ||
|
||
.c-media-link > *:not(.c-media-link__label) { | ||
flex-shrink: 0; | ||
} | ||
|
||
.c-media-link__label { | ||
flex-grow: 1; | ||
|
||
&::before { | ||
content: ''; | ||
display: inline-block; | ||
inline-size: 0.5em; | ||
margin-inline-end: 0.1em; | ||
transform: translateY(0.1em); | ||
border-block-end: 2px solid currentcolor; | ||
} | ||
} | ||
|
||
@media (--pointer-mouse) { | ||
.c-media-link:hover .c-media-link__label::before { | ||
animation-name: blinking-cursor; | ||
animation-duration: 0.7s; | ||
animation-timing-function: ease-out; | ||
animation-iteration-count: infinite; | ||
color: var(--navigation-color-foreground-hover); | ||
} | ||
} | ||
|
||
@keyframes blinking-cursor { | ||
0% { | ||
opacity: 1; | ||
} | ||
|
||
30% { | ||
opacity: 0; | ||
} | ||
|
||
50% { | ||
opacity: 0; | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
} | ||
} | ||
</style> |
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,18 @@ | ||
label: Best Practices | ||
icon: heart | ||
data: | ||
- id: progressive | ||
label: Progressive Enhancement | ||
icon: mdi:escalator-up | ||
- id: atomic | ||
label: Atomic Design | ||
icon: "@atomic" | ||
- id: a11y | ||
label: Accessibility | ||
icon: mdi:wheelchair-accessibility | ||
- id: responsive | ||
label: Responsive Design | ||
icon: mdi:responsive | ||
- id: ds | ||
label: Design Systems | ||
icon: mdi:layers-triple |
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,21 @@ | ||
label: Build Tools | ||
icon: terminal | ||
data: | ||
- id: vite | ||
label: Vite | ||
icon: logos:vitejs | ||
- id: webpack | ||
label: webpack | ||
icon: logos:webpack | ||
- id: rollup | ||
label: Rollup | ||
icon: logos:rollupjs | ||
- id: esbuild | ||
label: esbuild | ||
icon: logos:esbuild | ||
- id: turborepo | ||
label: Turborepo | ||
icon: logos:turborepo-icon | ||
- id: gulp | ||
label: gulp | ||
icon: logos:gulp |
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,24 @@ | ||
label: Developer Experience | ||
icon: tools | ||
data: | ||
- id: jest | ||
label: Jest | ||
icon: logos:jest | ||
- id: Cypress | ||
label: Cypress | ||
icon: "@cypress" | ||
- id: vitest | ||
label: Vitest | ||
icon: "@vitest" | ||
- id: chai | ||
label: Mocha + Chai | ||
icon: logos:chai | ||
- id: eslint | ||
label: eslint | ||
icon: logos:eslint | ||
- id: linting-style | ||
label: stylelint | ||
icon: logos:stylelint | ||
- id: design-system | ||
label: Storybook | ||
icon: logos:storybook-icon |
Oops, something went wrong.