Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added image to homepage and centered #11

Merged
merged 1 commit into from
Jun 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,15 @@ section {
li {
margin-bottom: 1.5rem;
}

.homepage {
text-align: center;
}

.homepage-p {
font-size: 1.5rem;
}

img {
border-radius: 0.25rem;
}
12 changes: 7 additions & 5 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ class App extends Component {
<Link to="/movies" className="nav-item nav-link">Movies</Link>
<Link to="/customers" className="nav-item nav-link">Customers</Link>
<form className="form-inline my-2 my-lg-0">
<input className="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"></input>
<Link to="/search"><button id="search-button" className="btn btn-primary nav-item nav-link" type="submit">Search</button></Link>
{/* <input className="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"></input> */}
<Link to="/search"><button id="search-button" className="btn btn-primary nav-item nav-link" type="submit">Search for New Movies</button></Link>
</form>
</nav>
</header>
Expand All @@ -108,9 +108,11 @@ class App extends Component {
</section>
<Route
exact={true} path="/" render={() => (
<div>
<h1 className="homepage__title">Welcome to Double A Video Rentals</h1>
<p>Select Customers or Movies at the top to start the checkout process!</p>
<div className="homepage">
<h1 className="homepage__title">Welcome to AA Video Rentals</h1>
<p className="homepage-p">Select Customers or Movies at the top to start the rental process!</p>
<p className="homepage-p">If you don't find the video you are looking for, add a new one by using search.</p>
<img src="https://boygeniusreport.files.wordpress.com/2016/03/movies-tiles.jpg?quality=98&strip=all" alt="movies" width="900px" height="600px"/>
</div>
)}/>

Expand Down