Skip to content

Commit

Permalink
add new linkedin3
Browse files Browse the repository at this point in the history
  • Loading branch information
jongwony committed Nov 9, 2024
1 parent 72f7c55 commit cc26458
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/form/Template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Image from "next/image"


interface TemplateProps {
templates: {id: string, name: string, path: string, src: string, dark: string, light: string}[];
templates: {id: string, name: string, src: string, dark: string, light: string}[];
onThemeChange: (theme: string) => void;
onTemplateChange: (template: string) => void;
}
Expand Down
14 changes: 9 additions & 5 deletions src/app/form/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,37 @@ import ChooseTemplate from './Template';
import { FormDataTypes, Insta1Form, InstaSpecialForm, Linkedin1Form, Linkedin2Form } from './Types';

const templates = [
{
id: 'linkedin3',
name: 'LinkedIn: 가운데 정렬된 템플릿',
src: '',
dark: '/Linkedin3Dark.png',
light: '/Linkedin3Light.png',
},
{
id: 'linkedin2',
name: 'LinkedIn: 직무를 강조하는 템플릿',
path: '/form/linkedin2',
src: '',
dark: '/Linkedin2Dark.png',
light: '/Linkedin2Light.png',
},
{
id: 'linkedin1',
name: 'LinkedIn: 근무기간을 포함하는 템플릿',
path: '/form/linkedin1',
src: '',
dark: '/Linkedin1Dark.png',
light: '/Linkedin1Light.png',
},
{
id: 'insta_special',
name: 'Instagram: 컬러풀한 템플릿',
path: '/form/insta_special',
src: '/InstaSpecial.png',
dark: '',
light: '',
},
{
id: 'insta1',
name: 'Instagram: 깔끔한 템플릿',
path: '/form/insta1',
src: '',
dark: '/Insta1Dark.png',
light: '/Insta1Light.png',
Expand Down Expand Up @@ -68,6 +71,7 @@ const FormPage = (): React.ReactElement => {
break;
case 'linkedin1':
case 'linkedin2':
case 'linkedin3':
endpoint = 'https://9e240d7v0k.execute-api.ap-northeast-2.amazonaws.com/api/v1/passes/pass.com.passconnect/linkedin';
break;
default:
Expand Down Expand Up @@ -108,7 +112,7 @@ const FormPage = (): React.ReactElement => {
};

const isLinkedin2Form = (data: FormDataTypes): data is Linkedin2Form => {
return data.template === 'linkedin2';
return data.template === 'linkedin2' || data.template === 'linkedin3';
};

return (
Expand Down

0 comments on commit cc26458

Please sign in to comment.