Skip to content

Commit 0775c5f

Browse files
committed
feat: new project template
1 parent 0cd481e commit 0775c5f

12 files changed

+110
-104
lines changed

src/content/projects/index.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import {projectInfo} from "../../components/vertical-nav/info-project.ts";
33
import {renderBreadcrumbs, renderNavInfo} from "../../components/vertical-nav";
44
import {createThumbnail} from "../../components/thumbnail";
55
import {BreadcrumbCategory, breadcrumbs, BreadcrumbsLink} from "../../components/breadcrumbs";
6+
import {interactiveView} from "../../views/interactive.ts";
67

78
import * as spaceCompass from "./space-compass";
89
import * as nextUx from "./next-ux";
9-
import {interactiveView} from "../../views/interactive.ts";
10-
1110

1211

1312
const pageReferences: { [key: string]: any } = {
@@ -26,10 +25,11 @@ export function buildProjectPage(pageReference: string) {
2625
console.error(`Project page reference "${pageReference}" not found.`);
2726
return;
2827
}
29-
const viewContent = projectView(page!.content);
30-
const navInfo = projectInfo(page!.buttons, page!.techs);
28+
const { content, techs, buttons } = page;
29+
const viewContent = projectView(content);
30+
const navInfo = projectInfo(buttons, techs);
3131

32-
renderBreadcrumbs(breadcrumbs(trackBreadcrumbs(page!.content.title)));
32+
renderBreadcrumbs(breadcrumbs(trackBreadcrumbs(content.title)));
3333
renderNavInfo(navInfo);
3434
renderView(viewContent);
3535
}
@@ -45,7 +45,8 @@ export function buildThumbnailList() {
4545
const list = document.createElement('ul');
4646

4747
Object.values(pageReferences).forEach((page: any) => {
48-
const item = createThumbnail(page.thumbnail, false);
48+
const { thumbnail } = page;
49+
const item = createThumbnail(thumbnail, false);
4950
list.appendChild(item);
5051
});
5152

Lines changed: 29 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import {ProjectContent} from "../../../views/project-view/";
2-
import {ButtonLink} from "../../../components/vertical-nav/info-project.ts";
3-
import {thumbnailContent} from "../../../components/thumbnail";
1+
import {createProjectContent} from "../template.ts";
42

5-
import WEBM_VIDEO from "./assets/next-ux-showcase.webm";
6-
import MP4_VIDEO from "./assets/next-ux-showcase.mp4";
3+
import SHOWCASE_WEBM from "./assets/next-ux-showcase.webm";
4+
import SHOWCASE_MP4 from "./assets/next-ux-showcase.mp4";
75

86
import SCREENSHOT_1 from "./assets/next-ux-screenshot-1.jpg"
97
import SCREENSHOT_2 from "./assets/next-ux-screenshot-2.jpg"
@@ -12,45 +10,37 @@ import SCREENSHOT_4 from "./assets/next-ux-screenshot-4.jpg"
1210

1311
import THUMBNAIL from "./assets/next-ux-thumbnail.jpg";
1412

15-
export const content: ProjectContent = {
16-
title: "Next UX",
17-
subtitle: "web app ux / ui - 2021",
18-
19-
tagline: "Clear Workflows ",
20-
paragraphs: [
21-
"Complete overhaul of Voxco's product line, including a redesigned user flow and interface."
22-
],
13+
//-----------------------------------------------------------------------
2314

24-
heroVideo: [
25-
WEBM_VIDEO,
26-
MP4_VIDEO
15+
export const {content, techs, buttons, thumbnail} = createProjectContent(
16+
"Next Ux", // Title
17+
"web app ux & ui - 2021", // Subtitle
18+
"Clear Workflows", // Tagline
19+
20+
// Paragraphs
21+
[
22+
"Complete overhaul of Voxco's product line, including a redesigned user flow and interface."
2723
],
2824

29-
imageGallery: [
30-
SCREENSHOT_1,
31-
SCREENSHOT_2,
32-
SCREENSHOT_3,
33-
SCREENSHOT_4
34-
]
35-
}
25+
// Medias
26+
[SHOWCASE_WEBM, SHOWCASE_MP4],
27+
[SCREENSHOT_1, SCREENSHOT_2, SCREENSHOT_3, SCREENSHOT_4],
3628

37-
export const buttons: ButtonLink[] = [
29+
// Techs Used
3830
[
39-
"INSERT",
40-
"INSERT URL",
41-
true
31+
{technology: "React", percentage: 30},
32+
{technology: "Blazor", percentage: 40},
33+
{technology: "Adobe XD", percentage: 80}
4234
],
35+
36+
//Buttons
4337
[
44-
"INSERT",
45-
"INSERT URL",
46-
false
38+
["LABEL", "LINK", true],
39+
["LABEL", "LINK", false]
4740
],
48-
]
49-
50-
export const thumbnail: thumbnailContent = {
51-
thumbnail: THUMBNAIL,
52-
title: content.title,
53-
description: "INSERT",
54-
tags: ["INSERT", "INSERT"],
55-
path: "next-ux"
56-
}
41+
42+
// Thumbnail
43+
THUMBNAIL,
44+
["TAG", "TAG"],
45+
"next-ux"
46+
);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)