Skip to content

Commit

Permalink
chore: add new layout
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaZhem committed Aug 21, 2024
1 parent 1d828a4 commit c99a1ec
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
</h3>
<button
tuiButton
[style.margin-top]="'auto'"
(click)="createNew()"
>
Create new Token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<button
tuiButton
type="submit"
[style.margin-top]="'auto'"
>
Deploy
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ form {
display: flex;
flex-direction: column;
gap: 0.4rem;
height: 100%;
}

.block-input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@
</h2>
</header>
@if (!token) {
<lmb-minter-deploy (tokenChange)="token = $event" />
<lmb-minter-deploy
[style.flex-grow]="1"
(tokenChange)="token = $event"
/>
} @else {
<lmb-minter-created [(token)]="token" />
<lmb-minter-created
[style.flex-grow]="1"
[(token)]="token"
/>
}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
text-align: center;
}

.card {
height: 100%;
}

.block-input {
display: flex;
flex-direction: column;
Expand Down
22 changes: 13 additions & 9 deletions apps/taiga-lumbermill/src/dashboards/crypto/crypto.component.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<div class="column">
<div class="row">
<lmb-prices class="grow" />
<lmb-swap class="grow" />
<lmb-pools class="grow" />
<div class="layout">
<div class="left">
<lmb-prices class="" />
<lmb-staking class="staking" />
</div>
<div class="row">
<lmb-staking class="grow" />
<lmb-nft class="grow" />
<lmb-minter class="grow" />
<div class="right">
<div class="right-top">
<lmb-minter class="minter" />
<lmb-swap class="" />
</div>
<div class="right-bottom">
<lmb-nft class="" />
<lmb-pools class="" />
</div>
</div>
</div>
41 changes: 41 additions & 0 deletions apps/taiga-lumbermill/src/dashboards/crypto/crypto.component.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,44 @@
padding-top: 1.25rem;
flex-direction: column;
}

.layout {
display: flex;
width: 100%;
gap: 1rem;
margin-top: 1rem;
}

.minter {
height: 100%;
}

.left {
display: flex;
flex-direction: column;
gap: 1rem;
flex-grow: 1;
width: 350px;
flex-shrink: 0;
}

.right {
display: flex;
flex-direction: column;
gap: 1rem;
flex-grow: 1;
}

.right-top {
display: grid;
gap: 1rem;
height: 100%;
grid-template-columns: 2fr 4fr;
flex-grow: 1;
}

.right-bottom {
display: grid;
gap: 1rem;
grid-template-columns: 4fr 3fr;
}

0 comments on commit c99a1ec

Please sign in to comment.