File tree Expand file tree Collapse file tree
@apps/front/translations/curriculums
components/curriculums/edit
routes/dashboard/curriculums Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,3 +15,6 @@ validation:
1515create :
1616 createSuccess : ' Curriculum vitae created successfully'
1717 title : ' Title'
18+ edit :
19+ returnToList : ' Return to list'
20+ download : ' Download'
Original file line number Diff line number Diff line change @@ -15,3 +15,6 @@ validation:
1515create :
1616 createSuccess : ' Le curriculum vitae a été créé avec succès'
1717 title : ' Titre'
18+ edit :
19+ returnToList : ' Retour à la liste'
20+ download : ' Télécharger'
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ import type { TOC } from ' @ember/component/template-only' ;
2+
3+ const ReturnArrowIcon: TOC <{ Element: SVGSVGElement }> = <template >
4+ <svg
5+ xmlns =" http://www.w3.org/2000/svg"
6+ fill =" none"
7+ viewBox =" 0 0 24 24"
8+ stroke-width =" 1.5"
9+ stroke =" currentColor"
10+ class =" size-6"
11+ >
12+ <path
13+ stroke-linecap =" round"
14+ stroke-linejoin =" round"
15+ d =" M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"
16+ />
17+ </svg >
18+ </template >;
19+
20+ export default ReturnArrowIcon ;
Original file line number Diff line number Diff line change 1+ import Component from ' @glimmer/component' ;
2+ import t from ' ember-intl/helpers/t' ;
3+ import DownloadIcon from ' #src/assets/icons/download.gts' ;
4+
5+ class CurriculumDownloadButton extends Component <object > {
6+ get curriculumPreview() {
7+ return [];
8+ }
9+
10+ <template >
11+ <button
12+ type =" button"
13+ class =" flex items-center gap-2 text-sm text-white border border-gray-400 rounded px-3 py-1 hover:bg-gray-700"
14+ >
15+ <DownloadIcon />
16+ {{t " curriculums.edit.download" }}
17+ </button >
18+ </template >
19+ }
20+
21+ export default CurriculumDownloadButton ;
Original file line number Diff line number Diff line change 1+ import Component from ' @glimmer/component' ;
2+ import t from ' ember-intl/helpers/t' ;
3+ import ReturnArrowIcon from ' #src/assets/icons/returnArrow.gts' ;
4+
5+ class CurriculumReturnButton extends Component <object > {
6+ get curriculumPreview() {
7+ return [];
8+ }
9+
10+ <template >
11+ <button
12+ type =" button"
13+ class =" flex items-center gap-2 text-sm text-white border border-gray-400 rounded px-3 py-1 hover:bg-gray-700"
14+ >
15+ <ReturnArrowIcon />
16+ {{t " curriculums.edit.returnToList" }}
17+ </button >
18+ </template >
19+ }
20+
21+ export default CurriculumReturnButton ;
Original file line number Diff line number Diff line change 1+ import Component from ' @glimmer/component' ;
2+ import EditReturnButton from ' #src/components/curriculums/edit/curriculum-edit-return-button.gts' ;
3+ import EditDownloadButton from ' #src/components/curriculums/edit/curriculum-edit-download-button.gts' ;
4+
5+ class CurriculumTopBar extends Component <object > {
6+ get curriculumPreview() {
7+ return [];
8+ }
9+
10+ <template >
11+ <div
12+ class =" flex flex-row bg-[#1D1D20] px-4 py-4 items-center justify-between"
13+ >
14+ <EditReturnButton />
15+ <div class =" text-center text-sm font-medium text-white size-fit" >
16+ Titre du CV
17+ </div >
18+ <EditDownloadButton />
19+ </div >
20+ </template >
21+ }
22+
23+ export default CurriculumTopBar ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class CurriculumEditView extends Component<object> {
66 }
77
88 <template >
9- <div class =" flex flex-col gap-4 " >
9+ <div class =" flex flex-col border-2 border-gray-300 w-full " >
1010 The edit page
1111 </div >
1212 </template >
Original file line number Diff line number Diff line change 11import Component from ' @glimmer/component' ;
2+ import CvIcon from ' #src/assets/icons/cvBig.gts' ;
3+
24class CurriculumPreview extends Component <object > {
35 get curriculumPreview() {
46 return [];
57 }
68
79 <template >
8- <div class =" flex flex-col gap-4" >
9- the preview page
10+ <div
11+ class =" flex flex-col border-2 border-gray-300 w-full p-4 items-center justify-center"
12+ >
13+ <CvIcon />
1014 </div >
1115 </template >
1216}
Original file line number Diff line number Diff line change @@ -3,10 +3,16 @@ import type CurriculumsEdit from './edit.gts';
33
44import CurriculumPreview from ' #src/components/curriculums/edit/curriculum-preview.gts' ;
55import CurriculumEditView from ' #src/components/curriculums/edit/curriculum-edit-view.gts' ;
6+ import CurriculumEditTopBar from ' #src/components/curriculums/edit/curriculum-edit-top-bar.gts' ;
67
78export default <template >
8- <CurriculumEditView />
9- <CurriculumPreview />
9+ <div class =" flex flex-col" >
10+ <CurriculumEditTopBar />
11+ <div class =" flex flex-row" >
12+ <CurriculumEditView />
13+ <CurriculumPreview />
14+ </div >
15+ </div >
1016</template > as TOC <{
1117 model: Awaited <ReturnType <CurriculumsEdit [' model' ]>>;
1218 controller: undefined ;
You can’t perform that action at this time.
0 commit comments