Skip to content

Commit a04c8cd

Browse files
committed
site: refresh official v2.7 landing experience
1 parent 10cca8f commit a04c8cd

14 files changed

Lines changed: 2606 additions & 517 deletions

vix-site/src/components/common/CommandLine.vue

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async function copy() {
129129
display: flex;
130130
align-items: center;
131131
gap: 0.65rem;
132-
padding: 0.65rem 0.85rem;
132+
padding: 0.5rem 0.85rem;
133133
border-radius: var(--radius-md);
134134
border: 1px solid var(--line-ink);
135135
background: var(--bg-ink);
@@ -226,4 +226,38 @@ async function copy() {
226226
pointer-events: auto;
227227
}
228228
}
229+
@media (max-width: 640px) {
230+
.cmd {
231+
width: 100%;
232+
max-width: 100%;
233+
box-sizing: border-box;
234+
overflow: hidden;
235+
padding: 0.7rem 3.1rem 0.7rem 0.9rem;
236+
}
237+
238+
.cmd__code {
239+
display: block;
240+
min-width: 0;
241+
overflow-x: auto;
242+
white-space: nowrap;
243+
scrollbar-width: none;
244+
}
245+
246+
.cmd__code::-webkit-scrollbar {
247+
display: none;
248+
}
249+
250+
.cmd__copy {
251+
position: absolute;
252+
right: 10px;
253+
top: 50%;
254+
opacity: 1;
255+
pointer-events: auto;
256+
transform: translateY(-50%);
257+
}
258+
259+
.cmd__copy:hover {
260+
transform: translateY(-50%);
261+
}
262+
}
229263
</style>

vix-site/src/components/home/ArchitectureSection.vue

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,6 @@
107107
to show the shape of the project and the direction behind it.
108108
</p>
109109
</div>
110-
111-
<div class="architecture__divider" aria-hidden="true">
112-
<span class="architecture__divider-line" />
113-
<svg
114-
class="architecture__divider-mark"
115-
viewBox="0 0 24 24"
116-
fill="none"
117-
xmlns="http://www.w3.org/2000/svg"
118-
>
119-
<polygon points="5,3 9,3 12,21 10,21" fill="#4ade80" />
120-
<polygon points="19,3 15,3 12,21 14,21" fill="#16a34a" />
121-
</svg>
122-
<span class="architecture__divider-line" />
123-
</div>
124110
</div>
125111
</section>
126112
</template>
@@ -134,7 +120,7 @@ import { images } from "@/data/images";
134120
<style scoped>
135121
.architecture {
136122
position: relative;
137-
background: var(--bg-soft);
123+
background: var(--bg);
138124
border-block: 1px solid var(--line-soft);
139125
}
140126

0 commit comments

Comments
 (0)