Skip to content

Commit

Permalink
Merge pull request #1 from sts-ryan-holton/dev
Browse files Browse the repository at this point in the history
Design tweaks, fixes to version
  • Loading branch information
sts-ryan-holton authored Nov 16, 2019
2 parents a10bb29 + 36f2c6b commit da9de60
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 12 deletions.
42 changes: 32 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@
.is-spaced-bottom-small {
margin-bottom: .5rem;
}
.is-spaced-bottom-large {
margin-bottom: 3rem;
}
.is-spaced-top-small {
margin-top: .5rem;
}
.progress-ring__circle {
-webkit-transition: 0.35s stroke-dashoffset;
transition: 0.35s stroke-dashoffset;
transform: rotate(-90deg);
transform-origin: 50% 50%;
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
-webkit-transform-origin: 50% 50%;
transform-origin: 50% 50%;
}
.progress-result-box {
position: absolute;
Expand All @@ -45,6 +51,14 @@
.progress-ring-result {
position: relative;
}
.score-theme circle {
-webkit-transition: fill .5s ease, stroke .5s ease;
transition: fill .5s ease, stroke .5s ease;
}
.score-details *[class^="score-theme--"] {
-webkit-transition: color .5s ease, color .5s ease;
transition: color .5s ease, color .5s ease;
}
.score-theme.score-theme--default circle {
fill: #E1F5FE;
stroke: #4FC3F7;
Expand Down Expand Up @@ -87,15 +101,15 @@
<div class="container">
<div class="columns">
<div class="column has-text-centered">
<h1 class="title">
<h1 class="title is-size-4">
Loan Affordability Score <span class="tag is-warning is-light">Beta</span>
</h1>
<p class="subtitle is-spaced-bottom">
<p class="subtitle is-size-6 is-spaced-bottom">
get your FREE <strong>risk score</strong>
</p>
</div>
</div>
<div class="columns is-centered">
<div class="columns is-centered is-spaced-bottom-large">
<div class="column is-4">
<form v-show="!risk.isLoading">
<div class="field">
Expand Down Expand Up @@ -171,6 +185,7 @@ <h4 class="is-size-5 has-text-black has-text-weight-normal">Obtaining Risk Score
<p class="is-size-7 has-text-grey has-text-weight-light is-spaced-bottom-small">
this could take a while, please wait...
</p>
<progress class="progress is-small is-primary" max="100">15%</progress>
</div>
<div v-show="risk.hasResult">
<h4 class="is-size-5 has-text-black has-text-weight-normal">Your Risk Score</h4>
Expand Down Expand Up @@ -202,13 +217,20 @@ <h5 class="is-size-5 has-text-weight-bold" :class="risk.theme">{{ risk.scoreShow
</div>
</div>
</div>
<div class="columns is-centered">
<div class="column is-4 has-text-left">
<p class="s-size-7 has-text-weight-normal has-text-grey-light">
<small>Version: 1.0.1, <a href="https://github.com/sts-ryan-holton/loan-risk-score#moneybag-loan-affordability-risk-score" target="_blank">documentation</a></small>
</p>
</div>
</div>
</div>
</section>

<!-- JS -->
<script src="https://unpkg.com/brain.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
<script src="https://unpkg.com/brain.js@2.0.0-alpha.9/dist/brain-browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.10"></script>
<script src="https://unpkg.com/vue-router@3.1.3/dist/vue-router.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script>
const router = new VueRouter({
Expand Down Expand Up @@ -306,7 +328,7 @@ <h5 class="is-size-5 has-text-weight-bold" :class="risk.theme">{{ risk.scoreShow
this.risk.isCalculating = true
setTimeout(() => {
this.risk.isLoading = true
}, 2000);
}, 500);

var circle = document.querySelector('circle');
var radius = circle.r.baseVal.value;
Expand Down Expand Up @@ -433,7 +455,7 @@ <h5 class="is-size-5 has-text-weight-bold" :class="risk.theme">{{ risk.scoreShow
self.risk.scoreName = 'bad'
}
}
}, 3000);
}, 4000);

if (this.$route.query.enable_risk_factor_logging) {
console.log('Risk Factor Salary: ', salaryRisk)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrape-jobs",
"version": "1.0.0",
"name": "loan-risk-score",
"version": "1.0.1",
"description": "Calculate loan affordability using machine learning.",
"main": "scraper/scrape-jobs.js",
"keywords": [
Expand Down

0 comments on commit da9de60

Please sign in to comment.