Skip to content

Commit

Permalink
added background image
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierJM committed Mar 11, 2019
1 parent edbeb6a commit 340134f
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import React, { Fragment } from "react";
import Header from "./components/Header";
import Info from "./components/Info";
import Speakers from "./components/Speakers";
import Tickets from "./components/Tickets";

function App() {
return (
<Fragment>
<Header />
{/* <Header /> */}
<Info />
<br />
<br />
Expand Down
Binary file added src/assets/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/dev1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/dev2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/dev4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 19 additions & 8 deletions src/components/Info.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
import React from 'react'
import React from "react";
import Header from "./Header";

function InfoContent(){
return(
<p className='text-center' aria-label="page-info">
some lots of text here
</p>
)
function InfoContent() {
return (
<div className="masthead">
<Header />
<div className="container h-100">
<div className="row h-100 align-items-center">
<div className="col-12 text-center">
<h1 className="font-weight-light">DevConZM</h1>
<button type="button" className="btn btn-primary">
Register Now
</button>
</div>
</div>
</div>
</div>
);
}

export default InfoContent
export default InfoContent;
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';

import './style.css'
ReactDOM.render(<App />, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
Expand Down
21 changes: 21 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.masthead {
height: 100vh;
min-height: 500px;
background-image: url('assets/background.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.product-holder {
position: relative;
display: block;
}

.plus-image {
left: 50%;
top: 50%;
position: absolute;
margin-top: -25px;
margin-left: -25px;
}

0 comments on commit 340134f

Please sign in to comment.