@yamatozhen/design_system 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,8 +37,8 @@ contents into your project:
37
37
  | `app/themes/` | Merged in the same way. |
38
38
  | `public/fonts/material-symbols/` | Merged in the same way (icon font used by `globals.css`). |
39
39
  | `app/globals.css` | **Replaced.** Your previous file is saved as `globals.css.bak`. |
40
- | `app/layout.tsx` | Copied in only if you don't already have one. If you do, it's written to `app/layout.design-system.tsx` instead so you can merge by hand. |
41
- | `app/ClientNav.tsx` | Same rule as `layout.tsx` — side-by-side `.design-system.tsx` copy if one already exists. |
40
+ | `app/layout.tsx` | **Replaced.** Your previous file is saved as `layout.tsx.bak`. |
41
+ | `app/ClientNav.tsx` | **Replaced.** Your previous file is saved as `ClientNav.tsx.bak`. |
42
42
 
43
43
  (If your project uses `src/app` instead of `app`, the script detects that and
44
44
  copies there instead.)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamatozhen/design_system",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Yamato Zhen personal design system — Nav system, layout/globals.css overrides, and shared components for Next.js App Router projects.",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,8 @@
21
21
  "README.md"
22
22
  ],
23
23
  "scripts": {
24
- "postinstall": "node scripts/postinstall.js"
24
+ "postinstall": "node scripts/postinstall.js",
25
+ "postversion": "git push && git push --tags"
25
26
  },
26
27
  "peerDependencies": {
27
28
  "next": ">=15",
@@ -47,15 +47,14 @@ function main() {
47
47
  path.join(appDir, "globals.css"),
48
48
  );
49
49
 
50
- // 3. layout.tsx + ClientNav.tsx — the root layout override. These usually
51
- // carry project-specific metadata/providers, so we never silently
52
- // overwrite an existing one. If present, drop a `.design-system.tsx`
53
- // sibling instead so it can be diffed/merged by hand.
54
- copyOrSideBySide(
50
+ // 3. layout.tsx + ClientNav.tsx — meant to fully replace the consumer's
51
+ // files, same as globals.css. Back up whatever was there first so
52
+ // nothing is silently lost.
53
+ replaceWithBackup(
55
54
  path.join(TEMPLATE, "app", "layout.tsx"),
56
55
  path.join(appDir, "layout.tsx"),
57
56
  );
58
- copyOrSideBySide(
57
+ replaceWithBackup(
59
58
  path.join(TEMPLATE, "app", "ClientNav.tsx"),
60
59
  path.join(appDir, "ClientNav.tsx"),
61
60
  );
@@ -84,19 +83,6 @@ function replaceWithBackup(src, dest) {
84
83
  log(`Replaced ${path.relative(process.cwd(), dest)}`);
85
84
  }
86
85
 
87
- function copyOrSideBySide(src, dest) {
88
- if (!fs.existsSync(src)) return;
89
- fs.mkdirSync(path.dirname(dest), { recursive: true });
90
- if (fs.existsSync(dest)) {
91
- const sideBySide = dest.replace(/\.tsx$/, ".design-system.tsx");
92
- fs.copyFileSync(src, sideBySide);
93
- log(`${path.basename(dest)} already exists — wrote ${path.basename(sideBySide)} for manual merge.`);
94
- } else {
95
- fs.copyFileSync(src, dest);
96
- log(`Added ${path.relative(process.cwd(), dest)}`);
97
- }
98
- }
99
-
100
86
  try {
101
87
  main();
102
88
  } catch (err) {
@@ -9,14 +9,6 @@ import "@fontsource/outfit/800.css";
9
9
  import ClientNav from "./ClientNav";
10
10
  import { MobileViewProvider } from "@/components/tools/mobileViewProvider";
11
11
  import LoadingScreen from "@/components/layout/pages/loadingScreen";
12
- {
13
- /*import Maintenance from "@/components/layout/pages/maintenance/Maintenance";*/
14
- }
15
-
16
- export const metadata: Metadata = {
17
- title: "Yamato Zhen",
18
- description: "Design. Code. Art. Explore Aedan's portfolio",
19
- };
20
12
 
21
13
  export default function RootLayout({
22
14
  children,
@@ -41,44 +33,7 @@ export default function RootLayout({
41
33
  crossOrigin="anonymous"
42
34
  />
43
35
 
44
- {/* Material Symbols Fonts
45
- <link
46
- href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=optional"
47
- rel="stylesheet"
48
- /> */}
49
- <meta
50
- name="description"
51
- content="Explore Aedan’s portfolio — blending design, art, and engineering to craft bold experiences."
52
- />
53
- <meta
54
- name="keywords"
55
- content="UI/UX, digital art, frontend, design portfolio, creative technologist"
56
- />
57
- <meta name="author" content="Aedan" />
58
-
59
- <meta
60
- property="og:title"
61
- content="Aedan – UI/UX Designer, Digital Artist, Frontend Engineer"
62
- />
63
- <meta
64
- property="og:description"
65
- content="Design. Code. Art. Explore Aedan's portfolio."
66
- />
67
- <meta property="og:image" content="/preview.png" />
68
- <meta property="og:url" content="https://yamatozhen.com" />
69
-
70
- <meta name="twitter:card" content="summary_large_image" />
71
- <meta name="twitter:title" content="Aedan – Portfolio" />
72
- <meta
73
- name="twitter:description"
74
- content="Interfaces that wow. Code that works."
75
- />
76
- <meta name="twitter:image" content="/preview.png" />
77
-
78
- <title>
79
- Yamato Zhen | UI/UX Designer, Digital Artist & Frontend Engineer
80
- Portfolio
81
- </title>
36
+ <title>Sample Test Design System</title>
82
37
 
83
38
  {/* Blocking theme script — runs before first paint to avoid FOUC.
84
39
  Reads localStorage and stamps the correct palette class on <html>
@@ -121,7 +76,6 @@ export default function RootLayout({
121
76
  <MobileViewProvider>
122
77
  <ClientNav>{children}</ClientNav>
123
78
  </MobileViewProvider>
124
- {/*<Maintenance />*/}
125
79
  </body>
126
80
  </html>
127
81
  );
@@ -55,11 +55,6 @@ export type NavHeaderTabProps = {
55
55
  label: string;
56
56
  /** Route pushed when the tab has no mega-menu children. Also used for active match. */
57
57
  path?: string;
58
- /**
59
- * Extra route(s) that count as "this tab is active" — for section tabs whose
60
- * sub-pages live elsewhere (e.g. Portfolio active on /projects, /gallery).
61
- * Exact or prefix match ("/x" matches "/x" and "/x/...").
62
- */
63
58
  match?: string | string[];
64
59
  /** Mega-menu content. Having children turns the tab into a menu opener. */
65
60
  children?: React.ReactNode;
@@ -1,88 +0,0 @@
1
- export function ArtStationIcon({ size = 24 }: { size?: number }) {
2
- return (
3
- <svg
4
- width={size}
5
- height={size}
6
- viewBox="0 0 32 32"
7
- xmlns="http://www.w3.org/2000/svg"
8
- fill="currentColor"
9
- aria-hidden="true"
10
- >
11
- <path d="M 13.730469 5 L 26 27 L 27.994141 22.488281 C 28.457141 21.562281 28.410094 20.463078 27.871094 19.580078 L 20.095703 6.4355469 C 19.550703 5.5445469 18.580156 5 17.535156 5 L 13.730469 5 z M 11.511719 7.1777344 L 5.6308594 18 L 17.546875 18 L 11.511719 7.1777344 z M 4 21 L 6.171875 25.341797 C 6.679875 26.357797 7.7175156 27 8.8535156 27 L 22.566406 27 L 19.220703 21 L 4 21 z" />
12
- </svg>
13
- );
14
- }
15
-
16
- export function InstagramIcon({ size = 24 }: { size?: number }) {
17
- return (
18
- <svg
19
- width={size}
20
- height={size}
21
- viewBox="3 2.5 19 19"
22
- fill="none"
23
- xmlns="http://www.w3.org/2000/svg"
24
- aria-hidden="true"
25
- >
26
- <path
27
- fillRule="evenodd"
28
- clipRule="evenodd"
29
- d="M15.5 5H9.5C7.29086 5 5.5 6.79086 5.5 9V15C5.5 17.2091 7.29086 19 9.5 19H15.5C17.7091 19 19.5 17.2091 19.5 15V9C19.5 6.79086 17.7091 5 15.5 5Z"
30
- stroke="currentColor"
31
- strokeWidth="1.3"
32
- strokeLinecap="round"
33
- strokeLinejoin="round"
34
- />
35
- <path
36
- fillRule="evenodd"
37
- clipRule="evenodd"
38
- d="M12.5 15C10.8431 15 9.5 13.6569 9.5 12C9.5 10.3431 10.8431 9 12.5 9C14.1569 9 15.5 10.3431 15.5 12C15.5 12.7956 15.1839 13.5587 14.6213 14.1213C14.0587 14.6839 13.2956 15 12.5 15Z"
39
- stroke="currentColor"
40
- strokeWidth="1.3"
41
- strokeLinecap="round"
42
- strokeLinejoin="round"
43
- />
44
- <rect
45
- x="15.5"
46
- y="9"
47
- width="2"
48
- height="2"
49
- rx="1"
50
- transform="rotate(-90 15.5 9)"
51
- fill="currentColor"
52
- />
53
- <rect
54
- x="16"
55
- y="8.5"
56
- width="1"
57
- height="1"
58
- rx="0.5"
59
- transform="rotate(-90 16 8.5)"
60
- stroke="currentColor"
61
- strokeLinecap="round"
62
- />
63
- </svg>
64
- );
65
- }
66
-
67
- export function DiscordIcon({ size = 24 }: { size?: number }) {
68
- return (
69
- <svg
70
- width={size}
71
- height={size}
72
- viewBox="9.7 9.6 174.6 172.8"
73
- xmlns="http://www.w3.org/2000/svg"
74
- fill="none"
75
- aria-hidden="true"
76
- >
77
- <path
78
- stroke="currentColor"
79
- strokeLinecap="round"
80
- strokeLinejoin="round"
81
- strokeWidth="11"
82
- d="m68 138-8 16c-10.19-4.246-20.742-8.492-31.96-15.8-3.912-2.549-6.284-6.88-6.378-11.548-.488-23.964 5.134-48.056 19.369-73.528 1.863-3.334 4.967-5.778 8.567-7.056C58.186 43.02 64.016 40.664 74 39l6 11s6-2 16-2 16 2 16 2l6-11c9.984 1.664 15.814 4.02 24.402 7.068 3.6 1.278 6.704 3.722 8.567 7.056 14.235 25.472 19.857 49.564 19.37 73.528-.095 4.668-2.467 8.999-6.379 11.548-11.218 7.308-21.769 11.554-31.96 15.8l-8-16m-68-8s20 10 40 10 40-10 40-10"
83
- />
84
- <ellipse cx="71" cy="101" fill="currentColor" rx="13" ry="15" />
85
- <ellipse cx="121" cy="101" fill="currentColor" rx="13" ry="15" />
86
- </svg>
87
- );
88
- }