-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow users to see multiple pitches (#7)
* hotfix: ignore vercel dierctory * feat: Allow user to see multiple pitches * hotfix: Ensure cards come through as list items * design: design tweaks from Figma
- Loading branch information
Showing
9 changed files
with
203 additions
and
27 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,7 +1,22 @@ | ||
<template> | ||
<button | ||
class="p-2 text-white rounded-lg bg-primary-indigo hover:bg-cool-black" | ||
class="p-2 text-white rounded-lg" | ||
:disabled="isLoading" | ||
:class=" | ||
isLoading | ||
? 'bg-indigo-300 hover:bg-indigo-300' | ||
: 'bg-primary-indigo hover:bg-cool-black' | ||
" | ||
> | ||
<slot /> | ||
</button> | ||
</template> | ||
|
||
<script setup> | ||
defineProps({ | ||
isLoading: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
}) | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import ResultCard from './ResultCard.vue' | ||
|
||
export default { | ||
title: 'Result card (single)', | ||
component: ResultCard, | ||
} | ||
|
||
const Template = (args) => ({ | ||
components: { ResultCard }, | ||
setup() { | ||
return { args } | ||
}, | ||
template: `<ResultCard v-bind="args" />`, | ||
}) | ||
|
||
export const Primary = Template.bind({}) | ||
Primary.args = { | ||
text: ` | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Reiciendis nisi reprehenderit rem dicta totam ad temporibus recusandae quod. Dignissimos nesciunt quaerat aspernatur velit necessitatibus nam voluptatibus perferendis esse veritatis dicta. | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Reiciendis nisi reprehenderit rem dicta totam ad temporibus recusandae quod. Dignissimos nesciunt quaerat aspernatur velit necessitatibus nam voluptatibus perferendis esse veritatis dicta. | ||
`, | ||
time: '9:48:13 AM', | ||
order: 123, | ||
} |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<template> | ||
<component | ||
:is="tag" | ||
class="flex flex-col-reverse border-4 border-neutral-200 rounded-2xl" | ||
> | ||
<h3 | ||
class="flex justify-end px-6 py-4 font-bold sm:justify-between bg-neutral-200" | ||
> | ||
<span class="hidden sm:inline-block"> | ||
<img | ||
src="../assets/images/icon-clock.png" | ||
role="presentation" | ||
class="inline h-6 mr-3" | ||
/> | ||
Generated at {{ time }} | ||
</span> | ||
<span>Job Description #{{ order }}</span> | ||
</h3> | ||
<p class="px-6 pt-4 pb-6">{{ text }}</p> | ||
</component> | ||
</template> | ||
|
||
<script setup> | ||
defineProps({ | ||
tag: { | ||
type: String, | ||
default: 'li', | ||
}, | ||
time: { | ||
type: String, | ||
required: true, | ||
}, | ||
order: { | ||
type: [String, Number], | ||
required: true, | ||
}, | ||
text: { | ||
type: String, | ||
required: true, | ||
}, | ||
}) | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import ResultCardLoading from './ResultCardLoading.vue' | ||
|
||
export default { | ||
title: 'Result card loading skeleton', | ||
component: ResultCardLoading, | ||
} | ||
|
||
const Template = (args) => ({ | ||
components: { ResultCardLoading }, | ||
setup() { | ||
return { args } | ||
}, | ||
template: `<ResultCardLoading v-bind="args" />`, | ||
}) | ||
|
||
export const Primary = Template.bind({}) | ||
Primary.args = {} |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<div | ||
role="alert" | ||
aria-live="assertive" | ||
class="flex flex-col-reverse w-full border-4 border-indigo-100 animate-pulse motion-safe:animate-none rounded-2xl" | ||
> | ||
<div class="flex justify-between px-6 py-4 font-bold bg-indigo-100"> | ||
<div class="hidden h-2 bg-indigo-200 rounded-lg w-52 sm:inline-block" /> | ||
<div class="h-2 bg-indigo-200 rounded-lg w-38 sm:w-1/5" /> | ||
</div> | ||
<div class="block px-6 pt-4 pb-6"> | ||
<p class="mb-4 text-center text-indigo-400"> | ||
Generating a pop-out pitch! | ||
</p> | ||
<div class="grid grid-cols-3 grid-rows-2 gap-4"> | ||
<div class="h-2 col-span-2 row-span-1 bg-indigo-200 rounded"></div> | ||
<div class="h-2 col-span-1 row-span-1 bg-indigo-200 rounded"></div> | ||
<div class="h-2 col-span-1 row-span-2 bg-indigo-200 rounded"></div> | ||
<div class="h-2 col-span-2 row-span-2 bg-indigo-200 rounded"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.loader { | ||
width: 100%; | ||
height: 200px; | ||
background: linear-gradient(0.25turn, transparent, #fff, transparent), | ||
linear-gradient(#ddd, #ddd), | ||
radial-gradient(38px circle at 19px 19px, #ddd 50%, transparent 51%), | ||
linear-gradient(#ddd, #ddd); | ||
background-color: #fff; | ||
background-repeat: no-repeat; | ||
background-size: 100% 200px, 100%x 130px, 100px 100px, 225px 30px; | ||
background-position: 0% 0, 0 0, 15px 140px, 65px 145px; | ||
animation: loading 1.5s infinite; | ||
} | ||
@keyframes loading { | ||
to { | ||
background-position: 100% 0, 0 0, 15px 140px, 65px 145px; | ||
} | ||
} | ||
</style> |
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
d2307f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
squadtripletech – ./
squadtripletech.vercel.app
squadtripletech-git-main-tripletech.vercel.app
squadtripletech-tripletech.vercel.app