Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 35e51c0

Browse files
committed
Update Picture page style to show smaller pic.
1 parent 3edb17a commit 35e51c0

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/pages/Picture.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.Picture-full {
2+
max-width: 512px;
3+
}
4+
.Picture-full > img {
5+
display: block;
6+
width: 100%;
7+
height: auto;
8+
}

src/pages/Picture.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ class Picture extends Component {
99
return (
1010
<div className="app-content-width">
1111
<article>
12-
<h2>Picture details</h2>
13-
<h3>{pictures[pictureIndex].name}</h3>
12+
<h2>{pictures[pictureIndex].name}</h2>
1413
<p>It is only about a single picture. Go back to <Link to="/pictures">gallery</Link></p>
15-
<div>
14+
<div className="Picture-full">
1615
<img src={pictures[pictureIndex].url} alt="Nice one"/>
1716
</div>
1817
</article>

0 commit comments

Comments
 (0)