Skip to content

Instantly share code, notes, and snippets.

@Akhigbe-E
Created February 4, 2021 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akhigbe-E/054435ab5874f56282e1a2c0e0f95cae to your computer and use it in GitHub Desktop.
Save Akhigbe-E/054435ab5874f56282e1a2c0e0f95cae to your computer and use it in GitHub Desktop.
Refactored JobCardList component
<template>
<div
class="grid gap-x-12 gap-y-12 grid-cols-1 sm:grid-cols-3 container mx-auto px-5 sm:gap-y-20"
style="max-width: 1100px"
>
<job-card-list-item
v-for="job in jobs"
:key="job.id"
:name="job.companyName"
:title="job.title"
:jobType="job.jobType"
:location="job.location"
:logo="job.companyLogo"
/>
</div>
</template>
<script>
export default {
props: {
jobs: {
type: Array,
required: true,
},
},
}
</script>
<style></style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment