Skip to content
Open
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
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 9 additions & 19 deletions src/js/components/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
import React from "react";

import React from "react";
import NavbarComponent from "./NavbarComponents";
import Jumbotron from "./Jumbotron";
//include images into your bundle
import rigoImage from "../../img/rigo-baby.jpg";

//create your first component
const Home = () => {
return (
<div className="text-center">


<h1 className="text-center mt-5">Hello Rigo!</h1>
<p>
<img src={rigoImage} />
</p>
<a href="#" className="btn btn-success">
If you see this green button... bootstrap is working...
</a>
<p>
Made by{" "}
<a href="http://www.4geeksacademy.com">4Geeks Academy</a>, with
love!
</p>
</div>
<>
<NavbarComponent/>
<Jumbotron/>
</>
);
};

export default Home;
export default Home;

13 changes: 13 additions & 0 deletions src/js/components/Jumbotron.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function Jumbotron () {
return(
<div className="card text-bg-light w-75 mx-auto p-2">
<div className="card-body">
<h1 className="card-title">A Warm Welcome!</h1>
<p className="card-text">Lorem ipsum dolor sit amet consectetur adipisicing elit. A, iste porro inventore voluptatibus veniam, excepturi recusandae dolor aperiam deleniti quisquam sed labore quia? Culpa animi illo, ex distinctio amet explicabo.</p>
<a href="#" className="btn btn-primary">Call to action!</a>
</div>
</div>
);
}

export default Jumbotron;
38 changes: 38 additions & 0 deletions src/js/components/NavbarComponents.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
function NavbarComponent () {
return (
<nav className="navbar navbar-expand-lg navbar-dark bg-dark">
<div className="container-fluid">
<a className="navbar-brand" href="#">Start Bootstrap</a>

<button
className="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
>
<span className="navbar-toggler-icon"></span>
</button>

<div className="collapse navbar-collapse d-flex justify-content-end" id="navbarNav">
<ul className="navbar-nav">
<li className="nav-item">
<a className="nav-link active" href="#">Home</a>
</li>
<li className="nav-item">
<a className="nav-link" href="#">About</a>
</li>
<li className="nav-item">
<a className="nav-link" href="#">Services</a>
</li>
<li className="nav-item">
<a className="nav-link" href="#">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
);

};

export default NavbarComponent;