File tree Expand file tree Collapse file tree 3 files changed +31
-9
lines changed Expand file tree Collapse file tree 3 files changed +31
-9
lines changed Original file line number Diff line number Diff line change 1
- @import url ('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap' );
1
+ @import url ("https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap" );
2
+ @import url ("https://fonts.googleapis.com/css2?family=Sora&display=swap" );
2
3
# root ,
3
4
html ,
4
5
body {
5
6
margin : 0 ;
6
7
padding : 0 ;
7
8
height : 100vh ;
8
-
9
+ font-family : "Sora" , sans-serif;
9
10
}
10
11
11
12
.app {
@@ -39,10 +40,11 @@ body {
39
40
align-items : center;
40
41
font-size : large;
41
42
height : 582px ;
42
- font-family : ' Patrick Hand SC' , cursive;
43
+ font-family : " Patrick Hand" , cursive;
43
44
}
44
45
45
46
.button {
47
+ font-family : "Alegreya Sans SC" , sans-serif;
46
48
position : relative;
47
49
outline : none;
48
50
text-decoration : none;
@@ -66,11 +68,11 @@ body {
66
68
letter-spacing : 0.7px ;
67
69
}
68
70
69
- .button : hover {
71
+ .button : hover , . button : active {
70
72
animation : rotate 0.7s ease-in-out both;
71
73
}
72
74
73
- .button : hover span {
75
+ .button : hover span , . button : active span {
74
76
animation : storm 0.7s ease-in-out both;
75
77
animation-delay : 0.06s ;
76
78
}
Original file line number Diff line number Diff line change @@ -39,20 +39,20 @@ export default class Main extends Component {
39
39
} ) ;
40
40
} ;
41
41
fetchQuote = ( ) => {
42
-
43
42
axios
44
43
. get ( "https://api.adviceslip.com/advice" )
45
44
. then ( ( response ) => {
46
45
const { advice } = response . data . slip ;
47
46
// console.log(advice);
48
- this . setState ( { advice } , ( ) => { this . setBgImage ( ) ; } ) ;
47
+ this . setState ( { advice } , ( ) => {
48
+ this . setBgImage ( ) ;
49
+ } ) ;
49
50
} )
50
51
. catch ( ( error ) => {
51
52
console . log ( error ) ;
52
53
} ) ;
53
54
} ;
54
55
55
-
56
56
render ( ) {
57
57
return (
58
58
< main >
@@ -67,9 +67,28 @@ export default class Main extends Component {
67
67
content = "Get the most inspirational quotes at your finger tips. "
68
68
/>
69
69
< link rel = "shortcut icon" href = { favicon } type = "image/x-icon" />
70
+ < link rel = "preconnect" href = "https://fonts.googleapis.com" />
71
+ < link
72
+ rel = "preconnect"
73
+ href = "https://fonts.gstatic.com"
74
+ crossorigin
75
+ />
76
+ < link
77
+ href = "https://fonts.googleapis.com/css2?family=Montserrat:wght@600& display = swap "
78
+ rel = "stylesheet"
79
+ > </ link >
80
+
81
+ < link
82
+ href = "https://fonts.googleapis.com/css2?family=Alegreya+Sans+SC:wght@500& display = swap "
83
+ rel = "stylesheet"
84
+ />
85
+ < link
86
+ href = "https://fonts.googleapis.com/css2?family=Patrick+Hand& display = swap "
87
+ rel = "stylesheet"
88
+ />
70
89
</ Helmet >
71
90
< div className = "card" >
72
- < p className = "heading" > "{ this . state . advice } "</ p >
91
+ < b className = "heading" > "{ this . state . advice } "</ b >
73
92
74
93
< button className = "button" onClick = { this . fetchQuote } >
75
94
< span > ONE MORE ADVICE!</ span >
Original file line number Diff line number Diff line change 10
10
margin-top : 0.2rem ;
11
11
margin-left : 0.8rem ;
12
12
color : whitesmoke;
13
+ font-family : 'Montserrat' , sans-serif;
13
14
}
14
15
.github_icon {
15
16
border-radius : 50% ;
You can’t perform that action at this time.
0 commit comments