created layout

This commit is contained in:
Yusuf Ipek
2021-05-13 11:20:28 +03:00
parent 1762ea6e91
commit 4d91966711
53 changed files with 101 additions and 1 deletions
+20 -1
View File
@@ -1,7 +1,26 @@
import "./sass/main.scss";
import Sidebar from "./commons/sidebar";
import Header from "./commons/header";
import Features from "./commons/features";
import Stories from "./commons/stories";
import Homes from "./commons/homes";
import Gallery from "./commons/gallery";
import Footer from "./commons/footer";
import Realtors from "./commons/realtors";
function App() {
return <div></div>;
return (
<div className="container">
<Sidebar />
<Header />
<Realtors />
<Features />
<Stories />
<Homes />
<Gallery />
<Footer />
</div>
);
}
export default App;
+3
View File
@@ -0,0 +1,3 @@
export default function Features() {
return <section className="features">Features</section>;
}
+3
View File
@@ -0,0 +1,3 @@
export default function Footer() {
return <footer className="footer">Footer</footer>;
}
+3
View File
@@ -0,0 +1,3 @@
export default function Gallery() {
return <section className="gallery">Gallery</section>;
}
+3
View File
@@ -0,0 +1,3 @@
export default function Header() {
return <header className="header">Header</header>;
}
+3
View File
@@ -0,0 +1,3 @@
export default function Homes() {
return <section className="homes">Homes</section>;
}

Before

Width:  |  Height:  |  Size: 458 KiB

After

Width:  |  Height:  |  Size: 458 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 363 KiB

After

Width:  |  Height:  |  Size: 363 KiB

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 168 KiB

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 258 KiB

Before

Width:  |  Height:  |  Size: 854 KiB

After

Width:  |  Height:  |  Size: 854 KiB

Before

Width:  |  Height:  |  Size: 220 KiB

After

Width:  |  Height:  |  Size: 220 KiB

Before

Width:  |  Height:  |  Size: 165 KiB

After

Width:  |  Height:  |  Size: 165 KiB

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 151 KiB

Before

Width:  |  Height:  |  Size: 214 KiB

After

Width:  |  Height:  |  Size: 214 KiB

Before

Width:  |  Height:  |  Size: 196 KiB

After

Width:  |  Height:  |  Size: 196 KiB

Before

Width:  |  Height:  |  Size: 389 KiB

After

Width:  |  Height:  |  Size: 389 KiB

Before

Width:  |  Height:  |  Size: 401 KiB

After

Width:  |  Height:  |  Size: 401 KiB

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

Before

Width:  |  Height:  |  Size: 516 KiB

After

Width:  |  Height:  |  Size: 516 KiB

Before

Width:  |  Height:  |  Size: 343 KiB

After

Width:  |  Height:  |  Size: 343 KiB

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 161 KiB

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 264 KiB

Before

Width:  |  Height:  |  Size: 527 KiB

After

Width:  |  Height:  |  Size: 527 KiB

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 302 KiB

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 239 KiB

Before

Width:  |  Height:  |  Size: 621 KiB

After

Width:  |  Height:  |  Size: 621 KiB

+3
View File
@@ -0,0 +1,3 @@
export default function Realtors() {
return <div className="realtors">Top 3 realtors</div>;
}
+3
View File
@@ -0,0 +1,3 @@
export default function Sidebar() {
return <div className="sidebar">Sidebar</div>;
}
+10
View File
@@ -0,0 +1,10 @@
import React from "react";
export default function Stories() {
return (
<React.Fragment>
<div className="story__pictures">Story Pictures</div>
<div className="story__content">Story Content</div>
</React.Fragment>
);
}
+10
View File
@@ -33,3 +33,13 @@ body {
font-weight: 300;
line-height: 1.6;
}
.container {
display: grid;
grid-template-rows: 80vh min-content 40vw repeat(3, min-content);
grid-template-columns:
[sidebar-start] 8rem [sidebar-end full-start] minmax(6rem, 1fr)
[center-start] repeat(8, [col-start] minmax(min-content, 14rem) [col-end])
[center-end] minmax(6rem, 1fr)
[full-end];
}
+4
View File
@@ -0,0 +1,4 @@
.features {
background-color: $color-grey-dark-2;
grid-column: center-start / center-end;
}
+4
View File
@@ -0,0 +1,4 @@
.footer {
background-color: $color-secondary;
grid-column: full-start / full-end;
}
+4
View File
@@ -0,0 +1,4 @@
.gallery {
background-color: $color-grey-dark-1;
grid-column: full-start / full-end;
}
+4
View File
@@ -0,0 +1,4 @@
.header {
background-color: $color-grey-dark-1;
grid-column: full-start / col-end 6;
}
+4
View File
@@ -0,0 +1,4 @@
.homes {
background-color: $color-secondary;
grid-column: center-start / center-end;
}
+4
View File
@@ -0,0 +1,4 @@
.realtors {
background-color: $color-secondary;
grid-column: col-start 7 / ful-end;
}
+5
View File
@@ -0,0 +1,5 @@
.sidebar {
background-color: $color-primary;
grid-column: sidebar-start / sidebar-end;
grid-row: 1 / -1;
}
+11
View File
@@ -0,0 +1,11 @@
.story {
&__pictures {
background-color: $color-primary;
grid-column: full-start / col-end 4;
}
&__content {
background-color: $color-grey-light-1;
grid-column: col-start 5 / full-end;
}
}