-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added product-list, product,footer,search bar components
- Loading branch information
1 parent
399305d
commit 3359a3a
Showing
16 changed files
with
852 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
body{ | ||
font-family: 'Open Sans Condensed'; | ||
padding: 10px 60px; | ||
} | ||
|
||
a{ | ||
text-decoration: none; | ||
color: black; | ||
} | ||
|
||
*{ | ||
box-sizing: border-box; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import './product-list.styles.scss'; | ||
import {Product} from '../../components/product/product.component'; | ||
|
||
|
||
|
||
export const ProductList = () => ( | ||
//holder | ||
|
||
<div className='product-list'> | ||
<Product/> | ||
</div> | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.product-list { | ||
width: 85vw; | ||
margin: 0 auto; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr 1fr; | ||
grid-gap: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
import './product.styles.scss'; | ||
|
||
export const Product = () => ( | ||
//holder | ||
<div className='product'> | ||
product 1 | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.product{ | ||
transition: box-shadow .3s; | ||
width: 300px; | ||
height: 400px; | ||
margin: 50px; | ||
border-radius:10px; | ||
border: 1px solid #ccc; | ||
background: #fff; | ||
float: left; | ||
|
||
} | ||
.product:hover { | ||
box-shadow: 0 0 11px rgba(33,33,33,.2); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import './search-bar.styles.scss'; | ||
|
||
export const SearchBar = () => ( | ||
// <input | ||
// className='search' | ||
// type='search' | ||
// placeholder='Type here ...' | ||
// autocomplete="on" | ||
// /> | ||
|
||
<form className='search-form'> | ||
<div className='business-search'> | ||
<div className='search-element'> | ||
<label className='search-label'> Type here</label> | ||
<input | ||
className='search-input' | ||
type='text' | ||
autocomplete='on' | ||
placeholder='Company or Product' | ||
/> | ||
</div> | ||
<div className='search-element'> | ||
<label className='search-label'> Location</label> | ||
<input | ||
className='search-input' | ||
type='text' | ||
autocomplete='on' | ||
placeholder='City, State' | ||
/> | ||
</div> | ||
<a type="submit" class="search-button">Search</a> | ||
</div> | ||
</form> | ||
) | ||
|
||
export default SearchBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// *, *::before, *::after { box-sizing: border-box; } | ||
.search-form{ | ||
width: 97%; | ||
margin-bottom: 5px; | ||
} | ||
.business-search { | ||
display: flex; | ||
align-items: center; | ||
background: white; | ||
border-radius: 5px; | ||
margin: 0 auto; | ||
box-shadow: rgba(0,0,0,.172549) 0 6px 12px 0; | ||
cursor: pointer; | ||
} | ||
|
||
.search-element { | ||
display: flex; | ||
flex-grow: 2; | ||
flex-direction: column; | ||
border-right: 1px solid rgba(10,10,10,.1); | ||
padding: 1em; | ||
} | ||
|
||
.search-label { | ||
font-weight: 700; | ||
} | ||
|
||
.search-input { | ||
border: none; | ||
appearance: none; | ||
outline: none; | ||
width: 100%; | ||
font-size: 1.2em; | ||
line-height: 1.2em; | ||
margin-top: 5px; | ||
} | ||
|
||
.search-input:focus { | ||
box-shadow: 0px 2px 0px 0px tomato; | ||
} | ||
|
||
.search-button { | ||
display: inline-block; | ||
flex-grow: 1; | ||
height: 80px; | ||
line-height: 80px; | ||
padding: 0 2em; | ||
text-align: center; | ||
font-size: 1.2em; | ||
font-weight: 100; | ||
border: 0; | ||
border-top-left-radius: 0px; | ||
border-bottom-left-radius: 0px; | ||
border-top-right-radius: 5px; | ||
border-bottom-right-radius: 5px; | ||
color: white; | ||
background-color:orangered; | ||
transition: background-color 0.8s ease; | ||
} | ||
|
||
.search-button:hover { | ||
background-color: HSLA(345, 100%, 60%, 1.00); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from "react"; | ||
import { MDBCol, MDBContainer, MDBRow, MDBFooter } from "mdbreact"; | ||
|
||
const FooterPage = () => { | ||
return ( | ||
<MDBFooter color="blue" className="font-small pt-4 mt-4 "> | ||
<MDBContainer fluid className="text-center text-md-left"> | ||
<MDBRow> | ||
<MDBCol md="6"> | ||
<h5 className="title">Footer Content</h5> | ||
<p> | ||
Here you can use rows and columns here to organize your footer | ||
content. | ||
</p> | ||
</MDBCol> | ||
<MDBCol md="6"> | ||
<h5 className="title">Links</h5> | ||
<ul> | ||
<li className="list-unstyled"> | ||
<a href="#!">Link 1</a> | ||
</li> | ||
<li className="list-unstyled"> | ||
<a href="#!">Link 2</a> | ||
</li> | ||
<li className="list-unstyled"> | ||
<a href="#!">Link 3</a> | ||
</li> | ||
<li className="list-unstyled"> | ||
<a href="#!">Link 4</a> | ||
</li> | ||
</ul> | ||
</MDBCol> | ||
</MDBRow> | ||
</MDBContainer> | ||
<div className="footer-copyright text-center py-3"> | ||
<MDBContainer fluid> | ||
© {new Date().getFullYear()} Copyright: <a href="https://www.mdbootstrap.com"> MDBootstrap.com </a> | ||
<p>social media links</p> | ||
</MDBContainer> | ||
</div> | ||
</MDBFooter> | ||
); | ||
} | ||
|
||
export default FooterPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.thefooter{ | ||
border-top: orange; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.