Skip to content

Commit

Permalink
[#4] docs: restyled blockquote component
Browse files Browse the repository at this point in the history
  • Loading branch information
Damla Koksal committed Oct 27, 2020
1 parent 2b84855 commit e6b7e41
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
"resolutions": {
"styled-components": "^5"
}
}
}
6 changes: 5 additions & 1 deletion src/components/block-quote/block-quote.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ import React from "react";
import "./block-quote.styles.scss";

export default function BlockQuote({ children }) {
return <blockquote>{children}</blockquote>;
return (
<div className="block-quote">
<blockquote>{children}</blockquote>
</div>
);
}
3 changes: 2 additions & 1 deletion src/components/block-quote/block-quote.styles.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import url("https://fonts.googleapis.com/css2?family=Amiri&family=Mulish:ital,wght@1,300&display=swap");

blockquote {
.block-quote {
font-family: "Amiri", serif;
font-size: 3rem;
max-width: 70vw;
}
3 changes: 2 additions & 1 deletion src/components/custom-button/custom-button.component.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from "react";
import { Link } from "react-router-dom";

import "./custom-button.styles.scss";

export default function CustomButton({ children }) {
return <button className="custom-button">{children}</button>;
return <Link className="custom-button">{children}</Link>;
}
6 changes: 5 additions & 1 deletion src/components/layout/header/header.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ function Header() {
</Menu>
</nav>
<div className="block-quote-container">
<BlockQuote>test deneme test</BlockQuote>
<BlockQuote>
Karsal; işinin profesyonelleri sayesinde müşterilerine, sağladığı
kaliteli hammaddeyi, titiz bir işçilik ve düzenli ve hızlı sunumla
müşteriye ulaştırmaktadır.
</BlockQuote>
<CustomButton>&#8642;</CustomButton>
</div>
</div>
Expand Down
7 changes: 6 additions & 1 deletion src/components/layout/header/header.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
}

.block-quote-container {
background: grey;
display: flex;
align-items: center;
justify-content: flex-start;
flex-direction: column;
min-height: 70vh;
text-align: center;
}
}
4 changes: 3 additions & 1 deletion src/pages/homepage/homepage.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export default function HomePage() {
return (
<>
<Layout>
<Section BgColor="pink">test</Section>
<Section id="section1" BgColor="pink">
test
</Section>
<Section BgColor="white">test2</Section>
<Section BgColor="#ebebeb">test3</Section>
</Layout>
Expand Down

0 comments on commit e6b7e41

Please sign in to comment.