fixed conflict and merged branch addcategorybuttons
This commit was merged in pull request #10.
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
import './button.css'
|
import './button.css'
|
||||||
|
|
||||||
var title = "DALJE";
|
|
||||||
const StandardBtn = (props) => {
|
const StandardBtn = (props) => {
|
||||||
return (
|
return (
|
||||||
<div className='standard-btn'>
|
<div className='standard-btn'>
|
||||||
|
|
||||||
<button className='standardBtn'>{title}</button>
|
<button className='standardBtn'>{props.title}</button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
.standard-btn {
|
.standard-btn {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.standardBtn {
|
.standardBtn {
|
||||||
width: fit-content;
|
width:300px;
|
||||||
background-color: #02ADBA;
|
background-color: #02ADBA;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
padding: 7px 20px 7px 20px;
|
padding: 7px 20px 7px 20px;
|
||||||
@@ -20,13 +21,36 @@
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
.left-button:hover {
|
.left-button:hover {
|
||||||
background-color:#9eedf3
|
background-color:#9eedf3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-button {
|
.right-button {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
.right-button:hover {
|
.right-button:hover {
|
||||||
background-color:#9eedf3
|
background-color:#9eedf3;
|
||||||
|
}
|
||||||
}
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
.standardBtn {
|
||||||
|
width: 200px;
|
||||||
|
background-color: #02ADBA;
|
||||||
|
font-size: 15px;
|
||||||
|
padding: 7px 20px 7px 20px;
|
||||||
|
color: white;
|
||||||
|
border: #02ADBA;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@media screen and (max-width: 400px) {
|
||||||
|
.standardBtn {
|
||||||
|
width: 150px;
|
||||||
|
background-color: #02ADBA;
|
||||||
|
font-size: 15px;
|
||||||
|
padding: 7px 20px 7px 20px;
|
||||||
|
color: white;
|
||||||
|
border: #02ADBA;
|
||||||
|
}
|
||||||
|
}
|
||||||
19
kivi-cars/src/components/CategoryBtns/categorybtns.js
Normal file
19
kivi-cars/src/components/CategoryBtns/categorybtns.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import './categorybtns.css'
|
||||||
|
import StandardBtn from '../Button/StandardBtn'
|
||||||
|
|
||||||
|
var auto = 'AUTO';
|
||||||
|
var motor = 'MOTOR';
|
||||||
|
var kamion = 'KAMION';
|
||||||
|
|
||||||
|
const CategoryBtns = (props) => {
|
||||||
|
return (
|
||||||
|
<div className='category-btns'>
|
||||||
|
<StandardBtn title={auto}/>
|
||||||
|
<StandardBtn title={motor}/>
|
||||||
|
<StandardBtn title={kamion}/>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
export default CategoryBtns
|
||||||
@@ -13,7 +13,7 @@ header {
|
|||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 800px) {
|
@media screen and (max-width: 700px) {
|
||||||
.title {
|
.title {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,18 +3,19 @@ import React from 'react';
|
|||||||
import FiltersNav from '../components/Searchfilters/FiltersNav';
|
import FiltersNav from '../components/Searchfilters/FiltersNav';
|
||||||
import Header from '../components/Header/Header';
|
import Header from '../components/Header/Header';
|
||||||
import ButtonsToolbar from '../components/ButtonsToolbar/ButtonsToolbar';
|
import ButtonsToolbar from '../components/ButtonsToolbar/ButtonsToolbar';
|
||||||
import StandardBtn from '../components/Button/StandardBtn'
|
import CategoryBtns from '../components/CategoryBtns/categorybtns'
|
||||||
function App() {
|
function App() {
|
||||||
|
|
||||||
const info = 'Dobrodosli na stranicu kivi!'
|
const naslov = 'Dobrodosli na stranicu kivi!'
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<Header header={info}/>
|
<Header header={naslov}/>
|
||||||
<ButtonsToolbar/>
|
<ButtonsToolbar/>
|
||||||
<FiltersNav />
|
<FiltersNav />
|
||||||
<StandardBtn/>
|
<StandardBtn/>
|
||||||
|
<CategoryBtns/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user