Spaces:
Running
Running
thibaud frere
commited on
Commit
·
a7cd8c2
1
Parent(s):
fd3130d
update
Browse files
app/src/content/embeds/demo/content-structure.html
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
<div class="cs" role="img" aria-label="Content folder structure: MDX, assets, embeds">
|
| 2 |
<div class="cs__header">
|
| 3 |
-
<svg class="cs__folder" viewBox="0 0
|
| 4 |
-
<path d="
|
| 5 |
-
<rect x="
|
| 6 |
</svg>
|
| 7 |
<span class="cs__path">/app/src/content</span>
|
| 8 |
</div>
|
|
@@ -11,8 +11,11 @@
|
|
| 11 |
<div class="cs__box">
|
| 12 |
<div class="cs__box-head">
|
| 13 |
<svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
|
| 14 |
-
<rect x="
|
| 15 |
-
<path d="
|
|
|
|
|
|
|
|
|
|
| 16 |
</svg>
|
| 17 |
<span class="cs__label">MDX</span>
|
| 18 |
</div>
|
|
@@ -25,8 +28,8 @@
|
|
| 25 |
<div class="cs__box">
|
| 26 |
<div class="cs__box-head">
|
| 27 |
<svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
|
| 28 |
-
<path d="M6
|
| 29 |
-
<path d="M6
|
| 30 |
</svg>
|
| 31 |
<span class="cs__label">Bib</span>
|
| 32 |
</div>
|
|
@@ -37,8 +40,8 @@
|
|
| 37 |
<div class="cs__box">
|
| 38 |
<div class="cs__box-head">
|
| 39 |
<svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
|
| 40 |
-
<rect x="
|
| 41 |
-
<circle cx="8" cy="10" r="1.
|
| 42 |
<path d="M6 16l4-3 2 2 3-2-1 3H6z"/>
|
| 43 |
</svg>
|
| 44 |
<span class="cs__label">assets/</span>
|
|
@@ -53,8 +56,8 @@
|
|
| 53 |
<div class="cs__box">
|
| 54 |
<div class="cs__box-head">
|
| 55 |
<svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
|
| 56 |
-
<path d="
|
| 57 |
-
<path d="
|
| 58 |
</svg>
|
| 59 |
<span class="cs__label">embeds/</span>
|
| 60 |
</div>
|
|
@@ -75,6 +78,7 @@
|
|
| 75 |
background: var(--surface-bg);
|
| 76 |
color: var(--text-color);
|
| 77 |
padding: 10px 12px 12px;
|
|
|
|
| 78 |
}
|
| 79 |
.cs__header {
|
| 80 |
display: flex;
|
|
@@ -82,7 +86,19 @@
|
|
| 82 |
gap: 8px;
|
| 83 |
margin: 2px 0 10px 0;
|
| 84 |
}
|
| 85 |
-
.cs__folder {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
.cs__path { font-weight: 600; font-size: 14px; }
|
| 87 |
|
| 88 |
.cs__grid {
|
|
@@ -100,13 +116,46 @@
|
|
| 100 |
flex-direction: column;
|
| 101 |
min-height: 120px;
|
| 102 |
}
|
| 103 |
-
.cs__box-head {
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
-
@media (max-width: 1180px) {
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
</style>
|
| 112 |
|
|
|
|
| 1 |
<div class="cs" role="img" aria-label="Content folder structure: MDX, assets, embeds">
|
| 2 |
<div class="cs__header">
|
| 3 |
+
<svg class="cs__folder" viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet" aria-hidden="true">
|
| 4 |
+
<path d="M3 7h5l2 2h11"/>
|
| 5 |
+
<rect x="2" y="9" width="20" height="10" rx="2" ry="2"/>
|
| 6 |
</svg>
|
| 7 |
<span class="cs__path">/app/src/content</span>
|
| 8 |
</div>
|
|
|
|
| 11 |
<div class="cs__box">
|
| 12 |
<div class="cs__box-head">
|
| 13 |
<svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
|
| 14 |
+
<rect x="3" y="3" width="14" height="18" rx="2" ry="2"/>
|
| 15 |
+
<path d="M14 3l4 4h-4z"/>
|
| 16 |
+
<path d="M7 11l-2 2l2 2"/>
|
| 17 |
+
<path d="M13 11l2 2l-2 2"/>
|
| 18 |
+
<path d="M10 11v4"/>
|
| 19 |
</svg>
|
| 20 |
<span class="cs__label">MDX</span>
|
| 21 |
</div>
|
|
|
|
| 28 |
<div class="cs__box">
|
| 29 |
<div class="cs__box-head">
|
| 30 |
<svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
|
| 31 |
+
<path d="M6 5h10a2 2 0 0 1 2 2v12c-2-.9-4-1.6-6-1.6S8 18.1 6 19V7a2 2 0 0 1 2-2z"/>
|
| 32 |
+
<path d="M6 9h12"/>
|
| 33 |
</svg>
|
| 34 |
<span class="cs__label">Bib</span>
|
| 35 |
</div>
|
|
|
|
| 40 |
<div class="cs__box">
|
| 41 |
<div class="cs__box-head">
|
| 42 |
<svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
|
| 43 |
+
<rect x="3" y="5" width="18" height="14" rx="2" ry="2"/>
|
| 44 |
+
<circle cx="8" cy="10" r="1.4"/>
|
| 45 |
<path d="M6 16l4-3 2 2 3-2-1 3H6z"/>
|
| 46 |
</svg>
|
| 47 |
<span class="cs__label">assets/</span>
|
|
|
|
| 56 |
<div class="cs__box">
|
| 57 |
<div class="cs__box-head">
|
| 58 |
<svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
|
| 59 |
+
<path d="M9 16l-4-4l4-4"/>
|
| 60 |
+
<path d="M15 16l4-4l-4-4"/>
|
| 61 |
</svg>
|
| 62 |
<span class="cs__label">embeds/</span>
|
| 63 |
</div>
|
|
|
|
| 78 |
background: var(--surface-bg);
|
| 79 |
color: var(--text-color);
|
| 80 |
padding: 10px 12px 12px;
|
| 81 |
+
margin-bottom: var(--block-spacing-y);
|
| 82 |
}
|
| 83 |
.cs__header {
|
| 84 |
display: flex;
|
|
|
|
| 86 |
gap: 8px;
|
| 87 |
margin: 2px 0 10px 0;
|
| 88 |
}
|
| 89 |
+
.cs__folder {
|
| 90 |
+
width: 20px;
|
| 91 |
+
height: auto;
|
| 92 |
+
display: block;
|
| 93 |
+
flex: 0 0 auto;
|
| 94 |
+
stroke: var(--text-color);
|
| 95 |
+
fill: none;
|
| 96 |
+
stroke-width: 1.5;
|
| 97 |
+
stroke-linecap: round;
|
| 98 |
+
stroke-linejoin: round;
|
| 99 |
+
vector-effect: non-scaling-stroke;
|
| 100 |
+
shape-rendering: geometricPrecision;
|
| 101 |
+
}
|
| 102 |
.cs__path { font-weight: 600; font-size: 14px; }
|
| 103 |
|
| 104 |
.cs__grid {
|
|
|
|
| 116 |
flex-direction: column;
|
| 117 |
min-height: 120px;
|
| 118 |
}
|
| 119 |
+
.cs__box-head {
|
| 120 |
+
display: flex;
|
| 121 |
+
align-items: center;
|
| 122 |
+
gap: 8px;
|
| 123 |
+
margin-bottom: 8px;
|
| 124 |
+
}
|
| 125 |
+
.cs__icon {
|
| 126 |
+
width: 18px;
|
| 127 |
+
height: 18px;
|
| 128 |
+
display: block;
|
| 129 |
+
stroke: var(--text-color);
|
| 130 |
+
fill: none;
|
| 131 |
+
stroke-width: 1.5;
|
| 132 |
+
stroke-linecap: round;
|
| 133 |
+
stroke-linejoin: round;
|
| 134 |
+
vector-effect: non-scaling-stroke;
|
| 135 |
+
shape-rendering: geometricPrecision;
|
| 136 |
+
}
|
| 137 |
+
.cs__label {
|
| 138 |
+
font-weight: 700;
|
| 139 |
+
font-size: 13px;
|
| 140 |
+
}
|
| 141 |
+
.cs__items {
|
| 142 |
+
display: grid;
|
| 143 |
+
gap: 4px;
|
| 144 |
+
}
|
| 145 |
+
.cs__item {
|
| 146 |
+
font-size: 12px;
|
| 147 |
+
color: var(--muted-color);
|
| 148 |
+
}
|
| 149 |
|
| 150 |
+
@media (max-width: 1180px) {
|
| 151 |
+
.cs__grid {
|
| 152 |
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
@media (max-width: 620px) {
|
| 156 |
+
.cs__grid {
|
| 157 |
+
grid-template-columns: 1fr;
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
</style>
|
| 161 |
|