Skip to content

Commit cbecd0b

Browse files
committed
fix: structure grid system
1 parent 87907df commit cbecd0b

File tree

1 file changed

+69
-90
lines changed

1 file changed

+69
-90
lines changed

Diff for: src/views/ChooseEdgeConnection.vue

+69-90
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,78 @@
22
<app-frame>
33
<v-row
44
align="start"
5-
justify="space-around"
6-
class="container"
5+
justify="center"
76
>
8-
<div class="local">
9-
<p class="text">
10-
Connect to local network
11-
</p>
12-
<router-link :to="'edge-connect'">
13-
<v-btn class="localButton">
14-
Local Network
15-
</v-btn>
16-
</router-link>
17-
</div>
18-
<div class="middleLine">
19-
OR
20-
</div>
21-
<div class="remote">
22-
<form class="text">
23-
Connect to remote network
24-
<h6 class="fineDetails">
25-
(must enter Peer ID to Ambianic network)
26-
</h6>
27-
<p />
28-
<label
29-
for="ambianicEdgeAddress"
30-
class="fineDetails"
31-
>
32-
Peer ID to Ambianic Network*
33-
</label>
34-
<p>
35-
<input
36-
type="text"
37-
id="ambianicEdgeAddress"
38-
class="inputbox"
39-
placeholder="Enter Peer ID"
40-
v-model="edgeAddress"
41-
>
42-
</p>
43-
<p>
44-
<router-link
45-
v-if="correctEdgeAddress"
46-
:to="'edge-connect'"
47-
>
48-
<v-btn @click="sendEdgeAddress">
49-
REMOTE NETWORK
7+
<!-- top column -->
8+
<v-col cols="6">
9+
<v-card min-width="100">
10+
<v-card-text class="text-center">
11+
<p class="text">
12+
Connect to local network
13+
</p>
14+
</v-card-text>
15+
<v-card-actions>
16+
<v-row justify="center">
17+
<v-btn
18+
:to="'edge-connect'"
19+
color="primary"
20+
:small="$vuetify.breakpoint.mdAndUp"
21+
>
22+
<v-icon v-if="$vuetify.breakpoint.xsOnly">
23+
mdi-wifi
24+
</v-icon>
25+
<span v-if="$vuetify.breakpoint.smAndUp">
26+
Local Network
27+
</span>
5028
</v-btn>
51-
</router-link>
29+
</v-row>
30+
</v-card-actions>
31+
</v-card>
32+
</v-col>
33+
<!-- middle column -->
34+
<v-col cols="12">
35+
<v-row justify="center">
36+
<v-card flat>
37+
<v-card-title>
38+
OR
39+
</v-card-title>
40+
</v-card>
41+
</v-row>
42+
</v-col>
43+
<!-- third column -->
44+
<v-card
45+
max-width="500"
46+
class="text-center"
47+
>
48+
<v-card-text>
49+
<p class="text">
50+
Connect to remote network
5251
</p>
53-
</form>
54-
</div>
52+
<v-subheader>
53+
(must enter Peer ID to Ambianic network)
54+
</v-subheader>
55+
<v-text-field
56+
v-model="edgeAddress"
57+
type="text"
58+
label="Peer ID to Ambianic Network*"
59+
placeholder="Enter Peer ID"
60+
outlined
61+
dense
62+
class="mt-4"
63+
/>
64+
</v-card-text>
65+
66+
<v-card-actions>
67+
<v-btn
68+
:disabled="!correctEdgeAddress"
69+
:to="'edge-connect'"
70+
@click="sendEdgeAddress"
71+
color="primary"
72+
>
73+
REMOTE NETWORK
74+
</v-btn>
75+
</v-card-actions>
76+
</v-card>
5577
</v-row>
5678
</app-frame>
5779
</template>
@@ -102,57 +124,14 @@ export default {
102124
}
103125
</script>
104126
<style scoped>
105-
.container {
106-
width: 50%;
107-
display: flex;
108-
flex-direction: row;
109-
margin: 0 auto;
110-
}
111-
112127
#ambianicEdgeAddress {
113128
border: 2px ridge lightgray;
114129
padding: 6px;
115130
border-radius: 5px;
116131
width: 81%;
117132
}
118133
119-
hr {
120-
margin: 1rem 0;
121-
}
122-
123-
a {
124-
text-decoration: none;
125-
}
126-
127-
.localButton {
128-
margin: 35px 0 0 20px;
129-
}
130-
131134
.text {
132135
font-size: 18px;
133136
}
134-
135-
.fineDetails {
136-
font-size: 10px;
137-
}
138-
139-
.local {
140-
display: inline-block;
141-
margin: 50px 0;
142-
padding: 30px;
143-
}
144-
145-
.remote {
146-
display: inline-block;
147-
margin: 50px 0;
148-
padding: 30px;
149-
}
150-
151-
.middleLine {
152-
display: inline-block;
153-
margin: 40px 0;
154-
padding: 30px 0 0 0;
155-
font-weight: bolder;
156-
font-size: 28px;
157-
}
158137
</style>

0 commit comments

Comments
 (0)