Skip to content

Commit

Permalink
install bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
allen-liaoo committed Apr 22, 2024
1 parent 6259416 commit bcaf7e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/ListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import button from '../css/Buttons.module.css'
export default function ListItem({name, description, image, viewLink, editLink}) {
const navigate = useNavigate()
return (
<Container>
// <Container>
<Row className={styles.listItem}>
{image ?
<Col onClick={()=>navigate(viewLink)}>
Expand All @@ -27,6 +27,6 @@ export default function ListItem({name, description, image, viewLink, editLink})
<Link to={editLink} className={styles.editButton}>Edit</Link>
</Col>
</Row>
</Container>
// {/* </Container> */}
)
}
4 changes: 2 additions & 2 deletions src/css/page.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
body{
background-color: hsl(64, 41%, 93%);
}
.container{
/* .container{
display: flex;
flex-direction: column;
Expand All @@ -17,7 +17,7 @@ body{
flex-direction: column;
justify-content: center;
}
} */
@media only screen and (min-width: 600px) {
body {
margin-top: 5em;
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
RouterProvider,
redirect
} from "react-router-dom";
import 'bootstrap/dist/css/bootstrap.min.css';
import Login, { authLoader as loginAuthLoader } from './pages/Login'
import Landing from './pages/Landing'
import Foods from './pages/food/Foods'
Expand Down

0 comments on commit bcaf7e9

Please sign in to comment.