forked from geolba/tethys.frontend
- router scroll behaviour
This commit is contained in:
parent
be6bb2bdc4
commit
ed394e9587
|
@ -153,7 +153,7 @@ import App from "./app";
|
||||||
export default App;
|
export default App;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style scoped lang="scss">
|
||||||
// #app {
|
// #app {
|
||||||
// font-family: Avenir, Helvetica, Arial, sans-serif;
|
// font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||||
// -webkit-font-smoothing: antialiased;
|
// -webkit-font-smoothing: antialiased;
|
||||||
|
|
|
@ -60,6 +60,10 @@ const routes = [
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory(),
|
||||||
routes,
|
routes,
|
||||||
|
scrollBehavior(to, from, savedPosition) {
|
||||||
|
// return desired position
|
||||||
|
document.getElementById("app")?.scrollIntoView();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
|
|
@ -158,7 +158,8 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="mx-auto my-5" style="width: 170px">
|
<div class="mx-auto my-5" style="width: 170px">
|
||||||
<a class="button is-primary custom-button">
|
<!-- <router-link to="/contact"><i class="far fa-id-card"></i> Contact</router-link> -->
|
||||||
|
<a href="/contact" class="button is-primary custom-button">
|
||||||
<i class="fas fa-sign-in-alt"></i>
|
<i class="fas fa-sign-in-alt"></i>
|
||||||
<strong>KONTAKT</strong>
|
<strong>KONTAKT</strong>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<p class="card-footer-item">
|
<p class="card-footer-item">
|
||||||
<a class="button is-primary custom-button">
|
<a href="/contact" class="button is-primary custom-button">
|
||||||
<i class="fas fa-sign-in-alt"></i>
|
<i class="fas fa-sign-in-alt"></i>
|
||||||
<strong>KONTAKT</strong>
|
<strong>KONTAKT</strong>
|
||||||
</a>
|
</a>
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<p class="card-footer-item">
|
<p class="card-footer-item">
|
||||||
<a class="button is-primary custom-button">
|
<a href="/contact" class="button is-primary custom-button">
|
||||||
<i class="fas fa-sign-in-alt"></i>
|
<i class="fas fa-sign-in-alt"></i>
|
||||||
<strong>KONTAKT</strong>
|
<strong>KONTAKT</strong>
|
||||||
</a>
|
</a>
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<p class="card-footer-item">
|
<p class="card-footer-item">
|
||||||
<a class="button is-primary custom-button">
|
<a href="/contact" class="button is-primary custom-button">
|
||||||
<i class="fas fa-sign-in-alt"></i>
|
<i class="fas fa-sign-in-alt"></i>
|
||||||
<strong>KONTAKT</strong>
|
<strong>KONTAKT</strong>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user