1
- import React from 'react'
2
- import styled from 'styled-components/macro'
1
+ import React from 'react' ;
2
+ import styled from 'styled-components/macro' ;
3
3
import { useEffect , useState } from 'react' ;
4
4
import { Link } from 'react-router-dom' ;
5
- import './App.css'
5
+ import './App.css' ;
6
6
import Dog from './Dog' ;
7
7
import bg1 from '../images/bg1.jpg' ;
8
8
import bg2 from '../images/bg2.jpg' ;
@@ -14,10 +14,10 @@ function Hero() {
14
14
const [ dogs , setDogs ] = useState ( [ ] ) ;
15
15
16
16
useEffect ( ( ) => {
17
- let api = "https://api.thedogapi.com/v1/breeds?limit=12&page=100?api_key =2c1958d5-790f-4725-87cc-7e59767ba77f"
17
+ let api = "https://api.thedogapi.com/v1/breeds?limit=12&page=100?Sapi_key =2c1958d5-790f-4725-87cc-7e59767ba77f" ;
18
18
fetch ( api )
19
19
. then ( res => res . json ( ) )
20
- . then ( result => setDogs ( result ) )
20
+ . then ( result => setDogs ( result ) ) ;
21
21
} , [ ]
22
22
) ;
23
23
@@ -35,29 +35,29 @@ function Hero() {
35
35
< img className = "custom-img" src = { bg1 } width = "100%" height = "100%" alt = "bg1" />
36
36
< div className = "container" >
37
37
< div className = "carousel-caption text-start" >
38
- < h1 > Example headline. </ h1 >
39
- < p > Some representative placeholder content for the first slide of the carousel. </ p >
40
- < p > < Link className = "btn btn-lg btn-primary" to = "#" > Sign up today </ Link > </ p >
38
+ < h2 > Orhan Pamuk </ h2 >
39
+ < p > Dogs do speak, but only to those who know how to listen </ p >
40
+ < p > < Link className = "btn btn-md btn-primary" to = "#" > Github </ Link > </ p >
41
41
</ div >
42
42
</ div >
43
43
</ div >
44
44
< div className = "carousel-item active" >
45
45
< img className = "custom-img" src = { bg2 } width = "100%" height = "100%" alt = "bg2" />
46
46
< div className = "container" >
47
47
< div className = "carousel-caption" >
48
- < h1 > Another example headline. </ h1 >
49
- < p > Some representative placeholder content for the second slide of the carousel .</ p >
50
- < p > < Link className = "btn btn-lg btn-primary" to = "#" > Learn more </ Link > </ p >
48
+ < h2 > Rodges A. Caras </ h2 >
49
+ < p > Dogs are not our whole life, but they make our lives whole .</ p >
50
+ < p > < Link className = "btn btn-md btn-primary" to = "#" > Github </ Link > </ p >
51
51
</ div >
52
52
</ div >
53
53
</ div >
54
54
< div className = "carousel-item" >
55
55
< img className = "custom-img" src = { bg3 } alt = "bg3" />
56
56
< div className = "container" >
57
57
< div className = "carousel-caption text-end" >
58
- < h1 > One more for good measure.</ h1 >
58
+ < h2 > One more for good measure.</ h2 >
59
59
< p > Some representative placeholder content for the third slide of this carousel.</ p >
60
- < p > < Link className = "btn btn-lg btn-primary" to = "#" > Browse gallery </ Link > </ p >
60
+ < p > < Link className = "btn btn-md btn-primary" to = "#" > Github </ Link > </ p >
61
61
</ div >
62
62
</ div >
63
63
</ div >
0 commit comments