File size: 4,226 Bytes
9d8447d
 
a7cd8c2
b27e0a3
 
9d8447d
 
 
 
 
 
 
 
a7cd8c2
 
 
 
 
9d8447d
 
 
 
 
 
 
 
 
 
 
 
a7cd8c2
 
9d8447d
 
 
 
 
 
 
 
 
 
a7cd8c2
 
9d8447d
 
 
 
 
 
 
 
 
 
 
 
 
 
a7cd8c2
 
9d8447d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a7cd8c2
9d8447d
 
 
 
 
 
 
a7cd8c2
 
 
 
 
 
 
 
 
 
 
 
 
9d8447d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a7cd8c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9d8447d
a7cd8c2
 
 
 
 
 
 
 
 
 
9d8447d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<div class="cs" role="img" aria-label="Content folder structure: MDX, assets, embeds">
  <div class="cs__header">
    <svg class="cs__folder" viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet" aria-hidden="true">
      <path d="M4 7h4.5l1.8 2H20"/>
      <rect x="4" y="9" width="16" height="10" rx="2" ry="2"/>
    </svg>
    <span class="cs__path">/app/src/content</span>
  </div>

  <div class="cs__grid">
    <div class="cs__box">
      <div class="cs__box-head">
        <svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
          <rect x="3" y="3" width="14" height="18" rx="2" ry="2"/>
          <path d="M14 3l4 4h-4z"/>
          <path d="M7 11l-2 2l2 2"/>
          <path d="M13 11l2 2l-2 2"/>
          <path d="M10 11v4"/>
        </svg>
        <span class="cs__label">MDX</span>
      </div>
      <div class="cs__items">
        <div class="cs__item">article.mdx</div>
        <div class="cs__item"><a href="#chapters">chapters/</a>*.mdx</div>
      </div>
    </div>

    <div class="cs__box">
      <div class="cs__box-head">
        <svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
          <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"/>
          <path d="M6 9h12"/>
        </svg>
        <span class="cs__label">Bib</span>
      </div>
      <div class="cs__items">
        <div class="cs__item">bibliography.bib</div>
      </div>
    </div>
    <div class="cs__box">
      <div class="cs__box-head">
        <svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
          <rect x="3" y="5" width="18" height="14" rx="2" ry="2"/>
          <circle cx="8" cy="10" r="1.4"/>
          <path d="M6 16l4-3 2 2 3-2-1 3H6z"/>
        </svg>
        <span class="cs__label">assets/</span>
      </div>
      <div class="cs__items">
        <div class="cs__item">audio/</div>
        <div class="cs__item">image/</div>
        <div class="cs__item">data/</div>
      </div>
    </div>

    <div class="cs__box">
      <div class="cs__box-head">
        <svg class="cs__icon" viewBox="0 0 24 24" aria-hidden="true">
          <path d="M9 16l-4-4l4-4"/>
          <path d="M15 16l4-4l-4-4"/>
        </svg>
        <span class="cs__label">embeds/</span>
      </div>
      <div class="cs__items">
        <div class="cs__item"><a href="#htmlembed">*.html</a></div>
      </div>
    </div>
    
  </div>
</div>

<style>
  .cs {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-bg);
    color: var(--text-color);
    padding: 10px 12px 12px;
    margin-bottom: var(--block-spacing-y);
  }
  .cs__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 10px 0;
  }
  .cs__folder {
    width: 20px;
    height: auto;
    display: block;
    flex: 0 0 auto;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
  }
  .cs__path { font-weight: 600; font-size: 14px; }

  .cs__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .cs__box {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--surface-bg);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    min-height: 120px;
  }
  .cs__box-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }
  .cs__icon {
    width: 18px;
    height: 18px;
    display: block;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
  }
  .cs__label {
    font-weight: 700;
    font-size: 13px;
  }
  .cs__items {
    display: grid;
    gap: 4px;
  }
  .cs__item {
    font-size: 12px;
    color: var(--muted-color);
  }

  @media (max-width: 1180px) {
    .cs__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 620px) {
    .cs__grid {
      grid-template-columns: 1fr;
    }
  }
</style>