Skip to content

Commit 784543c

Browse files
committed
Finilazing project MVP
1 parent aa2de41 commit 784543c

File tree

7 files changed

+24
-10
lines changed

7 files changed

+24
-10
lines changed

src/main/resources/static/images/Vector 7.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/main/resources/static/js/main.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var path_url = document.URL;
77
if (path_url.includes('/block_explorer')) {
88

99
// -------------------------
10-
// Page UI/UX Changes
10+
// Initial Page UI/UX Changes
1111
// -------------------------
1212

1313
document.getElementsByTagName('footer')[0].getElementsByTagName('a')[1].style.color = '#00A3FF'
@@ -39,7 +39,7 @@ if (path_url.includes('/block_explorer')) {
3939
} else if (path_url.includes('/wallet')) {
4040

4141
// -------------------------
42-
// Page UI/UX Changes
42+
// Initial Page UI/UX Changes
4343
// -------------------------
4444

4545
document.getElementById('_btn_div_action_txt').innerHTML = `<p> hello </p>`
@@ -134,6 +134,12 @@ function copyClipboard(x) {
134134
}
135135

136136
function switchLayout() {
137+
138+
// Change Button Styles
139+
document.getElementById('simple_view_btn').classList.toggle('selected_dark')
140+
document.getElementById('visual_view_btn').classList.toggle('selected_dark')
141+
142+
// Switch - Show/Hide Layouts
137143
document.getElementById('simple_view_div').classList.toggle('enabled')
138144
document.getElementById('visual_view_div').classList.toggle('enabled')
139145
}

src/main/resources/static/styles/main.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/static/styles/main.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/resources/static/styles/sass/_buttons.sass

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
&:hover, &:focus, &:active
99
background-color: #708FFE;
10-
color: $primary_light;
10+
color: $primary_light;
11+
outline: none;
1112

1213
.button_main_light
1314
@include button_struct($primary_light, $secondary_dark);
@@ -91,4 +92,8 @@
9192

9293
.selected
9394
background-color: $primary_light;
94-
color: #708FFE;
95+
color: $secondary_light_v2;
96+
97+
.selected_dark
98+
background-color: $secondary_light_v2;
99+
color: $primary_light;

src/main/resources/templates/html/block_explorer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h4>Block Explorer</h4></span>
3434
</svg><span class="p-2" style="width: 35%; font-size: 12px;">Here you can find all of the details and in-depth information about the blockmatrix and discover all of the available RESTful APIs availble on the network.</span>
3535
</div>
3636
<div class="container m-2">
37-
<button class="button_main" id="simple_view_btn" type="button">Simple</button>
37+
<button class="button_main selected_dark" id="simple_view_btn" type="button">Simple</button>
3838
<button class="button_main" id="visual_view_btn" type="button">Visual</button>
3939
</div>
4040
</div>

src/main/resources/templates/pug/includes/mixins.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mixin header_page(headText, img_src, info_txt1)
1616
//- Switch Between Visual & Simple Blockexplorer
1717
if (headText == "Block Explorer")
1818
.container.m-2
19-
button#simple_view_btn.button_main(type="button") Simple
19+
button#simple_view_btn.button_main(type="button").selected_dark Simple
2020
button#visual_view_btn.button_main(type="button") Visual
2121

2222
//- ----------------------

0 commit comments

Comments
 (0)