Skip to content

Commit

Permalink
router update + status renamed + added fonts/styles + vuex changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matt5346 committed Mar 8, 2022
1 parent 7eb86a8 commit 26e8a62
Show file tree
Hide file tree
Showing 34 changed files with 3,320 additions and 374 deletions.
3 changes: 1 addition & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
"dependencies": {
"axios": "^0.26.0",
"cids": "^1.1.9",
"core-js": "~3.12.1",
"ipfs-core": "^0.12.0",
"near-api-js": "~0.43.1",
"sass-loader": "^8.0.2",
"vue": "~2.6.11",
"vue-notification": "^1.3.20",
"vue-router": "^3.5.3",
Expand All @@ -43,6 +41,7 @@
"near-cli": "~2.1.1",
"nodemon": "~2.0.4",
"sass": "^1.49.9",
"sass-loader": "^8.0.2",
"shelljs": "~0.8.4",
"vue-template-compiler": "~2.6.11"
},
Expand Down
36 changes: 5 additions & 31 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<div id="root">
<notifications group="foo" />
<nav-bar v-if="isSignedIn" />
<router-view />

<div class="container">
<router-view />
</div>
</div>
</template>

Expand Down Expand Up @@ -57,35 +60,6 @@ export default {
}
</script>

<style>
@import "./global.css";
</style>


<style lang="scss">
.vue-notification-group {
width: 370px!important;
top: 20px!important;
}
.vue-notification-group .vue-notification {
padding: 10px;
margin: 0 5px 5px;
font-size: 18px;
color: #ffffff;
background: #44A4FC;
border-left: 5px solid #187FE7;
&.warn {
background: #ffb648;
border-left-color: #f48a06;
}
&.error {
background: #E54D42;
border-left-color: #B82E24;
}
&.success {
background: #68CD86;
border-left-color: #42A85F;
}
}
@import "./styles/app.scss";
</style>
4 changes: 2 additions & 2 deletions frontend/src/components/Spinner/SpinnerDots.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ $animationDuration: 1s;
}
.spinner-dots .bounce1 {
animation-delay: -($animationDuration/3);
animation-delay: -(calc($animationDuration / 3));
}
.spinner-dots .bounce2 {
animation-delay: -($animationDuration/6);
animation-delay: -(calc($animationDuration / 6));
}
@-webkit-keyframes sk-bouncedelay {
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/Spinner/SpinnerFadingCircle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ $spinkit-size: 36px;
height: $width;
overflow: hidden;
background-color: currentColor;
border-radius: ($width / 2);
border-radius: calc($width / 2);
animation: sk-circleFadeDelay $animation-duration infinite ease-in-out both;
}
@for $i from 1 through $circle-count {
.sk-circle#{$i} {
transform: rotate(360deg / $circle-count * ($i - 1));
transform: rotate(360deg / calc($circle-count * ($i - 1)));
&::before {
$a: -$animation-duration + ($i - 1) * $animation-duration/$circle-count;
$a: -$animation-duration + calc(($i - 1) * $animation-duration/$circle-count);
animation-delay: $a;
}
}
Expand Down
223 changes: 0 additions & 223 deletions frontend/src/global.css

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Vue.use(Notifications)
window.nearInitPromise = initContract()
.then(() => {
new Vue({
router,
store,
router,
render: h => h(App),
}).$mount("#app")

Expand Down
Loading

0 comments on commit 26e8a62

Please sign in to comment.