Skip to content

Commit 48b962f

Browse files
adding div with class to App.jsx, adding css to App.scss, adding a class to AppHeader.jsx and css to AppHeader.scss
1 parent 594162b commit 48b962f

4 files changed

Lines changed: 21 additions & 5 deletions

File tree

src/components/App/App.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ import AppHeader from "../AppHeader/AppHeader";
66

77
const App = () => (
88
<div className="app">
9-
<header className="app__header">
10-
<h1 className="app__heading">CYF Hotel</h1>
11-
</header>
12-
<AppHeader />
9+
<div className="header">
10+
<header className="app__header">
11+
<h1 className="app__heading">CYF Hotel</h1>
12+
</header>
13+
<AppHeader />
14+
</div>
1315
<Bookings />
1416

1517
<Deck />

src/components/App/App.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
.app__heading {
1616
margin: 0;
17+
margin-top: 30%;
1718
}
1819

1920
.footer {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import Logo from "@/assets/spa-logo.png";
22
import "./AppHeader.scss";
3-
const AppHeader = () => <img src={Logo}></img>;
3+
const AppHeader = () => <img className="LogoImg" src={Logo}></img>;
44
export default AppHeader;

src/components/AppHeader/AppHeader.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,16 @@
77
max-width: 100px;
88
}
99
}
10+
11+
.header {
12+
margin-right: 35%;
13+
margin-left: 35%;
14+
display: flex;
15+
flex-direction: row-reverse;
16+
justify-content: space-evenly;
17+
}
18+
19+
.LogoImg {
20+
height: 150px;
21+
width: 150px;
22+
}

0 commit comments

Comments
 (0)