Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
efronpaduansi committed Sep 9, 2023
1 parent a130907 commit 65bf39b
Show file tree
Hide file tree
Showing 8 changed files with 314 additions and 15 deletions.
213 changes: 213 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"bootstrap": "^5.3.1",
"react": "^18.2.0",
"react-bootstrap": "^2.8.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
Expand Down
24 changes: 9 additions & 15 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
import logo from './logo.svg';
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css';
//Import Navigation (Navbar)
import Navigation from './components/Navigation';

//Import MainContent
import MainContent from './components/MainContent';

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<div>
<Navigation />
<MainContent/>
</div>
);
}
Expand Down
Binary file added src/assets/hero1.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/hero2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/components/Hero.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import Carousel from 'react-bootstrap/Carousel';
import hero1 from './../assets/hero1.jpg';
import hero2 from './../assets/hero2.jpg';

function Hero() {
return(
<Carousel>
<Carousel.Item>
<img
className='d-block w-100 h-50'
src={hero1}
alt='First Slide'
/>
<Carousel.Caption>
<h3>Welcome to MyCampus</h3>
<p>Aplikasi dibangun dengan Reactjs Library!</p>
</Carousel.Caption>
</Carousel.Item>
<Carousel.Item>
<img
className='d-block w-100 h-50'
src={hero2}
alt='First Slide'
/>
<Carousel.Caption>
<h3>Welcome to MyCampus</h3>
<p>Aplikasi dibangun dengan Reactjs Library!</p>
</Carousel.Caption>
</Carousel.Item>
</Carousel>
)
}

export default Hero;
Loading

0 comments on commit 65bf39b

Please sign in to comment.