Skip to content

Commit

Permalink
feat: Add components to app for proof of concept
Browse files Browse the repository at this point in the history
  • Loading branch information
novellac committed Mar 7, 2023
1 parent 8a40076 commit 9644035
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '/src/assets/main.css'

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
Expand Down
42 changes: 41 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
<template>
<header>incoming header</header>

<main>this will be main area</main>
<main>
<StepInput
v-model:stepText="bio"
:stepNumber="1"
stepLabel="Step 1: Add your current pitch"
/>

<StepInput
v-model:stepText="jobDescription"
:stepNumber="2"
stepLabel="Step 2: Paste a job description"
/>

<BaseButton @click="createMelange">Generate</BaseButton>

<div class="border">
<h2>Melange list:</h2>
<ul>
<li class="m-2 border" v-for="(item, index) in melange" :key="index">
{{ item }}
</li>
</ul>
</div>
</main>
</template>

<script setup>
import { ref } from 'vue'
import BaseButton from './components/BaseButton.vue'
import StepInput from './components/StepInput.vue'
const bio = ref('')
const jobDescription = ref('')
const melange = ref([])
const createMelange = () => {
melange.value.push(`${bio.value}, ${jobDescription.value}`)
jobDescription.value = ''
}
</script>

0 comments on commit 9644035

Please sign in to comment.