Skip to content

Commit

Permalink
feat: implement layout
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Jun 8, 2021
1 parent 071abe6 commit 47748a7
Show file tree
Hide file tree
Showing 25 changed files with 542 additions and 116 deletions.
34 changes: 31 additions & 3 deletions packages/ui/assets/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@

--selected-background: #37414c;
--selected-text: rgb(233, 231, 231);
--selected-border: 2px solid #62B1B015;
--selected-icon: #62B1B058;
--selected-options-background: #37414c;
--selected-options-text: rgb(231, 231, 231);
--selected-options-border: 1px solid #1F1F24;
--selected-options-border: 2px solid #62B1B015;;
--selected-options-shadow: 1px 1px 10 2px #62B1B029;
--selected-options-highlight: #62B1B015;

Expand Down Expand Up @@ -47,6 +48,15 @@
// links

--transaction-blur-background: #FFFFFF10;

//ThemeSwitch

--icon-color: #fff;
--icon-background: #37414c94;

//ContractAddress

--contract-address: #41BEA5;
}

.dark-mode {
Expand All @@ -62,10 +72,10 @@
--selected-background: #37414c;
--selected-text: white;
--selected-icon: #62B1B058;
--selected-border: 1px solid #1F1F24;
--selected-border: 2px solid #62B1B015;
--selected-options-background: #37414c;
--selected-options-text: white;
--selected-options-border: 1px solid #1F1F24;
--selected-options-border: 2px solid #62B1B015;
--selected-options-shadow: 1px 1px 10 2px #62B1B029;
--selected-options-highlight: #62B1B015;

Expand Down Expand Up @@ -99,6 +109,15 @@
// links

--transaction-blur-background: #FFFFFF10;

//ThemeSwitch

--icon-color: #fff;
--icon-background: #37414c94;

//ContractAddress

--contract-address: #41BEA5;
}

.light-mode {
Expand Down Expand Up @@ -152,6 +171,15 @@
// links

--transaction-blur-background: #2d2c3909;

//ThemeSwitch

--icon-color: #2D2C39;
--icon-background: #ffffffd3;

//ContractAddress

--contract-address: #41BEA5;
}

h1 {
Expand Down
7 changes: 0 additions & 7 deletions packages/ui/assets/svg/bitcoin-card.svg

This file was deleted.

11 changes: 11 additions & 0 deletions packages/ui/assets/svg/bitcoin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<script>
export default {
name: 'Chart',
props: {
data: {
type: Array,
Expand All @@ -29,8 +30,6 @@ export default {
return {
tooltip: true,
dateTooltip: true,
width: 400,
height: 300,
value: '',
date: '',
toolTipWidth: 100,
Expand All @@ -45,7 +44,7 @@ export default {
borderVisible: false,
},
timeScale: {
visible: true,
borderVisible: false,
},
crosshair: {
horzLine: {
Expand All @@ -70,6 +69,7 @@ export default {
})
},
lineChart() {
this.chart.timeScale().fitContent()
return this.chart.addAreaSeries({
topColor: '#41BEA556',
bottomColor: '#41BEA504',
Expand All @@ -91,6 +91,7 @@ export default {
)
dataToUpdate.forEach((el) => this.updateData(el))
}
this.chart.timeScale().fitContent()
},
},
},
Expand Down
Loading

0 comments on commit 47748a7

Please sign in to comment.