Skip to content

Commit ce0b02d

Browse files
committed
Add new button + change copy
1 parent 43c12c2 commit ce0b02d

File tree

10 files changed

+119
-13
lines changed

10 files changed

+119
-13
lines changed

components/Snippets/BorderFade.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { styled } from 'stitches.config.js';
22

33
const Component = () => {
4-
return <Wrapper>Hover me</Wrapper>;
4+
return <Wrapper>Hover over me</Wrapper>;
55
};
66

77
const Wrapper = styled('a', {

components/Snippets/BorderMarker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { styled } from 'stitches.config.js';
33
const Component = () => {
44
return (
55
<Wrapper>
6-
<span>Hover me</span>
6+
<span>Hover over me</span>
77
</Wrapper>
88
);
99
};

components/Snippets/CircleScaleButton.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { styled } from 'stitches.config.js';
33
const Component = () => {
44
return (
55
<Wrapper>
6-
<span>Hover me</span>
6+
<span>Hover over me</span>
77
</Wrapper>
88
);
99
};
@@ -39,7 +39,7 @@ const Wrapper = styled('a', {
3939
'&:before': {
4040
opacity: 1,
4141
transitionDuration: '.85s',
42-
transform: 'translate3d(-50%,-50%,0) scale3d(1,1,1)'
42+
transform: 'translate3d(-50%,-50%,0) scale3d(1.2,1.2,1.2)'
4343
},
4444

4545
span: {
@@ -79,7 +79,7 @@ const exampleWrapper = styled("a", {
7979
"&:before": {
8080
opacity: 1,
8181
transitionDuration: ".85s",
82-
transform: "translate3d(-50%,-50%,0) scale3d(1,1,1)",
82+
transform: "translate3d(-50%,-50%,0) scale3d(1.2,1.2,1.2)",
8383
},
8484
8585
span: {
@@ -125,7 +125,7 @@ const cssStyling = `
125125
.exampleBtn:hover::before {
126126
opacity: 1;
127127
transition-duration: .85s;
128-
transform: translate3d(-50%,-50%,0) scale3d(1,1,1)
128+
transform: translate3d(-50%,-50%,0) scale3d(1.2,1.2,1.2);
129129
}
130130
`;
131131

@@ -166,7 +166,7 @@ const scssStyling = `
166166
&:before {
167167
opacity: 1;
168168
transition-duration: .85s;
169-
transform: translate3d(-50%,-50%,0) scale3d(1,1,1)
169+
transform: translate3d(-50%,-50%,0) scale3d(1.2,1.2,1.2);
170170
}
171171
}
172172
}

components/Snippets/HorizontalOverlay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { styled } from 'stitches.config.js';
33
const Component = () => {
44
return (
55
<Wrapper>
6-
<span>Hover me</span>
6+
<span>Hover over me</span>
77
</Wrapper>
88
);
99
};

components/Snippets/OverlayLeft.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { styled } from 'stitches.config.js';
33
const Component = () => {
44
return (
55
<Wrapper>
6-
<span>Hover me</span>
6+
<span>Hover over me</span>
77
</Wrapper>
88
);
99
};

components/Snippets/PressDownButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { styled } from 'stitches.config.js';
22

33
const Component = () => {
4-
return <Wrapper>Hover me</Wrapper>;
4+
return <Wrapper>Hover over me</Wrapper>;
55
};
66

77
const Wrapper = styled('a', {

components/Snippets/ScalePseudo.js

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
import { styled } from 'stitches.config.js';
2+
3+
const Component = () => {
4+
return <Wrapper>Hover over me</Wrapper>;
5+
};
6+
7+
const Wrapper = styled('a', {
8+
padding: '12px 24px',
9+
color: '$black',
10+
transition: 'transform 0.15s',
11+
cursor: 'pointer',
12+
position: 'relative',
13+
zIndex: 1,
14+
15+
'&:after': {
16+
content: '',
17+
backgroundColor: 'white',
18+
transition: 'transform 0.15s',
19+
borderRadius: 7,
20+
position: 'absolute',
21+
inset: 0,
22+
zIndex: '-1'
23+
},
24+
25+
'&:hover:after': {
26+
transform: 'scale(1.1)'
27+
}
28+
});
29+
30+
const stitchesStyling = `
31+
const exampleWrapper = styled("a", {
32+
padding: '12px 24px',
33+
color: 'black',
34+
transition: 'transform 0.15s',
35+
cursor: 'pointer',
36+
position: 'relative',
37+
zIndex: 1,
38+
39+
'&:after': {
40+
content: '',
41+
backgroundColor: 'white',
42+
transition: 'transform 0.15s',
43+
borderRadius: 7,
44+
position: 'absolute',
45+
inset: 0,
46+
zIndex: '-1'
47+
},
48+
49+
'&:hover:after': {
50+
transform: 'scale(1.1)'
51+
}
52+
});`;
53+
54+
const cssStyling = `
55+
.exampleClass {
56+
padding: 12px 24px;
57+
color: black;
58+
transition: transform 0.15s;
59+
cursor: pointer;
60+
position: relative;
61+
z-index: 1;
62+
}
63+
64+
.exampleClass::after {
65+
content: '';
66+
background-color: white;
67+
transition: transform 0.15s;
68+
border-radius: 7px;
69+
position: absolute;
70+
inset: 0;
71+
z-index: -1;
72+
}
73+
74+
.exampleClass:hover::after {
75+
transform: scale(1.1);
76+
}
77+
`;
78+
79+
const scssStyling = `
80+
.exampleClass {
81+
padding: 12px 24px;
82+
color: black;
83+
transition: transform 0.15s;
84+
cursor: pointer;
85+
position: relative;
86+
z-index: 1;
87+
88+
&:after {
89+
content: '';
90+
background-color: white;
91+
transition: transform 0.15s;
92+
border-radius: 7px;
93+
position: absolute;
94+
inset: 0;
95+
z-index: -1;
96+
}
97+
98+
&:hover::after {
99+
transform: scale(1.1);
100+
}
101+
}
102+
`;
103+
104+
export { stitchesStyling, cssStyling, scssStyling, Component };

components/Snippets/Swing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { styled, keyframes } from 'stitches.config.js';
22

33
const Component = () => {
4-
return <Wrapper>Hover me</Wrapper>;
4+
return <Wrapper>Hover over me</Wrapper>;
55
};
66

77
const swing = keyframes({

components/Snippets/UnderlineLeftRight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { styled } from 'stitches.config.js';
22

33
const Component = () => {
4-
return <Wrapper>Hover me</Wrapper>;
4+
return <Wrapper>Hover over me</Wrapper>;
55
};
66

77
const Wrapper = styled('a', {

components/Snippets/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import * as BorderFade from './BorderFade';
1111
import * as TextTransformX from './TextTransformX';
1212
import * as CircleScaleButton from './CircleScaleButton';
1313
import * as ThreeDotsLoader from './ThreeDotsLoader';
14+
import * as ScalePseudo from './ScalePseudo';
1415

1516
const allSnippets = [
1617
UnderlineLeftRight,
@@ -25,7 +26,8 @@ const allSnippets = [
2526
BorderFade,
2627
TextTransformX,
2728
CircleScaleButton,
28-
ThreeDotsLoader
29+
ThreeDotsLoader,
30+
ScalePseudo
2931
];
3032

3133
export default allSnippets;

0 commit comments

Comments
 (0)