@nabilabs/create-builder 0.1.0

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.
@@ -0,0 +1,92 @@
1
+ :root {
2
+ font-family:
3
+ Inter,
4
+ ui-sans-serif,
5
+ system-ui,
6
+ -apple-system,
7
+ BlinkMacSystemFont,
8
+ "Segoe UI",
9
+ sans-serif;
10
+ color: #eaf2ff;
11
+ background: #061225;
12
+ font-synthesis: none;
13
+ text-rendering: optimizeLegibility;
14
+ }
15
+
16
+ * {
17
+ box-sizing: border-box;
18
+ }
19
+
20
+ html {
21
+ min-width: 320px;
22
+ scroll-behavior: smooth;
23
+ }
24
+
25
+ body {
26
+ min-width: 320px;
27
+ margin: 0;
28
+ background:
29
+ radial-gradient(
30
+ circle at 14% 8%,
31
+ rgba(32, 114, 255, 0.2),
32
+ transparent 31rem
33
+ ),
34
+ radial-gradient(
35
+ circle at 88% 20%,
36
+ rgba(0, 209, 255, 0.09),
37
+ transparent 28rem
38
+ ),
39
+ #061225;
40
+ }
41
+
42
+ body::before {
43
+ position: fixed;
44
+ z-index: -1;
45
+ inset: 0;
46
+ background-image:
47
+ linear-gradient(rgba(133, 177, 255, 0.045) 1px, transparent 1px),
48
+ linear-gradient(90deg, rgba(133, 177, 255, 0.045) 1px, transparent 1px);
49
+ background-size: 48px 48px;
50
+ content: "";
51
+ mask-image: linear-gradient(to bottom, black, transparent 78%);
52
+ pointer-events: none;
53
+ }
54
+
55
+ a {
56
+ color: inherit;
57
+ }
58
+
59
+ button,
60
+ a {
61
+ -webkit-tap-highlight-color: transparent;
62
+ }
63
+
64
+ .shell {
65
+ width: min(1120px, calc(100% - 40px));
66
+ margin-inline: auto;
67
+ }
68
+
69
+ .eyebrow {
70
+ display: inline-flex;
71
+ align-items: center;
72
+ gap: 8px;
73
+ margin: 0 0 18px;
74
+ color: #72b0ff;
75
+ font-size: 12px;
76
+ font-weight: 750;
77
+ letter-spacing: 0.14em;
78
+ text-transform: uppercase;
79
+ }
80
+
81
+ .eyebrow::before {
82
+ width: 22px;
83
+ height: 1px;
84
+ background: currentColor;
85
+ content: "";
86
+ }
87
+
88
+ @media (max-width: 680px) {
89
+ .shell {
90
+ width: min(100% - 28px, 1120px);
91
+ }
92
+ }
@@ -0,0 +1,55 @@
1
+ html,
2
+ body {
3
+ overflow-x: clip;
4
+ overscroll-behavior-y: none;
5
+ scroll-behavior: smooth;
6
+ overflow-anchor: none;
7
+ -webkit-overflow-scrolling: touch;
8
+ }
9
+
10
+ :root {
11
+ font-family: Inter, ui-sans-serif, system-ui, sans-serif;
12
+ }
13
+
14
+ *,
15
+ *::before,
16
+ *::after {
17
+ box-sizing: border-box;
18
+ margin: 0;
19
+ padding: 0;
20
+ border: none;
21
+ }
22
+
23
+ a,
24
+ input,
25
+ label,
26
+ button,
27
+ [role="button"] {
28
+ cursor: pointer;
29
+ -webkit-tap-highlight-color: transparent;
30
+ }
31
+
32
+ a,
33
+ img,
34
+ label,
35
+ button,
36
+ [role="button"] {
37
+ background: none;
38
+ color: inherit;
39
+ user-select: none;
40
+ -webkit-user-drag: none;
41
+ }
42
+
43
+ svg,
44
+ img {
45
+ display: block;
46
+ height: auto;
47
+ width: 100%;
48
+ pointer-events: none;
49
+ }
50
+
51
+ @media (hover: hover) {
52
+ a:hover:not(:active) {
53
+ color: unset;
54
+ }
55
+ }
@@ -0,0 +1,6 @@
1
+ <footer class="footer">
2
+ <div class="footer__inner shell">
3
+ <p>Two pages. Shared UI. Plain HTML output.</p>
4
+ <span>{{projectName}} · Nabi Builder</span>
5
+ </div>
6
+ </footer>
@@ -0,0 +1,26 @@
1
+ .footer {
2
+ padding: 30px 0 36px;
3
+ color: #6f89ae;
4
+ font-size: 13px;
5
+ }
6
+
7
+ .footer__inner {
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-between;
11
+ gap: 20px;
12
+ padding-top: 22px;
13
+ border-top: 1px solid rgba(135, 177, 255, 0.12);
14
+ }
15
+
16
+ .footer p {
17
+ margin: 0;
18
+ }
19
+
20
+ @media (max-width: 620px) {
21
+ .footer__inner {
22
+ align-items: flex-start;
23
+ flex-direction: column;
24
+ gap: 8px;
25
+ }
26
+ }
@@ -0,0 +1,29 @@
1
+ ---
2
+ title
3
+ description
4
+ canonical
5
+ shortcut
6
+ image
7
+ ---
8
+
9
+ <head>
10
+ <meta charset="UTF-8" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
12
+
13
+ <title>{{title}}</title>
14
+ <meta name="description" content="{{description}}" />
15
+ <meta name="referrer" content="no-referrer-when-downgrade" />
16
+ <link rel="canonical" href="{{canonical}}" />
17
+ <link rel="shortcut icon" href="@assets/shortcut.svg" />
18
+
19
+ <meta property="og:url" content="{{canonical}}" />
20
+ <meta property="og:type" content="website" />
21
+ <meta property="og:title" content="{{title}}" />
22
+ <meta property="og:site_name" content="{{title}}" />
23
+ <meta property="og:description" content="{{description}}" />
24
+ <meta property="og:image" content="{{image}}" />
25
+ <meta property="og:locale" content="en" />
26
+ <meta name="twitter:card" content="summary_large_image" />
27
+
28
+ <slot />
29
+ </head>
@@ -0,0 +1,17 @@
1
+ ---
2
+ active: home | about
3
+ ---
4
+
5
+ <header class="header" data-active="{{active}}">
6
+ <div class="header__inner shell">
7
+ <a class="brand" href="/" aria-label="{{projectName}} home">
8
+ <img src="@assets/mark.svg" alt width="34" height="34" />
9
+ <span>{{projectName}}</span>
10
+ </a>
11
+
12
+ <nav class="nav" aria-label="Primary navigation">
13
+ <a class="nav__link nav__link--home" href="/">Home</a>
14
+ <a class="nav__link nav__link--about" href="/about">About</a>
15
+ </nav>
16
+ </div>
17
+ </header>
@@ -0,0 +1,67 @@
1
+ .header {
2
+ padding: 22px 0;
3
+ }
4
+
5
+ .header__inner {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+ gap: 24px;
10
+ }
11
+
12
+ .brand {
13
+ display: inline-flex;
14
+ align-items: center;
15
+ gap: 10px;
16
+ font-weight: 760;
17
+ letter-spacing: -0.025em;
18
+ text-decoration: none;
19
+ }
20
+
21
+ .brand img {
22
+ display: block;
23
+ }
24
+
25
+ .nav {
26
+ display: flex;
27
+ align-items: center;
28
+ padding: 5px;
29
+ gap: 6px;
30
+ border: 1px solid rgba(135, 177, 255, 0.12);
31
+ border-radius: 999px;
32
+ backdrop-filter: blur(16px);
33
+ background: rgba(8, 28, 57, 0.56);
34
+ }
35
+
36
+ .nav__link {
37
+ padding: 9px 14px;
38
+ border-radius: 999px;
39
+ color: #8ea6c8;
40
+ font-weight: 650;
41
+ font-size: 14px;
42
+ text-decoration: none;
43
+ transition:
44
+ color 160ms ease,
45
+ background 160ms ease;
46
+ }
47
+
48
+ .nav__link:hover {
49
+ color: #f3f8ff;
50
+ }
51
+
52
+ .header[data-active="home"] .nav__link--home,
53
+ .header[data-active="about"] .nav__link--about {
54
+ background: #1769e8;
55
+ box-shadow: 0 8px 24px rgba(23, 105, 232, 0.28);
56
+ color: #ffffff;
57
+ }
58
+
59
+ @media (max-width: 520px) {
60
+ .brand span {
61
+ display: none;
62
+ }
63
+
64
+ .header {
65
+ padding-top: 16px;
66
+ }
67
+ }
@@ -0,0 +1,14 @@
1
+ /** @type {import("stylelint").Config} */
2
+ export default {
3
+ extends: ["stylelint-config-standard"],
4
+ rules: {
5
+ "alpha-value-notation": null,
6
+ "color-function-alias-notation": null,
7
+ "color-function-notation": null,
8
+ "color-hex-length": null,
9
+ "font-family-name-quotes": null,
10
+ "media-feature-range-notation": null,
11
+ "selector-class-pattern": null,
12
+ "value-keyword-case": null,
13
+ },
14
+ };