1- * {
2- margin : 0 ;
3- padding : 0 ;
4- box-sizing : border-box;
5- }
6-
7- body {
8- width : 100% ;
9- height : 100vh ;
10- background : linear-gradient (to right top, # ff0f7b, # f89b29 );
1+ body {
2+ font-family : Arial, sans-serif;
3+ background-color : # f4f4f4 ;
114 display : flex;
125 flex-direction : column;
13- justify-content : center;
146 align-items : center;
15- }
16-
17- h1 {
18- font-size : 55px ;
19- text-shadow : 0 1px 0 # ccc, 0 2px 0 # c9c9c9, 0 3px 0 # bbb, 0 4px 0 # b9b9b9,
20- 0 5px 0 # aaa, 0 6px 1px rgba (0 , 0 , 0 , 0.1 ), 0 0 5px rgba (0 , 0 , 0 , 0.1 ),
21- 0 1px 3px rgba (0 , 0 , 0 , 0.3 ), 0 3px 5px rgba (0 , 0 , 0 , 0.2 ),
22- 0 5px 10px rgba (0 , 0 , 0 , 0.25 ), 0 10px 10px rgba (0 , 0 , 0 , 0.2 ),
23- 0 20px 20px rgba (0 , 0 , 0 , 0.15 );
24- }
25-
26- .main {
27- width : 25% ;
28- height : 70% ;
29- padding : 50px 15px ;
30- display : flex;
317 justify-content : center;
32- align-items : center ;
33- flex-direction : column ;
34- background : # fff ;
35- box-shadow : 0 10 px 25 px -10 px rgba ( 0 , 0 , 0 , 0.5 );
36- border-radius : 5 px ;
37- margin-top : 25 px ;
38- margin-bottom : 40 px ;
39- }
40-
41- . main . input {
42- width : 90 % ;
43- padding : 8px 25 px ;
44- border : 3 px solid # 9e9e9e ;
45- outline : none ;
46- margin : 15 px 0 ;
47- }
48- . main . input : focus {
49- border : 3 px solid # f89b29 ;
50- }
51- . btn ,
52- . input {
53- font-size : 1.1 rem ;
54- border-radius : 5 px ;
55- }
56- . main .btn {
57- width : 90 % ;
58- padding : 12 px 0 ;
59- outline : none ;
8+ height : 100 vh ;
9+ margin : 0 ;
10+ }
11+
12+ h1 {
13+ color : # 333 ;
14+ }
15+
16+ . main {
17+ background-color : # fff ;
18+ padding : 20 px ;
19+ border-radius : 8px ;
20+ box-shadow : 0 4 px 8 px rgba ( 0 , 0 , 0 , 0.1 ) ;
21+ text-align : center ;
22+ }
23+
24+ . input {
25+ width : 80 % ;
26+ padding : 10 px ;
27+ border : 1 px solid # ccc ;
28+ border-radius : 4 px ;
29+ margin-bottom : 10 px ;
30+ }
31+
32+ .btn {
33+ padding : 10 px 15 px ;
34+ background-color : # 28a745 ;
35+ color : white ;
6036 border : none;
61- border-radius : 5px ;
62- background : # f89b29 ;
63- color : # fff ;
64- transition : 0.3s ;
65- }
66- .main .code {
67- margin : 10px 0 ;
68- }
69-
70- .main .btn : hover {
71- box-shadow : 0 10px 25px -10px # f89b29 ;
72- }
73-
74- # toast {
75- position : absolute;
76- bottom : 0 ;
77- border-radius : 5px ;
78- padding : 10px 50px ;
79- background : # 07f49e ;
80- opacity : 0 ;
81- visibility : hidden;
82- box-shadow : 0 10px 25px -10px # 07f49e ;
83- transition : 0.3s ;
84-
85- font-size : 20px ;
86- }
87-
88- # toast .show {
89- visibility : visible;
90- opacity : 1 ;
91- bottom : 50px ;
92- }
37+ border-radius : 4px ;
38+ cursor : pointer;
39+ transition : background 0.3s ;
40+ }
41+
42+ .btn : hover {
43+ background-color : # 218838 ;
44+ }
45+
46+ .code-container {
47+ margin-top : 20px ;
48+ }
9349
94-
50+ .code {
51+ width : 200px ;
52+ height : 200px ;
53+ }
54+
55+ .toast {
56+ display : none;
57+ position : fixed;
58+ bottom : 20px ;
59+ left : 50% ;
60+ transform : translateX (-50% );
61+ background-color : # 28a745 ;
62+ color : white;
63+ padding : 10px 20px ;
64+ border-radius : 5px ;
65+ box-shadow : 0 2px 5px rgba (0 , 0 , 0 , 0.3 );
66+ z-index : 1000 ;
67+ }
0 commit comments