Skip to content

Commit 555dce5

Browse files
committed
Initial Changes
0 parents  commit 555dce5

File tree

189 files changed

+17000
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+17000
-0
lines changed

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Nuxt dev/build outputs
2+
.output
3+
.data
4+
.nuxt
5+
.nitro
6+
.cache
7+
dist
8+
9+
# Node dependencies
10+
node_modules
11+
12+
# Logs
13+
logs
14+
*.log
15+
16+
# Misc
17+
.DS_Store
18+
.fleet
19+
.idea
20+
21+
# Local env files
22+
.env
23+
.env.*
24+
!.env.example

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Directus Docs

app/app.vue

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<script setup lang="ts">
2+
import { ConfigProvider } from 'radix-vue';
3+
4+
const site = useSiteConfig();
5+
6+
// Base HTML Head Configuration
7+
useHead({
8+
meta: [
9+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
10+
],
11+
link: [
12+
{ rel: 'icon', href: '/favicon.ico' },
13+
],
14+
htmlAttrs: {
15+
lang: 'en',
16+
},
17+
});
18+
19+
// Base SEO Configuration
20+
useSeoMeta({
21+
titleTemplate: `%s - ${site.name}`,
22+
ogSiteName: site.name,
23+
twitterCard: 'summary_large_image',
24+
});
25+
26+
const useIdFunction = () => useId();
27+
</script>
28+
29+
<template>
30+
<ConfigProvider :use-id="useIdFunction">
31+
<NuxtLayout>
32+
<NuxtPage />
33+
</NuxtLayout>
34+
</ConfigProvider>
35+
</template>

app/assets/css/_reset.scss

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
*,
2+
*::before,
3+
*::after {
4+
box-sizing: border-box;
5+
}
6+
7+
* {
8+
margin: 0;
9+
}
10+
11+
body {
12+
line-height: 1.5;
13+
-webkit-font-smoothing: antialiased;
14+
}
15+
16+
img,
17+
picture,
18+
video,
19+
canvas,
20+
svg {
21+
display: block;
22+
max-width: 100%;
23+
}
24+
25+
input,
26+
button,
27+
textarea,
28+
select {
29+
font: inherit;
30+
}
31+
32+
p,
33+
h1,
34+
h2,
35+
h3,
36+
h4,
37+
h5,
38+
h6 {
39+
overflow-wrap: break-word;
40+
}

app/assets/css/_vars.scss

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Poppins:wght@400;500;600;700&display=swap');
2+
3+
:root {
4+
--purple--light-3: #E0DAFF;
5+
--purple--light-2: #C2B4FF;
6+
--purple--light-1: #947CFF;
7+
--purple: #6644ff;
8+
--purple--dark-1: #4C2DDB;
9+
--purple--dark-2: #201262;
10+
11+
--pink--light-3: #FFEBF8;
12+
--pink--light-2: #FFD6F1;
13+
--pink--light-1: #FFB8E7;
14+
--pink: #ff99dd;
15+
--pink--dark-1: #D064AC;
16+
--pink--dark-2: #4F133B;
17+
18+
--blue--light-3: #DAEBFC;
19+
--blue--light-2: #B3D7F9;
20+
--blue--light-1: #8FC4F7;
21+
--blue: #68B0F4;
22+
--blue--dark-1: #5A93C8;
23+
--blue--dark-2: #4B769B;
24+
25+
--green--light-3: #E6FAF5;
26+
--green--light-2: #7FE3CA;
27+
--green--light-1: #40D6B1;
28+
--green: #01C897;
29+
--green--dark-1: #08A582;
30+
--green--dark-2: #17826D;
31+
32+
--yellow--light-3: #FEF0D3;
33+
--yellow--light-2: #FDE2A7;
34+
--yellow--light-1: #FCD37B;
35+
--yellow: #FBC54E;
36+
--yellow--dark-1: #C8A34B;
37+
--yellow--dark-2: #948049;
38+
39+
--red--light-3: #FDEEF0;
40+
--red--light-2: #F0A7B3;
41+
--red--light-1: #EA7D8F;
42+
--red: #E35169;
43+
--red--dark-1: #B64C5F;
44+
--red--dark-2: #884756;
45+
46+
--typography-1: #19212C;
47+
--typography-2: #8196B0;
48+
--typography-3: #BECBDC;
49+
--typography--dark-1: #FAFBFC;
50+
--typography--dark--2: #F6F8FA;
51+
--typography--dark--3: #ECF0F5;
52+
53+
--bg: white;
54+
--bg-2: #F7FAFC;
55+
--bg-3: #F0F4F9;
56+
--bg--dark: #18222F;
57+
--bg--dark-2: #172940;
58+
--bg--dark-3: #263B56;
59+
60+
--border: #F0F4F9;
61+
--border-2: #D3DAE4;
62+
--border-3: #A2B5CD;
63+
64+
--font--body: 'IBM Plex Sans', sans-serif;
65+
--font--header: 'Poppins', sans-serif;
66+
--font--code: 'IBM Plex Mono', monospace;
67+
68+
--primary: var(--purple);
69+
--primary--light: var(--purple--light-1);
70+
--primary--dark: var(--purple--dark-1);
71+
--secondary: var(--pink);
72+
--secondary--light: var(--pink--light-1);
73+
--secondary--dark: var(--pink--dark-1);
74+
--typography: var(--typography-1);
75+
--typography--subdued: var(--typography-2);
76+
--typography--subtle: var(--typography-3);
77+
--background: var(--bg);
78+
--background--subdued: var(--bg-2);
79+
--background--subtle: var(--bg-3);
80+
81+
82+
--width-md: 768px;
83+
--width-lg: 1024px;
84+
--width-xl: 1280px;
85+
--width-2xl: 1440px;
86+
--max-width: var(--width-2xl);
87+
88+
--sidebar-width: 280px;
89+
--page-padding: 24px;
90+
--border-radius: 6px;
91+
--nav-spacing-under: 4rem;
92+
93+
--nav-font: 14px;
94+
--nav-padding: 8px;
95+
96+
--section--dev-docs: var(--purple);
97+
--section--api-reference: var(--green);
98+
--section--tutorials: var(--pink);
99+
--section--cloud: var(--blue);
100+
--section--community: var(--red);
101+
}

app/assets/css/main.scss

+132
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
@use 'reset';
2+
@use 'vars';
3+
4+
body {
5+
font-family: var(--font--body);
6+
color: var(--typography-1);
7+
}
8+
9+
a {
10+
text-decoration: underline;
11+
color: inherit;
12+
}
13+
14+
h1,
15+
h2,
16+
h3,
17+
h4 {
18+
font-family: var(--font--header);
19+
font-weight: 600;
20+
& a {
21+
text-decoration: none;
22+
}
23+
}
24+
25+
code,
26+
pre {
27+
font-family: var(--font--code);
28+
}
29+
30+
.container {
31+
max-width: var(--max-width);
32+
padding: 0 var(--page-padding);
33+
margin-left: auto;
34+
margin-right: auto;
35+
}
36+
37+
.container .container {
38+
padding-left: 0;
39+
padding-right: 0;
40+
}
41+
42+
.prose {
43+
line-height: 1.9;
44+
h1 {
45+
font-size: 2rem;
46+
}
47+
> h2,
48+
h2.header-with-badge {
49+
margin-top: 3rem;
50+
}
51+
h3 {
52+
margin-top: 2rem;
53+
}
54+
> h2 + h3 {
55+
margin-top: 1rem;
56+
}
57+
h1, h2, h3, h4 {
58+
margin-bottom: 0.3rem;
59+
code {
60+
font-size: 1.1rem;
61+
}
62+
}
63+
p, img, ul, ol, table, .TabsRoot {
64+
margin-bottom: 1rem;
65+
}
66+
.box, .directus-cloud, .callout, .prose-pre {
67+
margin-bottom: 1.5rem;
68+
margin-top: 1.5rem;
69+
}
70+
ul, ol {
71+
ul, ol {
72+
margin-top: 0.5rem;
73+
}
74+
}
75+
a:not(.callout):not([href*='directus.io']):not([href*='directus.cloud']):not([href*='localhost']):not([href*='127.0.0.1'])[href*='//']{
76+
display: inline-block;
77+
&:after {
78+
--size: 1rem;
79+
content: '';
80+
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0ibTE2IDguNGwtOC45IDguOXEtLjI3NS4yNzUtLjcuMjc1dC0uNy0uMjc1dC0uMjc1LS43dC4yNzUtLjdMMTQuNiA3SDdxLS40MjUgMC0uNzEyLS4yODhUNiA2dC4yODgtLjcxMlQ3IDVoMTBxLjQyNSAwIC43MTMuMjg4VDE4IDZ2MTBxMCAuNDI1LS4yODguNzEzVDE3IDE3dC0uNzEyLS4yODhUMTYgMTZ6Ii8+PC9zdmc+');
81+
display: inline-block;
82+
background-size: var(--size);
83+
width: var(--size);
84+
height: var(--size);
85+
}
86+
}
87+
img {
88+
border-radius: var(--border-radius);
89+
display: block;
90+
width: 100%;
91+
}
92+
code {
93+
background: var(--background--subtle);
94+
font-size: 0.8rem;
95+
padding: 0rem 0.2rem;
96+
border-radius: 4px;
97+
border: 1px solid var(--border-2);
98+
}
99+
pre code {
100+
font-weight: normal;
101+
background: inherit;
102+
padding: 0;
103+
border-radius: 0;
104+
border: none;
105+
}
106+
table, td, th {
107+
border: 1px solid var(--border-2);
108+
border-collapse: collapse;
109+
text-align: left;
110+
}
111+
table {
112+
width: 100%;
113+
border-radius: var(--border-radius);
114+
}
115+
th {
116+
font-weight: bold;
117+
background: var(--bg-2);
118+
}
119+
td, th {
120+
padding: 0.5rem 0.75rem;
121+
}
122+
svg.icon {
123+
margin-bottom: 4px;
124+
}
125+
}
126+
127+
.section-title {
128+
color: var(--typography--subdued);
129+
text-transform: uppercase;
130+
font-size: var(--nav-font);
131+
font-weight: 500;
132+
}
+3
Loading

app/assets/icons/frameworks/apple.svg

+3
Loading

app/assets/icons/frameworks/astro.svg

+4
Loading

app/assets/icons/frameworks/next.svg

+3
Loading

app/assets/icons/frameworks/nuxt.svg

+3
Loading

app/assets/icons/frameworks/react.svg

+4
Loading

app/assets/icons/frameworks/remix.svg

+4
Loading
+3
Loading

app/assets/icons/frameworks/vue.svg

+4
Loading

0 commit comments

Comments
 (0)