Skip to content

Commit

Permalink
minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
001elijah committed Apr 28, 2023
1 parent 6d67947 commit c41ac22
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 39 deletions.
10 changes: 8 additions & 2 deletions src/components/DateInput/DateInput.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
border-radius: 16px;
border: none;

font-family: 'Lato';
font-family: 'Lato-Regular';
font-style: normal;
font-weight: 400;
font-size: 16px;
Expand Down Expand Up @@ -71,7 +71,7 @@
margin-right: auto;
height: 60px;
background: none;
font-family: 'Lato';
font-family: 'Lato-Regular';
font-style: normal;
font-weight: 700;
font-size: 16px;
Expand All @@ -85,6 +85,12 @@
padding: 6px 18px;
margin: 0;
width: 57px;

font-family: 'Lato-Regular';
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 19px;
}

:global .react-datepicker__month-container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Calendar } from '../../DateInput/DateInput';
import { useEffect, useState } from 'react';
import { useDispatch } from 'react-redux';
import { getCashflowStat } from '../../../redux/operations/cashflowOperations';
import shortid from 'shortid';
// import shortid from 'shortid';
// import {Notify} from "notiflix"

export const Item = ({ id, amount, category, percentage }) => {
Expand All @@ -31,11 +31,11 @@ export const CategoriesList = () => {
setTransactionData(data.payload);
});
}, [dateFilter, dispatch]);
console.log('cat', transactionData)
// console.log('cat', transactionData)
if (transactionData?.length === 0) return;

return (
<div className={s.background_img}>
// <div className={s.background_img}>
<div className={s.container}>
<div className={s.wrapper}>
<Calendar onDate={setDateFilter} />
Expand All @@ -48,6 +48,6 @@ console.log('cat', transactionData)
</ul>
</div>
</div>
</div>
// </div>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,32 @@

.container {
@include container;
}
.background_img{
@include tablet{
background-image: url(../../../assets/img/bg-tablet.png);
background-size: contain
}
@include desktop{
background-image: url(../../../assets/img/bg-desktop.png);
background-size: contain

@include tablet {
background-image: url('../../../assets/img/bg-tablet.png');
background-repeat: no-repeat;
background-size: 100%;
background-position: bottom;
height: calc(100vh - 72px);
}
}

@include desktop {
background-image: url('../../../assets/img/bg-desktop.png');
background-repeat: no-repeat;
background-size: 100%;
background-position: bottom;
}
}
// .background_img{
// @include tablet{
// background-image: url(../../../assets/img/bg-tablet.png);
// background-size: contain
// }
// @include desktop{
// background-image: url(../../../assets/img/bg-desktop.png);
// background-size: contain
// }
// }
.wrapper{
position: relative;
position: relative;
Expand Down Expand Up @@ -197,9 +212,9 @@
overflow-y: scroll;
}
}
.expense_block::-webkit-scrollbar {
width: 2px; /* ширина всей полосы прокрутки */
}
// .expense_block::-webkit-scrollbar {
// width: 2px; /* ширина всей полосы прокрутки */
// }
.error_mes{
padding-top: 30px;
text-align: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ export const ExpensesList = () => {
});
}, [dateFilter, dispatch, popupActive]);

console.log('on board', transactionData);
// console.log('on board', transactionData);

if (transactionData?.length === 0) return;

console.log('board');
// console.log('board');

return (
<div className={s.background_img}>
// <div className={s.background_img}>
<div className={s.container}>
<div className={s.wrapper}>
<Calendar onDate={setDateFilter} />
Expand Down Expand Up @@ -63,6 +63,6 @@ export const ExpensesList = () => {
)}
</div>
</div>
</div>
// </div>
);
};
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
@import 'src/assets/styles/utils/mixins';
@import 'src/assets/styles/utils/vars';
.background_img{
@include tablet{
background-image: url(../../../assets/img/bg-tablet.png);
background-size: contain
}
@include desktop{
background-image: url(../../../assets/img/bg-desktop.png);
background-size: contain
}
}
// .background_img{
// @include tablet{
// background-image: url(../../../assets/img/bg-tablet.png);
// background-size: contain
// }
// @include desktop{
// background-image: url(../../../assets/img/bg-desktop.png);
// background-size: contain
// }
// }
.container {
@include container;

@include tablet {
background-image: url('../../../assets/img/bg-tablet.png');
background-repeat: no-repeat;
background-size: 100%;
background-position: bottom;
height: calc(100vh - 72px);
}

@include desktop {
background-image: url('../../../assets/img/bg-desktop.png');
background-repeat: no-repeat;
background-size: 100%;
background-position: bottom;
}
}
.wrapper {
position: relative;
Expand Down Expand Up @@ -192,17 +207,17 @@
}
.expense_block {
@include desktop {
height: 420px;
max-height: 420px;
overflow-y: scroll;
}
@include tablet {
height: 420px;
max-height: 420px;
overflow-y: scroll;
}
}
.expense_block::-webkit-scrollbar {
width: 2px; /* ширина всей полосы прокрутки */
}
// .expense_block::-webkit-scrollbar {
// width: 2px; /* ширина всей полосы прокрутки */
// }
.error_mes{
padding-top: 30px;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import './index.scss';
ReactDOM.createRoot(document.getElementById('root')).render(
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<BrowserRouter basename='/bc-48-react-project'>
<BrowserRouter>
<App />
</BrowserRouter>
</PersistGate>
Expand Down

0 comments on commit c41ac22

Please sign in to comment.