Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull to own branch #1

Merged
merged 28 commits into from
Nov 12, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8d7c44f
Refactor project structure and add Ant Design
TULENp Nov 8, 2022
a345ec1
Change structure a bit
TULENp Nov 8, 2022
395ae37
Refactor structure. final version
TULENp Nov 8, 2022
8bf7c40
Add filter. Import ant design styles to main.tsx
TULENp Nov 9, 2022
8393c63
Add Eslint Typescript
kildanL Nov 9, 2022
61181bd
Merge remote-tracking branch 'origin/Eugene's' into Rasim's
kildanL Nov 9, 2022
afd26fc
Add cart page and element
TULENp Nov 9, 2022
2a75ac0
Add data.ts. Add props to ProductCard_mini.tsx
TULENp Nov 9, 2022
c63922d
Move type and cardList to their own files.
TULENp Nov 9, 2022
2c405e4
Pass props to cards and get them. Add icons.
TULENp Nov 9, 2022
a223741
Add order page
TULENp Nov 9, 2022
5985a9a
Fix ts(7031) error
TULENp Nov 9, 2022
0084d1b
Add settings, orders list and favorites pages
TULENp Nov 10, 2022
82830b3
Fill favoritesPage with products.
TULENp Nov 10, 2022
8f1c00b
Add header
kildanL Nov 10, 2022
1dc3df5
Add orders pages and components
TULENp Nov 10, 2022
bb1347c
Fixed sort in Filter.tsx
TULENp Nov 10, 2022
862121a
Change Header
kildanL Nov 11, 2022
4d2042c
Merge remote-tracking branch 'origin/Dev' into Rasim's
kildanL Nov 11, 2022
7c0871f
Now PlantPage open selected plant (dirty hack)
TULENp Nov 11, 2022
c069e9e
Add Frontend and BackEnd folders. Move files.
TULENp Nov 11, 2022
b69cca4
Add base layout
kildanL Nov 11, 2022
f422b2d
Add plant pics. Styled ProductCard_mini
TULENp Nov 11, 2022
858dea8
Add folder FrontEnd
kildanL Nov 11, 2022
268f75a
Add folder FrontEnd
kildanL Nov 11, 2022
669ed6c
Merge remote-tracking branch 'origin/Rasim's' into Dev
TULENp Nov 11, 2022
7639947
remove src copy
TULENp Nov 11, 2022
6fbaa41
Change styles. Change Header
TULENp Nov 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Change styles. Change Header
  • Loading branch information
TULENp committed Nov 11, 2022
commit 6fbaa416a468150395b5681a74d95a5c42b88a3b
Binary file added FrontEnd/public/News.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 13 additions & 5 deletions FrontEnd/src/components/Header/Header.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
header {
display: flex;
justify-content: space-between;
// display: flex;
// justify-content: space-between;
width: 100%;
max-width: 1247px;
margin: 0 auto;
Expand All @@ -12,14 +12,16 @@ header {
.nav_head{
display: flex;
justify-content: space-between;
margin-top: 3rem;
// align-self: center;
// margin-top: 3rem;
padding: 0;
.navbar{
list-style: none;
display: flex;
justify-content: center;
align-items:center;
margin-right: 16rem;

margin: 0;
// margin-right: 16rem;

li{
margin-left: 3rem;
Expand All @@ -34,6 +36,12 @@ header {
}
}
}
.user{
list-style: none;
display: flex;
justify-content: space-between;
align-items:center;
}

.icons_header{
display: flex;
Expand Down
25 changes: 14 additions & 11 deletions FrontEnd/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,28 @@ import './Header.scss'
export function Header(): JSX.Element {
return (
<header>
<Logo />
<nav className='nav_head'>
<Logo />
<ul className="navbar">
<li><Link to={"/"} className='main main_active'>Главная</Link> </li>
<li><Link to={"/poll"}>Опрос</Link></li>
<li><Link to={"/about"}>О нас</Link></li>
<li><Link to={"/cart"}>Корзина</Link></li>
</ul>
<ul className="user">
<li><Link to={"/favorite"}>Избранное</Link> </li>
<li><Link to={"/ordersList"}>Заказы</Link></li>
<li><Link to={"/settings"}>Настройки</Link></li>
</ul>
<div className='icons_header'>
<Button className='btn_login'>Войти</Button>
<img src='src\Assets\cart.png' className='btn_cart'/>
<div className="user">
<ul >
<li><Link to={"/favorite"}>Избранное</Link> </li>
<li><Link to={"/ordersList"}>Заказы</Link></li>
<li><Link to={"/settings"}>Настройки</Link></li>
</ul>
<div className='icons_header'>
<Button className='btn_login'>Войти</Button>
<Link to={"/cart"}>
<img src='src\Assets\cart.png' className='btn_cart' alt='cart' />
</Link>
</div>
</div>
</nav>
{/*TODO add login*/}
</header>
</header >
)
}
3 changes: 2 additions & 1 deletion FrontEnd/src/components/News/News.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import './style.css'
//*
export function News(): JSX.Element {
return (
<div>News</div>
// <img src="News.png" alt="News" id='news'/>
<div>NEWS</div>
)
}
17 changes: 12 additions & 5 deletions FrontEnd/src/components/ProductCard_mini/ProductCard_mini.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// flex-flow: column wrap;
// justify-content: space-between;
// max-width: 100px;

width: 11rem;
height: 21rem;
display: flex;
Expand All @@ -16,13 +16,20 @@
flex-flow: column wrap;
// max-width: 200px;
}

.action {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
}



.toCart_btn {
width: 133px;
height: 40px;

background: #D96BFF;
box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.043);
border-radius: 8px;
border: #D96BFF solid 2px;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function ProductCard_mini({ id, image, title, price }:TCard): JSX.Element
</section>
</Link>
<div className='action'>
<button>В корзину</button>
<button className='toCart_btn'>В корзину</button>
<img src="EmptyHeart.svg" alt="favorite" />
</div>
</div>
Expand Down
Empty file.
12 changes: 6 additions & 6 deletions FrontEnd/src/components/Products/Products.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.cards {
/* display: flex;
display: flex;
flex-flow: row wrap;
justify-content: space-between; */
// width: 79%;
justify-content: space-between;
// width: 79%;
// height: 500px;
// //float: left;
// display: flex;
// justify-content: space-between;
// flex-flow: row wrap;
border: 1px solid silver;
// border: 1px solid silver;


}
Empty file.