Skip to content

Commit e949cbc

Browse files
committed
Improved design of manual testing arena
1 parent 09e7b4d commit e949cbc

File tree

3 files changed

+32
-13
lines changed

3 files changed

+32
-13
lines changed

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3496,12 +3496,12 @@ const updateStep = ref(0);
34963496
</script>
34973497

34983498
<template>
3499-
<button @click="updateStep += 1">UPDATE</button>
35003499
<div style="padding: 48px; font-weight: bold; line-height: 20px">
3501-
<h1 style="font-size: 36px; color: #666666">
3500+
<h1 style="font-size: 36px; color: #42d392">
35023501
Vue Data UI
35033502
</h1>
35043503
<h2 style="color: #A6A6A6">Components</h2>
3504+
<h4 style="color: #5f8bee">Manual testing arena</h4>
35053505
</div>
35063506

35073507
<div style="padding-left: 48px; padding-right: 48px">

src/Box.vue

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,37 @@ function copy() {
1717
</script>
1818

1919
<template>
20-
<div style="width: 100%;margin-top:12px; background: #e1e5e8">
20+
<div style="width: 100%;margin-top:12px; background: #2A2A2A">
2121
<details>
22-
<summary style="user-select:none;cursor:pointer;height:30px;background:linear-gradient(to right, #e1e5e8, white);line-height:24px;font-size:24px;padding:12px;">
23-
<slot name="title"></slot>
22+
<summary style="user-select:none;cursor:pointer;height:30px;background:linear-gradient(to right, #2A2A2A, #1A1A1A);line-height:24px;font-size:24px;padding:12px;">
23+
<span style="color:#42d392">
24+
<slot name="title"></slot>
25+
</span>
2426
</summary>
2527
<div style="display: flex; flex-direction:column;">
2628
<button class="btn" @click="showConfig = !showConfig">
2729
Config &nbsp;<span v-if="showConfig">&lt;</span><span v-else>&gt;</span>
2830
</button>
2931
<br>
32+
<small style="margin-left: 24px; margin-bottom: 12px; color: #AAAAAA" v-if="showConfig">Click to copy</small>
3033
<code :class="{cde: true, wow: isCopying}" v-if="showConfig" @click="copy">
3134
<slot name="config"></slot>
3235
</code>
3336
</div>
34-
<div style="display: flex;flex-direction:row; gap:12px; align-items:center;justify-content:center;background:#e1e5e8;padding:12px">
37+
<div style="display: flex;flex-direction:row; gap:12px; align-items:center;justify-content:center;background:#2A2A2A;padding:12px">
3538
<div style="width:100%;padding:12px;">
36-
<div style="width:100%;text-align:center">DEV</div>
37-
<slot name="dev"></slot>
39+
<div style="width:100%;text-align:center;color: #ff6400;margin-bottom:12px">DEV</div>
40+
41+
<div style="resize:both;overflow: auto; border: 1px solid #ff6400; padding: 12px; border-radius: 6px">
42+
<slot name="dev"></slot>
43+
</div>
3844
</div>
3945
<div style="width:100%;padding:12px">
40-
<div style="width:100%;text-align:center">PRODUCTION</div>
41-
<slot name="prod"></slot>
46+
<div style="width:100%;text-align:center;color: #42d392;margin-bottom:12px">PRODUCTION</div>
47+
48+
<div style="resize:both;overflow: auto; border: 1px solid #42d392; padding: 12px;border-radius: 6px">
49+
<slot name="prod"></slot>
50+
</div>
4251
</div>
4352
</div>
4453
</details>
@@ -50,13 +59,18 @@ function copy() {
5059
border: none;
5160
width: 100px;
5261
height: 40px;
53-
background: #fafafa;
62+
background: linear-gradient(to bottom right, #42d392, #42d392AA);
63+
font-weight: bold;
5464
cursor: pointer;
55-
border: 1px solid #CCCCCC;
5665
border-radius: 6px;
5766
margin-top: 24px;
5867
margin-left: 24px;
5968
box-shadow: 0 6px 12px -6px rgba(0, 0,0,0.6);
69+
color: white;
70+
}
71+
72+
.btn:hover {
73+
background: linear-gradient(to top left, #42d392, #42d392AA);
6074
}
6175
.cde {
6276
background: rgba(0,0,0,0.8);
@@ -66,7 +80,11 @@ function copy() {
6680
padding: 12px;
6781
border-radius: 6px;
6882
cursor: copy;
69-
outline: 2px solid greenyellow;
83+
outline: 2px solid #42d392;
84+
}
85+
86+
summary::marker {
87+
color: #A6A6A6;
7088
}
7189
.wow {
7290
animation: wow 0.2s ease-in-out;

src/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
33
line-height: 1.5;
44
font-weight: 400;
5+
background-color: #1A1A1A;
56

67

78
font-synthesis: none;

0 commit comments

Comments
 (0)