cv-astro

1.0.1 • Public • Published

CV-Astro

Astro component to display a print-friendly and minimalist CV inspired by BartoszJarocki/cv.

CV-Astro Demo

Usage

npm install cv-astro

Your Astro project must be configured to use TailwindCSS

Configure your TailwindCSS config to include the styles in the cv-astro package:

// tailwind.config.ts
import type { Config } from 'tailwindcss'

export default {
  content: [
    './src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}',

    // Add the following line
    './node_modules/cv-astro/src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}',
  ],
  theme: {
    extend: {},
  },
  plugins: [],
} satisfies Config

Import the component in your Astro project:

---
import CV from 'cv-astro';
---
<CV {...cvData}/>

cvData is an object implementing the ICVData type interface defined in src/cv.d.ts:

interface ICvData {
  info: IPersonalInfo;
  experience?: IExperience[];
  volunteering?: IVolunteer[];
  education?:  IEducation[];
  certifications?: ICertification[];
  skills?: ISkill[];
  projects?: IProject[];
  order?: ECvSection[];
}

Package Sidebar

Install

npm i cv-astro

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

32.1 kB

Total Files

32

Last publish

Collaborators

  • swordf1zh