-
- {renderedForm}
-
+
+ {renderedForm}
);
}
diff --git a/client/src/routes/account/style.css b/client/src/routes/account/style.css
index 8eefe33..fdcfad6 100644
--- a/client/src/routes/account/style.css
+++ b/client/src/routes/account/style.css
@@ -6,9 +6,7 @@
.main {
display: block;
- height: 93vh;
width: 100vw;
position: fixed;
top: 7vh;
- background-color: snow;
}
diff --git a/client/src/routes/home/index.js b/client/src/routes/home/index.js
index 4f987e3..489df8d 100644
--- a/client/src/routes/home/index.js
+++ b/client/src/routes/home/index.js
@@ -1,13 +1,36 @@
import { h, Component } from 'preact';
import style from './style';
+import { route } from 'preact-router';
+import Search from '../../components/Search';
+import SearchResults from '../../components/SearchResults';
export default class Home extends Component {
+ constructor(props) {
+ super(props);
+
+ this.routeToMap = this.routeToMap.bind(this);
+ }
+
+ routeToMap() {
+ route('/maps', true);
+ }
+
render() {
return (
-
What Can navi find for you today!
-
-
+
+
WELCOME TO
+
![](../../assets/icons/leaflet/SVG/darkLogo.svg)
+
+
+
Where can we take you today?
+
+
+
+
+
where am I?
+
);
}
diff --git a/client/src/routes/home/style.css b/client/src/routes/home/style.css
index 727ea80..06dfee9 100644
--- a/client/src/routes/home/style.css
+++ b/client/src/routes/home/style.css
@@ -1,9 +1,48 @@
.home {
- padding: 56px 20px;
width: 100%;
+ display: block;
}
-button {
- display: block;
- width: 80%;
+.welcome {
+ padding-top: 3vh;
+ display: inherit;
+}
+
+.welcome > h2 {
+ text-align: center;
+ margin: 3vh auto auto;
+}
+
+.welcome > img {
+ display: inherit;
+ margin: auto;
+ width: 50vw;
+}
+
+.search {
+ padding-top: 5vh;
+ display: inherit;
+}
+
+.search > p {
+ text-align: center;
+ font-size: 1.2em;
+}
+
+.search > form {
+ position: static;
+}
+
+.mapLink {
+ position: fixed;
+ right: 15vw;
+ bottom: 5vh;
+}
+
+.pin {
+ width: 9vw;
+ height: 9vh;
+ position: fixed;
+ right: 5vw;
+ bottom: 3vh;
}
diff --git a/client/src/routes/maps/index.js b/client/src/routes/maps/index.js
index 16b5a50..2c71388 100644
--- a/client/src/routes/maps/index.js
+++ b/client/src/routes/maps/index.js
@@ -6,7 +6,7 @@ export default class MapExplorer extends Component {
render() {
return (
-
+
);
}
diff --git a/client/src/routes/maps/style.css b/client/src/routes/maps/style.css
index 9070e0b..5008164 100644
--- a/client/src/routes/maps/style.css
+++ b/client/src/routes/maps/style.css
@@ -1,5 +1,4 @@
.maps {
width: 100vw;
- height: 95vh;
display: block;
-}
\ No newline at end of file
+}
diff --git a/client/src/routes/profile/index.js b/client/src/routes/profile/index.js
index 2ac68b3..3f302af 100644
--- a/client/src/routes/profile/index.js
+++ b/client/src/routes/profile/index.js
@@ -26,13 +26,19 @@ render({success}, {user, time}) {
);
diff --git a/client/src/routes/profile/style.css b/client/src/routes/profile/style.css
index 756d6bf..a7c1845 100644
--- a/client/src/routes/profile/style.css
+++ b/client/src/routes/profile/style.css
@@ -1,6 +1,5 @@
.profile {
- padding: 56px 20px;
- min-height: 100%;
+ padding: 5vh 5vw;
width: 100%;
}
@@ -21,3 +20,12 @@
.links_container{
text-align: center;
}
+
+form {
+ text-align: center;
+ margin-bottom: 2vh;
+}
+
+fieldset {
+ border-radius: 3px;
+}