mirror of
https://github.com/anatolykopyl/bakery.git
synced 2026-03-26 21:14:26 +00:00
Compare commits
1 Commits
1d41c5f4ae
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 17590b9ea1 |
1348
package-lock.json
generated
1348
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -141,7 +141,7 @@ img.tiny-logo {
|
|||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.tiny-logo {
|
a.tiny-logo {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,17 +10,15 @@ export default {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
#header {
|
#header {
|
||||||
background: url('../assets/headcut.png') no-repeat center;
|
background: url('../assets/headcut.png') no-repeat top;
|
||||||
height: 388px;
|
background-size: cover;
|
||||||
|
aspect-ratio: 2000/388;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1024px) {
|
@media screen and (max-width: 1024px) {
|
||||||
#header {
|
#header {
|
||||||
background: url('../assets/head.png') no-repeat center;
|
background: url('../assets/head.png') no-repeat top;
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
height: 0;
|
|
||||||
padding-top: 17.25%; /* (img-height / img-width * container-width) */
|
|
||||||
/* (388 / 2000 * 100) */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="home">
|
<div id="home">
|
||||||
<Header/>
|
<Header/>
|
||||||
<h1>Любимые булочные Северной Столицы</h1>
|
<h1 class="header">Любимые булочные Северной Столицы</h1>
|
||||||
<div id="map">
|
<div id="map">
|
||||||
<div id="napkin">
|
<div id="napkin">
|
||||||
<yandex-map :settings=settings :coords=markers[selected] :zoom=16>
|
<yandex-map :settings=settings :coords=markers[selected] :zoom=16>
|
||||||
@@ -162,6 +162,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
selectMarker: function(n) {
|
selectMarker: function(n) {
|
||||||
this.selected = n;
|
this.selected = n;
|
||||||
|
document.querySelector("ymaps").scrollIntoView();
|
||||||
},
|
},
|
||||||
selectOnMap: function(n) {
|
selectOnMap: function(n) {
|
||||||
this.selected = +n;
|
this.selected = +n;
|
||||||
@@ -197,6 +198,7 @@ h1 {
|
|||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
font-size: 5vh;
|
font-size: 5vh;
|
||||||
|
text-wrap: balance;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
@@ -254,7 +256,7 @@ h4 {
|
|||||||
#napkin {
|
#napkin {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0px;
|
padding: 0;
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -264,4 +266,16 @@ h4 {
|
|||||||
padding-bottom: 100%;
|
padding-bottom: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1024px) {
|
||||||
|
.header {
|
||||||
|
font-size: 48px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1024px) {
|
||||||
|
.header {
|
||||||
|
font-size: 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user