-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
@import 'tailwindcss/base'; | ||
@import 'tailwindcss/components'; | ||
@import 'tailwindcss/utilities'; | ||
|
||
[v-cloak] { | ||
display: none !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,55 @@ | ||
<template> | ||
<div> | ||
Hello {{ name }}! | ||
<button class="bg-red-300">test</button> | ||
<div v-cloak> | ||
<form @submit.prevent> | ||
<h3>1. Tell us about your current job</h3> | ||
<label> | ||
Current job title | ||
<job-search @job-selected="jobSelected" /> | ||
</label> | ||
<button class="bg-green-800" @click="step1Click">Give me luck!</button> | ||
|
||
<div v-if="currentStep === 2"> | ||
<ul v-for="index in currentJob.future_demand" :key="index"> | ||
<li>star</li> | ||
</ul> | ||
<div v-if="currentJob.future_demand < 3"> | ||
You like risky things!! Your job has very high change to get automated by 2030. | ||
</div> | ||
<div v-else-if="currentJob.future_demand > 3 && currentJob.future_demand < 5"> | ||
Jor job will continue to be demanded. Your job has some changes to get automated in 2030. | ||
</div> | ||
<div v-else>You are lucky!! Your job will unlikely be automated by 2030.</div> | ||
<h3>2. And which skills from {{ currentJob.title }} do you master?</h3> | ||
<ul v-for="skill in currentJob.skills" :key="skill"> | ||
<li>{{ skill }}</li> | ||
</ul> | ||
</div> | ||
</form> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import JobSearch from './components/JobSearch.vue'; | ||
export default { | ||
components: { JobSearch }, | ||
data() { | ||
return { | ||
name: 'Vue', | ||
currentStep: 1, | ||
currentJob: null, | ||
}; | ||
}, | ||
mounted() { | ||
// App mounted | ||
}, | ||
methods: { | ||
jobSelected(job) { | ||
this.currentJob = job; | ||
this.currentStep = 2; | ||
}, | ||
step1Click() { | ||
console.log('click'); | ||
}, | ||
}, | ||
}; | ||
</script> |