Skip to content

Commit a3e78d1

Browse files
Update styles (#1412)
2 parents a9132b9 + d09c5d3 commit a3e78d1

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

src/components/Insights/InsightsCatalog/PromotionSection/PromotionCard/UdemyCoursePromotionCard/styles.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ import styled, { keyframes } from "styled-components";
22

33
const blurAnimation = keyframes`
44
0% { opacity: 0; }
5+
40% { opacity: 0; }
6+
60% { opacity: 1; }
57
100% { opacity: 1; }
68
`;
79

810
export const AnimatedPromotionBackground = styled.div`
911
position: absolute;
1012
top: 0;
11-
animation: 1s ${blurAnimation} linear infinite alternate;
13+
animation: 5s ${blurAnimation} linear infinite alternate;
1214
`;

src/components/Insights/InsightsCatalog/PromotionSection/PromotionCard/styles.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,16 @@ export const Description = styled.span`
5555
`;
5656

5757
const shineAnimation = keyframes`
58-
0% { left: -33%; }
59-
50% {left: 33%}
60-
100% { left: -33%; }
58+
0% { left: -100%; }
59+
25% { left: 0%; }
60+
50% { left: 100%; }
61+
100% { left: 100%; }
6162
`;
6263

6364
export const AccessCourseButton = styled(Button)`
6465
padding: 6px 8px;
6566
position: relative;
67+
overflow: hidden;
6668
6769
&::before {
6870
content: "";
@@ -77,7 +79,7 @@ export const AccessCourseButton = styled(Button)`
7779
rgb(255 255 255 / 35%),
7880
rgb(255 255 255 / 0%) 70%
7981
);
80-
animation: ${shineAnimation} 2s infinite linear;
82+
animation: ${shineAnimation} 3s infinite linear;
8183
}
8284
`;
8385

src/components/Main/RegistrationCard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { SuccessRegistration } from "./SuccessRegistration";
1111
import type { RegistrationCardProps } from "./types";
1212

1313
const TRANSITION_CLASS_NAME = "registration-card";
14-
const DEFAULT_TRANSITION_DURATION = 1000;
14+
const DEFAULT_TRANSITION_DURATION = 300;
1515

1616
export const RegistrationCard = ({
1717
onClose,

src/components/Main/RegistrationCard/styles.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ export const FormContainer = styled.div`
5959

6060
export const Register = styled(RegisterForm)`
6161
flex-direction: column;
62+
gap: 3px;
6263
6364
form {
64-
gap: 2px;
65+
gap: 4px;
6566
}
6667
`;
6768

0 commit comments

Comments
 (0)