1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

styled packs

This commit is contained in:
Sylvain 2021-06-28 11:49:51 +02:00
parent 4e030300cb
commit 86de1f6253
4 changed files with 38 additions and 9 deletions

View File

@ -1,8 +1,9 @@
# Changelog Fab-manager
- [TODO DEPLOY] `rails db:seed`
- Fix a bug: unable to filter by multiple user IDs in OpenAPI
- Tests for OpenAPI user trainings
- [TODO DEPLOY] `rails db:seed`
- [TODO DEPLOY] `rails fablab:maintenance:rebuild_stylesheet`
## v5.0.8 2021 June 28

View File

@ -149,12 +149,12 @@ const ReserveButtonComponent: React.FC<ReserveButtonProps> = ({ currentUser, mac
user={user}
machine={machine}
onEnrollRequested={onEnrollRequested} />
{machine && <ProposePacksModal isOpen={proposePacks}
toggleModal={toggleProposePacksModal}
machine={machine}
onError={onError}
customer={currentUser}
onDecline={onReserveMachine} />}
{machine && currentUser && <ProposePacksModal isOpen={proposePacks}
toggleModal={toggleProposePacksModal}
machine={machine}
onError={onError}
customer={currentUser}
onDecline={onReserveMachine} />}
</span>
);

View File

@ -1,23 +1,42 @@
.propose-packs-modal {
.list-of-packs {
display: flex;
flex-wrap: wrap;
.pack {
border-width: 3px;
border-style: solid;
border-radius: 10px 3px;
padding: 5px 15px;
width: 264px;
margin: 5px 10px;
text-align: center;
&::before {
content: '\f466';
font-family: 'Font Awesome 5 Free';
font-weight: 800;
font-size: 12px;
font-size: 30px;
vertical-align: middle;
line-height: 38px;
display: block;
}
.duration {
margin-right: 1em;
}
.amount {
font-weight: bold;
}
.crossed-out-price {
display: block;
text-decoration: line-through;
}
.buy-button {
margin-left: 10px;
margin-top: 10px;
margin-bottom: 5px;
}
}
}

View File

@ -395,3 +395,12 @@ section#cookies-modal div.cookies-consent .cookies-actions button.accept {
}
}
}
.propose-packs-modal {
.list-of-packs {
.pack {
border-color: $secondary;
}
}
}