|
a |
|
b/web-app/client/src/App.vue |
|
|
1 |
<template> |
|
|
2 |
<div id="app"> |
|
|
3 |
<div id="nav"> |
|
|
4 |
<div class="flex"> |
|
|
5 |
<div> |
|
|
6 |
<img src="./assets/logo.png" alt /> |
|
|
7 |
</div> |
|
|
8 |
<div> |
|
|
9 |
<h1 id="hero">EHR</h1> |
|
|
10 |
</div> |
|
|
11 |
<div> |
|
|
12 |
<router-link to="/">Home</router-link> |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
<div class="dropdown"> |
|
|
16 |
<button class="dropbtn">Register</button> |
|
|
17 |
<div class="dropdown-content"> |
|
|
18 |
<router-link to="/RegisterPatient">Register Patient</router-link> |
|
|
19 |
<router-link to="/RegisterDoctor">Register Doctor</router-link> |
|
|
20 |
</div> |
|
|
21 |
</div> |
|
|
22 |
|
|
|
23 |
<div class="dropdown"> |
|
|
24 |
<button class="dropbtn">Login</button> |
|
|
25 |
<div class="dropdown-content"> |
|
|
26 |
<router-link to="/LoginPatient">Login Patient</router-link> |
|
|
27 |
<router-link to="/LoginDoctor">Login Doctor</router-link> |
|
|
28 |
<router-link to="/LoginHospitalAdmin">Login Hospital Admin</router-link> |
|
|
29 |
</div> |
|
|
30 |
</div> |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
<router-link to="/about">About</router-link> |
|
|
34 |
</div> |
|
|
35 |
</div> |
|
|
36 |
</div> |
|
|
37 |
<router-view /> |
|
|
38 |
</div> |
|
|
39 |
</template> |
|
|
40 |
|
|
|
41 |
<style> |
|
|
42 |
body { |
|
|
43 |
background-color: #e6e6e6; |
|
|
44 |
font-family: "Roboto", sans-serif; |
|
|
45 |
|
|
|
46 |
letter-spacing: 0.1em; |
|
|
47 |
/* margin: 0; |
|
|
48 |
padding: 0; */ |
|
|
49 |
} |
|
|
50 |
.flex { |
|
|
51 |
/* margin-left: 50em; */ |
|
|
52 |
display: flex; |
|
|
53 |
justify-content: space-between; |
|
|
54 |
} |
|
|
55 |
|
|
|
56 |
.flex a { |
|
|
57 |
color: black; |
|
|
58 |
font-weight: bold; |
|
|
59 |
text-decoration: none; |
|
|
60 |
font-size: larger; |
|
|
61 |
} |
|
|
62 |
|
|
|
63 |
img { |
|
|
64 |
height: 50px; |
|
|
65 |
width: 70px; |
|
|
66 |
} |
|
|
67 |
|
|
|
68 |
|
|
|
69 |
/* Style The Dropdown Button */ |
|
|
70 |
.dropbtn { |
|
|
71 |
background-color: #e6e6e6; |
|
|
72 |
color: black; |
|
|
73 |
padding: 16px; |
|
|
74 |
font-size: 16px; |
|
|
75 |
border: none; |
|
|
76 |
cursor: pointer; |
|
|
77 |
color: black; |
|
|
78 |
font-weight: bold; |
|
|
79 |
text-decoration: none; |
|
|
80 |
font-size: larger; |
|
|
81 |
letter-spacing: 0.1em; |
|
|
82 |
} |
|
|
83 |
|
|
|
84 |
/* The container <div> - needed to position the dropdown content */ |
|
|
85 |
.dropdown { |
|
|
86 |
position: relative; |
|
|
87 |
display: inline-block; |
|
|
88 |
} |
|
|
89 |
|
|
|
90 |
/* Dropdown Content (Hidden by Default) */ |
|
|
91 |
.dropdown-content { |
|
|
92 |
display: none; |
|
|
93 |
position: absolute; |
|
|
94 |
/* background-color: #f9f9f9; */ |
|
|
95 |
min-width: 160px; |
|
|
96 |
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); |
|
|
97 |
z-index: 1; |
|
|
98 |
} |
|
|
99 |
|
|
|
100 |
/* Links inside the dropdown */ |
|
|
101 |
.dropdown-content a { |
|
|
102 |
color: black; |
|
|
103 |
padding: 12px 16px; |
|
|
104 |
text-decoration: none; |
|
|
105 |
display: block; |
|
|
106 |
} |
|
|
107 |
|
|
|
108 |
/* Change color of dropdown links on hover */ |
|
|
109 |
.dropdown-content a:hover {background-color: #676867} |
|
|
110 |
|
|
|
111 |
/* Show the dropdown menu on hover */ |
|
|
112 |
.dropdown:hover .dropdown-content { |
|
|
113 |
display: block; |
|
|
114 |
} |
|
|
115 |
|
|
|
116 |
/* Change the background color of the dropdown button when the dropdown content is shown */ |
|
|
117 |
.dropdown:hover .dropbtn { |
|
|
118 |
background-color: #676867; |
|
|
119 |
} |
|
|
120 |
#hero{ |
|
|
121 |
margin-right: 25em; |
|
|
122 |
} |
|
|
123 |
</style> |