UNPKG

3.17 kBPlain TextView Raw
1<template>
2 <div class="heightFull paddingLeft20 paddingRight20 maxWidth900
3 marginLeftAuto marginRightAuto">
4 <site-header></site-header>
5 <form-nav></form-nav>
6 <router-view></router-view>
7 <site-footer></site-footer>
8 </div>
9</template>
10
11<script>
12 import Vue from 'vue'
13 import VueRouter from 'vue-router'
14
15 import SiteHeader from './components/SiteHeader'
16 import FormNav from './components/FormNav'
17 import SiteFooter from './components/SiteFooter'
18 import ContactForm from './components/ContactForm'
19 import PatientForm from './components/PatientForm'
20
21 Vue.use(VueRouter)
22
23 const routes = [
24 { name: 'ContactForm', path: '/contact', component: ContactForm },
25 { name: 'PatientForm', path: '/patient', component: PatientForm },
26 { path: '*', redirect: { name: 'ContactForm' } }
27 ]
28
29 export default {
30 name: 'App',
31 router: new VueRouter({ mode: 'history', routes }),
32 components: { SiteHeader, SiteFooter, FormNav }
33 }
34</script>
35
36<style lang="scss">
37 html {
38 overflow: hidden;
39 }
40
41 html,
42 body {
43 height: 100%;
44 padding: 0;
45 margin: 0;
46 }
47
48 body {
49 overflow: auto;
50 color: rgba(100, 255, 200, .8);
51 font-family: 'Montserrat', sans-serif;
52 background: #136a8a; /* fallback for old browsers */
53 background: -webkit-linear-gradient(0, #267871 , #136a8a); /* Chrome 10-25, Safari 5.1-6 */
54 background: linear-gradient(0deg, #267871 , #136a8a); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
55 background-repeat: no-repeat;
56 background-attachment: fixed;
57 }
58
59 a.link,
60 a:visited.link {
61 color: rgba(100, 255, 200, .8);
62 fill: rgba(100, 255, 200, .8);
63 transition: color 0.5s ease-in-out,
64 fill 0.5s ease-in-out;
65 }
66 a:hover.link {
67 color: rgba(244, 245, 249, 1);
68 fill: rgba(244, 245, 249, 1);
69 }
70 a.link.border {
71 border-bottom: 1px solid rgba(100, 255, 200, .4);
72 }
73
74 footer::selection,
75 h1::selection,
76 div::selection,
77 a::selection,
78 code::selection {
79 color: #ddd;
80 background: #482292;
81 }
82
83 .bgWhisper {
84 background-color: #f4f5f9;
85 }
86
87 .borderRadius25 {
88 border-radius: 25px;
89 }
90
91 .button:focus {
92 outline: 0;
93 }
94 .button.disabled,
95 .button.disabled:hover {
96 background-color: #999;
97 }
98 .button:not(.disabled) {
99 box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.15);
100
101 &:hover {
102 box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.30);
103 }
104
105 &:active {
106 transform: scale3d(0.96, 0.96, 1);
107 box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
108 }
109 }
110
111
112
113 .wasSubmitted :invalid:not(:focus),
114 .wasFocused:invalid:not(:focus) {
115 color: #ff4136;
116 border-color: #ff4136;
117 background-color: #FEE9E7;
118 transition: all 0.2s;
119 }
120
121 .showUsageInstructionsButton {
122 border-radius: 20px;
123 padding: 12px 16px;
124 background-color: #a873d1;
125 transition: all 500ms ease-in-out;
126 }
127
128 form {
129 box-shadow: 0 18px 24px rgba(0, 0, 0, 0.1);
130 }
131
132 textarea {
133 max-width: 548px;
134 }
135
136 .fade-enter-active, .fade-leave-active {
137 transition: opacity .5s
138 }
139 .fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
140 opacity: 0
141 }
142</style>