Skip to content

Commit 3e76d4d

Browse files
feat: add styles to home page
1 parent 7ccd093 commit 3e76d4d

File tree

2 files changed

+76
-6
lines changed

2 files changed

+76
-6
lines changed

src/frontend/src/components/Home.vue

Lines changed: 73 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,22 @@ const maps = await getMaps(user);
88
</script>
99

1010
<template>
11-
<div id="navbar">
12-
<h5>Hey {{ user }} !</h5>
13-
</div>
11+
<header>
12+
<nav>
13+
<div class="nav-wrapper">
14+
<p class="brand">Domain Forge</p>
15+
<ul class="nav-links">
16+
<li><a href="https://github.com/mdgspace/domain-forge/blob/master/docs/users/README.md">Docs</a></li>
17+
</ul>
18+
</div>
19+
</nav>
20+
</header>
1421
<div id="home-container">
1522
<div id="home-heading">
16-
<h3>Your subdomains: </h3>
23+
<h3>{{ user }}'s subdomains: </h3>
1724
</div>
1825
<br>
19-
<table id="tableComponent" style="display:table; width:100%;">
26+
<table id="tableComponent" style="display:table; width:100%; padding: 0px 30px">
2027
<thead>
2128
<tr>
2229
<th v-for="field in fields" style="padding:5px;background-color: #ffffff; color: #121212;border-bottom: 1px solid #121212; border-top:1px solid #121212;font-weight: 900;">
@@ -44,11 +51,13 @@ const maps = await getMaps(user);
4451
<modal v-show="showModal" @close-modal="showModal = false" />
4552
<div style="text-align: center;"><button @click="showModal = true">+ Add</button></div>
4653
</div>
54+
<footer>
55+
<p>Made with ❤️ by MDG Space</p>
56+
</footer>
4757
</template>
4858
<script>
4959
import modal from './modal.vue'
5060
import deletemodal from './deletemodal.vue'
51-
import { deleteSubDomain } from '../utils/delete.ts'
5261
export default {
5362
components: { modal,deletemodal },
5463
data() {
@@ -60,3 +69,61 @@ export default {
6069
},
6170
}
6271
</script>
72+
<style scoped>
73+
74+
nav {
75+
width: 100%;
76+
position: fixed;
77+
top: 0;
78+
}
79+
80+
header {
81+
margin-bottom: 20px;
82+
}
83+
.nav-wrapper {
84+
display: flex;
85+
justify-content: space-between;
86+
align-items: center;
87+
padding: 0 20px;
88+
}
89+
90+
.brand {
91+
margin: 0;
92+
font-size: 24px;
93+
}
94+
95+
.nav-links {
96+
list-style: none;
97+
margin: 0;
98+
padding: 0;
99+
display: flex;
100+
align-items: center;
101+
}
102+
103+
.nav-links li {
104+
margin-right: 20px;
105+
}
106+
107+
.nav-links li:last-child {
108+
margin-right: 0;
109+
}
110+
111+
.nav-links a {
112+
text-decoration: none;
113+
color: #333;
114+
font-weight: bold;
115+
padding: 10px;
116+
}
117+
footer {
118+
position: fixed;
119+
bottom: 0;
120+
width: 100%;
121+
background-color: #ffffff;
122+
padding: 20px 0;
123+
}
124+
125+
footer p {
126+
margin: 0;
127+
text-align: center;
128+
}
129+
</style>

src/frontend/src/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
body {
2424
display: inline;
25+
overflow: hidden;
26+
margin: 0;
2527
}
2628

2729
#app {
@@ -51,6 +53,7 @@ body {
5153
display:flex;
5254
flex-direction: column;
5355
width:40rem;
56+
margin-top: 30px;
5457
}
5558
#home-container{
5659
display:flex;

0 commit comments

Comments
 (0)