Skip to content

Commit d768fb7

Browse files
EsLint
1 parent 641c8c0 commit d768fb7

File tree

5 files changed

+19
-22
lines changed

5 files changed

+19
-22
lines changed

.jshintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"esversion": 6
3+
}

src/components/App.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
.custom-img {
1616
background-color: red;
17-
height: 300px;
17+
max-height: 350px;
1818
width: 100%;
1919
object-fit: cover;
2020

src/components/Dog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import React from 'react';
22

33
function Dog({id, name, bred_for, breed_group, life_span, temprament, origin, image}) {
44
return (

src/components/Hero.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React from 'react'
2-
import styled from 'styled-components/macro'
1+
import React from 'react';
2+
import styled from 'styled-components/macro';
33
import { useEffect, useState } from 'react';
44
import { Link } from 'react-router-dom';
5-
import './App.css'
5+
import './App.css';
66
import Dog from './Dog';
77
import bg1 from '../images/bg1.jpg';
88
import bg2 from '../images/bg2.jpg';
@@ -14,10 +14,10 @@ function Hero() {
1414
const [dogs, setDogs] = useState([]);
1515

1616
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";
1818
fetch(api)
1919
.then( res => res.json())
20-
.then( result => setDogs(result))
20+
.then( result => setDogs(result));
2121
},[]
2222
);
2323

@@ -35,29 +35,29 @@ function Hero() {
3535
<img className="custom-img" src={bg1} width="100%" height="100%" alt="bg1"/>
3636
<div className="container">
3737
<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>
4141
</div>
4242
</div>
4343
</div>
4444
<div className="carousel-item active">
4545
<img className="custom-img" src={bg2} width="100%" height="100%" alt="bg2"/>
4646
<div className="container">
4747
<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>
5151
</div>
5252
</div>
5353
</div>
5454
<div className="carousel-item">
5555
<img className="custom-img" src={bg3} alt="bg3"/>
5656
<div className="container">
5757
<div className="carousel-caption text-end">
58-
<h1>One more for good measure.</h1>
58+
<h2>One more for good measure.</h2>
5959
<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>
6161
</div>
6262
</div>
6363
</div>

src/components/Navbar.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,17 @@ import styled from 'styled-components'
33
import Navbar from 'react-bootstrap/Navbar';
44
import Nav from 'react-bootstrap/Nav'
55
import Container from 'react-bootstrap/Container'
6-
// import Collapse from 'react-bootstrap/Collapse'
7-
// import Form from 'react-bootstrap/Form';
8-
// import FormControl from 'react-bootstrap/FormControl';
9-
10-
116

127
const Navstyle = styled.nav`
138
height:50px;
14-
background-color: red;
159
`
1610

1711
function Navs() {
1812
return (
1913
<Navstyle>
2014
<Navbar collapseOnSelect expand="lg" bg="dark" variant="dark">
2115
<Container>
22-
<Navbar.Brand href="/">Holmes</Navbar.Brand>
16+
<Navbar.Brand href="/">DogsHaven</Navbar.Brand>
2317
<Navbar.Toggle aria-controls="responsive-navbar-nav" />
2418
<Navbar.Collapse id="responsive-navbar-nav">
2519
<Nav className="ms-auto">

0 commit comments

Comments
 (0)