This repository has been archived by the owner on Aug 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
203 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import App from './App'; | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import App from "./App"; | ||
|
||
it('renders without crashing', () => { | ||
const div = document.createElement('div'); | ||
it("renders without crashing", () => { | ||
const div = document.createElement("div"); | ||
ReactDOM.render(<App />, div); | ||
ReactDOM.unmountComponentAtNode(div); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
.Breeds { | ||
margin: 4rem auto; | ||
max-width: 50rem; | ||
border: 1px solid #ddd; | ||
border-bottom-width: 4px; | ||
border-top: 0; | ||
box-shadow: 0 -4px 0 #efd67f; | ||
padding: 1.5rem; | ||
margin: 4rem auto; | ||
max-width: 50rem; | ||
border: 1px solid #ddd; | ||
border-bottom-width: 4px; | ||
border-top: 0; | ||
box-shadow: 0 -4px 0 #efd67f; | ||
padding: 1.5rem; | ||
} | ||
|
||
.Breeds-title { | ||
margin: 0 0 1rem; | ||
font-size: 1rem; | ||
margin: 0 0 1rem; | ||
font-size: 1rem; | ||
} | ||
|
||
.Breeds-image { | ||
max-width: 300px; | ||
height: auto; | ||
border-radius: 0.5em; | ||
max-width: 300px; | ||
height: auto; | ||
border-radius: 0.5em; | ||
} | ||
|
||
.Breeds-button { | ||
display: inline-block; | ||
border: none; | ||
border-radius: 3px; | ||
background: #49bae0; | ||
padding: 0.5em 1em; | ||
color: #fff; | ||
cursor: pointer; | ||
display: inline-block; | ||
border: none; | ||
border-radius: 3px; | ||
background: #49bae0; | ||
padding: 0.5em 1em; | ||
color: #fff; | ||
cursor: pointer; | ||
} | ||
|
||
.Breeds-button:hover, | ||
.Breeds-button:focus { | ||
background: #54cbf3; | ||
background: #54cbf3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
import React from 'react'; | ||
import './Breeds.css'; | ||
import React from "react"; | ||
import "./Breeds.css"; | ||
|
||
class Breeds extends React.Component { | ||
render() { | ||
return ( | ||
<div className="Breeds"> | ||
<h2 className="Breeds-title">Select a Breed</h2> | ||
<p> | ||
<select className="Breeds-select"> | ||
<option>beagle</option> | ||
<option>bluetick</option> | ||
<option>bullterrier-staffordshire</option> | ||
<option>malinois</option> | ||
<option>wolfhound-irish</option> | ||
</select> | ||
</p> | ||
<img className="Breeds-image" src="http://via.placeholder.com/300x300" /> | ||
<p> | ||
<button className="Breeds-button">Show me more!</button> | ||
</p> | ||
</div> | ||
) | ||
} | ||
render() { | ||
return ( | ||
<div className="Breeds"> | ||
<h2 className="Breeds-title">Select a Breed</h2> | ||
<p> | ||
<select className="Breeds-select"> | ||
<option>beagle</option> | ||
<option>bluetick</option> | ||
<option>bullterrier-staffordshire</option> | ||
<option>malinois</option> | ||
<option>wolfhound-irish</option> | ||
</select> | ||
</p> | ||
<img className="Breeds-image" src="http://via.placeholder.com/300x300" /> | ||
<p> | ||
<button className="Breeds-button">Show me more!</button> | ||
</p> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Breeds; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
.Dog-image { | ||
max-width: 300px; | ||
height: auto; | ||
border-radius: 0.5em; | ||
max-width: 300px; | ||
height: auto; | ||
border-radius: 0.5em; | ||
} | ||
|
||
.Dog-button { | ||
display: inline-block; | ||
border: none; | ||
border-radius: 3px; | ||
background: #49bae0; | ||
padding: 0.5em 1em; | ||
color: #fff; | ||
cursor: pointer; | ||
display: inline-block; | ||
border: none; | ||
border-radius: 3px; | ||
background: #49bae0; | ||
padding: 0.5em 1em; | ||
color: #fff; | ||
cursor: pointer; | ||
} | ||
|
||
.Dog-button:hover, | ||
.Dog-button:focus { | ||
background: #54cbf3; | ||
background: #54cbf3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import React from 'react'; | ||
import './Dog.css'; | ||
import React from "react"; | ||
import "./Dog.css"; | ||
|
||
function Dog(props) { | ||
return ( | ||
<div className="Dog"> | ||
<img className="Dog-image" src={props.image} /> | ||
<p> | ||
<button className="Dog-button">Best Dog</button> | ||
</p> | ||
</div> | ||
) | ||
return ( | ||
<div className="Dog"> | ||
<img className="Dog-image" src={props.image} /> | ||
<p> | ||
<button className="Dog-button">Best Dog</button> | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default Dog; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
.DogBattle { | ||
margin: 4rem auto; | ||
max-width: 50rem; | ||
border: 1px solid #ddd; | ||
border-bottom-width: 4px; | ||
border-top: 0; | ||
box-shadow: 0 -4px 0 #e17fef; | ||
padding: 1.5rem; | ||
margin: 4rem auto; | ||
max-width: 50rem; | ||
border: 1px solid #ddd; | ||
border-bottom-width: 4px; | ||
border-top: 0; | ||
box-shadow: 0 -4px 0 #e17fef; | ||
padding: 1.5rem; | ||
} | ||
|
||
.DogBattle-title { | ||
margin: 0 0 1rem; | ||
font-size: 1rem; | ||
margin: 0 0 1rem; | ||
font-size: 1rem; | ||
} | ||
|
||
.DogBattle-images { | ||
display: flex; | ||
justify-content: space-around; | ||
display: flex; | ||
justify-content: space-around; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import React from 'react'; | ||
import Dog from './Dog.js'; | ||
import './DogBattle.css'; | ||
import React from "react"; | ||
import Dog from "./Dog.js"; | ||
import "./DogBattle.css"; | ||
|
||
class DogBattle extends React.Component { | ||
render() { | ||
return ( | ||
<div className="DogBattle"> | ||
<h2 className="DogBattle-title">Choose the best dog</h2> | ||
<div className="DogBattle-images"> | ||
<Dog image="http://via.placeholder.com/300x300" /> | ||
<Dog image="http://via.placeholder.com/300x300" /> | ||
</div> | ||
</div> | ||
) | ||
} | ||
render() { | ||
return ( | ||
<div className="DogBattle"> | ||
<h2 className="DogBattle-title">Choose the best dog</h2> | ||
<div className="DogBattle-images"> | ||
<Dog image="http://via.placeholder.com/300x300" /> | ||
<Dog image="http://via.placeholder.com/300x300" /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default DogBattle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
.Favourites { | ||
display: flex; | ||
margin: 4rem auto; | ||
max-width: 50rem; | ||
border: 1px solid #ddd; | ||
border-bottom-width: 4px; | ||
border-top: 0; | ||
box-shadow: 0 -4px 0 #ef7f7f; | ||
padding: 1.5rem; | ||
text-align: left; | ||
display: flex; | ||
margin: 4rem auto; | ||
max-width: 50rem; | ||
border: 1px solid #ddd; | ||
border-bottom-width: 4px; | ||
border-top: 0; | ||
box-shadow: 0 -4px 0 #ef7f7f; | ||
padding: 1.5rem; | ||
text-align: left; | ||
} | ||
|
||
.Favourites h2 { | ||
margin: 0 0 0.5rem; | ||
font-size: 1rem; | ||
margin: 0 0 0.5rem; | ||
font-size: 1rem; | ||
} | ||
|
||
.Favourites-breeds { | ||
flex-grow: 2; | ||
flex-grow: 2; | ||
} | ||
|
||
.Favourites-saved { | ||
flex-grow: 1; | ||
flex-grow: 1; | ||
} | ||
|
||
.Favourites-photos { | ||
display: flex; | ||
flex-wrap: wrap; | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.Favourites-photos img { | ||
max-width: 80px; | ||
height: auto; | ||
margin-right: 1em; | ||
margin-bottom: 1em; | ||
border-radius: 0.5em; | ||
max-width: 80px; | ||
height: auto; | ||
margin-right: 1em; | ||
margin-bottom: 1em; | ||
border-radius: 0.5em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
import React from 'react'; | ||
import './Favourites.css'; | ||
import React from "react"; | ||
import "./Favourites.css"; | ||
|
||
class Favourites extends React.Component { | ||
render() { | ||
return ( | ||
<div className="Favourites"> | ||
<div className="Favourites-breeds"> | ||
<h2>Favourite Breeds</h2> | ||
<p>???</p> | ||
<p>???</p> | ||
</div> | ||
<div className="Favourites-saved"> | ||
<h2>Saved Photos</h2> | ||
<div className="Favourites-photos"> | ||
<img src="http://via.placeholder.com/80x80" /> | ||
<img src="http://via.placeholder.com/80x80" /> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
render() { | ||
return ( | ||
<div className="Favourites"> | ||
<div className="Favourites-breeds"> | ||
<h2>Favourite Breeds</h2> | ||
<p>???</p> | ||
<p>???</p> | ||
</div> | ||
<div className="Favourites-saved"> | ||
<h2>Saved Photos</h2> | ||
<div className="Favourites-photos"> | ||
<img src="http://via.placeholder.com/80x80" /> | ||
<img src="http://via.placeholder.com/80x80" /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Favourites; |
Oops, something went wrong.