Skip to content

Commit 1f0d5f9

Browse files
committed
Change snippets order & add donut-spinner
1 parent 4ec3d84 commit 1f0d5f9

File tree

3 files changed

+77
-3
lines changed

3 files changed

+77
-3
lines changed

components/Footer/Footer.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ const Footer = () => {
1010
<Stack>
1111
<Separator />
1212
<Paragraph>
13-
Built by <LinkPreview url="https://twitter.com/emilkowalski_">Emil</LinkPreview> 🌕
13+
Built by{' '}
14+
<Link href="https://twitter.com/emilkowalski_" target="_blank" rel="noreferrer">
15+
Emil
16+
</Link>{' '}
17+
🌕
1418
</Paragraph>
1519
</Stack>
1620
</footer>

components/Snippets/DonutSpinner.js

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import { styled, keyframes } from 'stitches.config.js';
2+
3+
const Component = () => {
4+
return <Wrapper></Wrapper>;
5+
};
6+
7+
const donutSpin = keyframes({
8+
'0%': {
9+
transform: 'rotate(0deg)'
10+
},
11+
'100%': {
12+
transform: 'rotate(360deg)'
13+
}
14+
});
15+
16+
const Wrapper = styled('a', {
17+
display: 'inline-block',
18+
border: '4px solid rgba(255, 255, 255, 0.1)',
19+
borderLeftColor: '$white',
20+
borderRadius: '50%',
21+
width: '30px',
22+
height: '30px',
23+
animation: `${donutSpin} 1.2s linear infinite`
24+
});
25+
26+
const cssStyling = `
27+
@keyframes donut-spin {
28+
0% {
29+
transform: rotate(0deg);
30+
}
31+
100% {
32+
transform: rotate(360deg);
33+
}
34+
}
35+
36+
.exampleBtn {
37+
display: inline-block;
38+
border: 4px solid rgba(255, 255, 255, 0.1);
39+
border-left-color: white;
40+
border-radius: 50%;
41+
width: 30px;
42+
height: 30px;
43+
animation: donut-spin 1.2s linear infinite;
44+
}
45+
`;
46+
47+
const scssStyling = `
48+
@keyframes donut-spin {
49+
0% {
50+
transform: rotate(0deg);
51+
}
52+
100% {
53+
transform: rotate(360deg);
54+
}
55+
}
56+
57+
.exampleBtn {
58+
display: inline-block;
59+
border: 4px solid rgba(255, 255, 255, 0.1);
60+
border-left-color: white;
61+
border-radius: 50%;
62+
width: 30px;
63+
height: 30px;
64+
animation: donut-spin 1.2s linear infinite;
65+
}
66+
`;
67+
68+
export { cssStyling, scssStyling, Component };

components/Snippets/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,21 @@ import * as ThreeDotsLoader from './ThreeDotsLoader';
1414
import * as ScalePseudo from './ScalePseudo';
1515
import * as UnderlineRight from './UnderlineRight';
1616
import * as FlickUp from './FlickUp';
17+
import * as DonutSpinner from './DonutSpinner';
1718

1819
const allSnippets = [
1920
UnderlineLeftRight,
2021
Pulse,
2122
PressDownButton,
2223
BorderMarker,
2324
OverlayLeft,
25+
DonutSpinner,
2426
MagnifyButton,
2527
Swing,
26-
Skeleton,
27-
HorizontalOverlay,
2828
BorderFade,
29+
HorizontalOverlay,
2930
TextTransformX,
31+
Skeleton,
3032
CircleScaleButton,
3133
ThreeDotsLoader,
3234
ScalePseudo,

0 commit comments

Comments
 (0)