Skip to content

Commit 37d1466

Browse files
committed
refactor: layout adjusted
1 parent 7a85ba5 commit 37d1466

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

components/demo/Banner.vue

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<div v-if="isDemoMode" id="banner" class="demo-banner">
3-
{{ warning }}<NuxtLink to="/terms">
4-
Read our terms.</NuxtLink>
5-
<svg
3+
<div id="termsWarning"> {{ warning }}<NuxtLink to="/terms">
4+
Read our terms.</NuxtLink></div>
5+
<div id="closeButton"> <svg
66
xmlns="http://www.w3.org/2000/svg"
77
width="24"
88
height="24"
@@ -15,7 +15,7 @@
1515
class="feather feather-x cursor-pointer"
1616
@click="closeBanner()"
1717
><line x1="18" y1="6" x2="6" y2="18" /><line x1="6" y1="6" x2="18" y2="18" />
18-
</svg>
18+
</svg></div>
1919
</div>
2020
</template>
2121

@@ -51,18 +51,17 @@ function closeBanner () {
5151
.demo-banner {
5252
background-color: #f5b14a;
5353
color: #000;
54-
width: 100%;
5554
padding: 10px;
5655
text-align: center;
57-
/* position: fixed; */
58-
top: 0;
59-
left: 0;
56+
width: 100%;
6057
z-index: 1000;
6158
display: flex;
59+
justify-content: center;
60+
align-items: center;
6261
}
6362
64-
.feather {
65-
align-self: center;
63+
#closeButton {
64+
padding-inline: 10px;
6665
}
6766
6867
.feather:hover {

0 commit comments

Comments
 (0)