design nosepass template, add tests, add template previews

This commit is contained in:
Amruth Pillai
2023-11-17 08:31:12 +01:00
parent 0b4cb71320
commit 34247f13b6
92 changed files with 24440 additions and 35518 deletions

View File

@ -13,8 +13,8 @@ export const sampleResume: ResumeData = {
},
customFields: [],
picture: {
url: "https://res.cloudinary.com/amruth-pillai/image/upload/v1699362669/reactive-resume/sample-resume/sample-picture_iitowc.jpg",
size: 128,
url: "https://i.imgur.com/HgwyOuJ.jpg",
size: 70,
aspectRatio: 1,
borderRadius: 6,
effects: {
@ -212,35 +212,35 @@ export const sampleResume: ResumeData = {
id: "je6s7k590yp9wtv65bbcyiua",
visible: true,
name: "English",
fluency: "Native Speaker",
fluencyLevel: 5,
description: "Native Speaker",
level: 5,
},
{
id: "qdltq93lqi5g290t70brrpit",
visible: true,
name: "German",
fluency: "Advanced",
fluencyLevel: 5,
description: "Advanced",
level: 5,
},
{
id: "txxfl568h5yg5xojwj5sk3ms",
visible: true,
name: "French",
fluency: "Advanced",
fluencyLevel: 5,
description: "Advanced",
level: 5,
},
{
id: "zla2ezdkhemy68kg8bj86jk0",
visible: true,
name: "Spanish",
fluency: "Learning",
fluencyLevel: 2,
description: "Learning",
level: 2,
},
],
},
profiles: {
name: "Profiles",
columns: 2,
columns: 1,
visible: true,
id: "profiles",
items: [
@ -479,16 +479,16 @@ export const sampleResume: ResumeData = {
theme: {
background: "#ffffff",
text: "#000000",
primary: "#DC1A4E",
primary: "#398dc9",
},
typography: {
font: {
family: "IBM Plex Serif",
family: "IBM Plex Sans Condensed",
subset: "latin",
variants: ["regular", "italic", "500", "600", "600italic"],
variants: ["regular", "500"],
size: 13,
},
lineHeight: 2,
lineHeight: 1.5,
hideIcons: false,
underlineLinks: true,
},

View File

@ -5,8 +5,8 @@ import { defaultItem, itemSchema } from "../shared";
// Schema
export const languageSchema = itemSchema.extend({
name: z.string().min(1),
fluency: z.string(),
fluencyLevel: z.number().min(1).max(6),
description: z.string(),
level: z.number().min(0).max(5).default(1),
});
// Type
@ -16,6 +16,6 @@ export type Language = z.infer<typeof languageSchema>;
export const defaultLanguage: Language = {
...defaultItem,
name: "",
fluency: "",
fluencyLevel: 1,
description: "",
level: 1,
};

View File

@ -6,7 +6,7 @@ import { defaultItem, itemSchema } from "../shared";
export const skillSchema = itemSchema.extend({
name: z.string(),
description: z.string(),
level: z.number().min(1).max(5).default(1),
level: z.number().min(0).max(5).default(1),
keywords: z.array(z.string()).default([]),
});