Skip to content

Commit

Permalink
[ch68] Resolve conflicts after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kimvcp committed Jan 29, 2021
1 parent cee9fe0 commit cec0d59
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 107 deletions.
26 changes: 26 additions & 0 deletions src/components/HomeSearchSection/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react'
import { useRouter } from 'next/router'

const HomeSearchSection = () => {
const router = useRouter()

const onButtonClick = () => {
router.push('product-list')
}
return (
<section className="home-section">
<header className="home-section__header">
<h2 className="home-section__title">Sample 1</h2>
<p className="home-section__description">
This is a sample description
</p>
</header>
<div className="home-search">
<button className="home-search__button" onClick={onButtonClick}>
Search
</button>
</div>
</section>
)
}
export default HomeSearchSection
10 changes: 2 additions & 8 deletions src/components/HomeSection/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import React from 'react'
import HomeSearchSection from '../HomeSearchSection'

const HomeSection = () => {
return (
<>
<section className="home-section">
<header className="home-section__header">
<h2 className="home-section__title">Sample 1</h2>
<p className="home-section__description">
This is a sample description
</p>
</header>
</section>
<HomeSearchSection />
<section className="home-section home-section--dark">
<header className="home-section__header">
<h2 className="home-section__title">Sample 2</h2>
Expand Down
15 changes: 0 additions & 15 deletions src/components/Search/index.tsx

This file was deleted.

34 changes: 0 additions & 34 deletions src/components/Search/styles.scss

This file was deleted.

18 changes: 18 additions & 0 deletions src/pages/product-list.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Footer from '../components/Footer'
import Navbar from '../components/Navbar'

const ProductList = () => (
<div className="layout-sign-up">
<header>
<Navbar />
</header>
<main>
{/* TODO: Add component here */}
</main>
<footer>
<Footer />
</footer>
</div>
)

export default ProductList
29 changes: 0 additions & 29 deletions src/router/index.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/screens/ProductList/index.tsx

This file was deleted.

1 change: 1 addition & 0 deletions src/styles/components/__components-dir.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
@import './navbar';
@import './sidebar';
@import './home-section';
@import './home-search-section';
@import './sign-up-form';
@import './form';
12 changes: 12 additions & 0 deletions src/styles/components/_home-search-section.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.home-search {
@include flex-center();
@include respond-above('md') {
// TODO
}

&__button {
padding: rem(5px 10px);
border-radius: rem(3px);
text-decoration: none;
}
}
2 changes: 1 addition & 1 deletion src/styles/components/_home-section.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
height: rem(650px);
}

@include respond-above('lg') {
@include respond-above('xl') {
padding: rem(40px);
height: rem(800px);
}
Expand Down

0 comments on commit cec0d59

Please sign in to comment.