add fix after review
This commit is contained in:
@@ -11,6 +11,12 @@
|
||||
background: var(--color-bg);
|
||||
}
|
||||
|
||||
@media (display-mode: standalone) {
|
||||
.app {
|
||||
padding-top: env(safe-area-inset-top);
|
||||
}
|
||||
}
|
||||
|
||||
.app__main {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
import { afterNextRender, ChangeDetectionStrategy, Component, computed, input, output, signal } from '@angular/core';
|
||||
import {
|
||||
afterNextRender,
|
||||
ChangeDetectionStrategy,
|
||||
Component,
|
||||
computed,
|
||||
input,
|
||||
output,
|
||||
signal,
|
||||
} from '@angular/core';
|
||||
|
||||
import { Icon } from '../../shared/icon/icon';
|
||||
|
||||
@@ -22,9 +30,9 @@ export class PhotoFail {
|
||||
protected readonly shownPercent = signal(0);
|
||||
|
||||
protected readonly tips = [
|
||||
'Встаньте так, чтобы собор попал в кадр целиком.',
|
||||
'Снимайте при хорошем свете, без пальцев в кадре.',
|
||||
'Ориентируйтесь на примеры фото в карточке объекта.',
|
||||
'Фотографируйте из точки указанной карте.',
|
||||
'Постарайтесь чтобы объект попал в кадр полностью.',
|
||||
'Снимайте при хорошем свете, без пальце в кадре.',
|
||||
];
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -215,6 +215,7 @@
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
object-fit: contain;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.card__rays {
|
||||
@@ -273,21 +274,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (hover: none) {
|
||||
.card:active .card__preview--open .card__rays {
|
||||
opacity: 1;
|
||||
animation: spin 12s linear infinite;
|
||||
}
|
||||
|
||||
.card:active .card__preview--open img {
|
||||
animation: pop 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2);
|
||||
}
|
||||
|
||||
.card:active .card__preview--open .card__spark {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.card__body {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
|
||||
@@ -3,7 +3,12 @@
|
||||
<header class="account">
|
||||
<p class="account__email">{{ accountEmail() }}</p>
|
||||
<div class="account__actions">
|
||||
<button class="account__action" type="button" aria-label="Документы" (click)="openDocuments()">
|
||||
<button
|
||||
class="account__action"
|
||||
type="button"
|
||||
aria-label="Документы"
|
||||
(click)="openDocuments()"
|
||||
>
|
||||
<app-icon name="document" [size]="22" />
|
||||
</button>
|
||||
<button class="account__action" type="button" aria-label="Выйти" (click)="logout()">
|
||||
@@ -18,11 +23,11 @@
|
||||
}
|
||||
|
||||
<div class="page__intro">
|
||||
<h1>Вся коллекция</h1>
|
||||
<p>Достопримечательности по городам и странам</p>
|
||||
<h1>Моя коллекция</h1>
|
||||
<p>Достопримечательности которые вы открыли</p>
|
||||
</div>
|
||||
|
||||
<section class="summary">
|
||||
<section class="summary" style="margin-bottom: 16px">
|
||||
<div>
|
||||
<b>{{ openedCount() }}</b>
|
||||
<span>{{ objectsLabel() }}</span>
|
||||
@@ -33,12 +38,14 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<p class="section-label">Мои города</p>
|
||||
|
||||
@if (packs().length > 0) {
|
||||
@for (pack of packs(); track pack.area.id) {
|
||||
<article class="pack">
|
||||
<a class="pack__head" [routerLink]="['/city', pack.area.id]" [attr.aria-label]="'Объекты: ' + pack.area.name">
|
||||
<a
|
||||
class="pack__head"
|
||||
[routerLink]="['/city', pack.area.id]"
|
||||
[attr.aria-label]="'Объекты: ' + pack.area.name"
|
||||
>
|
||||
<div>
|
||||
<h2>{{ pack.area.name }}</h2>
|
||||
<p>Собрано {{ pack.opened }} из {{ pack.total }}</p>
|
||||
|
||||
@@ -71,9 +71,10 @@
|
||||
<section>
|
||||
<h2>Как забрать</h2>
|
||||
<ol class="steps">
|
||||
<li>Приезжайте на место и найдите объект</li>
|
||||
<li>Нажмите «Забрать» и сфотографируйте объект</li>
|
||||
<li>Получите объект в свою коллекцию</li>
|
||||
<li>Приезжайте на место и найдите объект.</li>
|
||||
<li>Нажмите «Забрать» и сфотографируйте объект.</li>
|
||||
<li>Получите объект в свою коллекцию.</li>
|
||||
<li>Встаньте на точку отмеченную на карте.</li>
|
||||
</ol>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
html {
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
.pack h2,
|
||||
.pack h3 {
|
||||
margin: 0;
|
||||
font-family: var(--font-display);
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1.15;
|
||||
|
||||
+27
-2
@@ -2,14 +2,39 @@
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Городар</title>
|
||||
<title>Городар — собирайте достопримечательности в коллекцию</title>
|
||||
<base href="/" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Открывайте города с Городаром: находите достопримечательности на карте, посещайте их и фотографируйте, чтобы пополнять личную коллекцию."
|
||||
/>
|
||||
<meta name="theme-color" content="#12110F" />
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||
<meta name="apple-mobile-web-app-title" content="Городар" />
|
||||
<link rel="canonical" href="https://gorodar.ru/" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:locale" content="ru_RU" />
|
||||
<meta property="og:site_name" content="Городар" />
|
||||
<meta property="og:url" content="https://gorodar.ru/" />
|
||||
<meta property="og:title" content="Городар — собирайте достопримечательности в коллекцию" />
|
||||
<meta
|
||||
property="og:description"
|
||||
content="Открывайте города с Городаром: находите достопримечательности на карте, посещайте их и фотографируйте, чтобы пополнять личную коллекцию."
|
||||
/>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "Городар",
|
||||
"alternateName": "Gorodar",
|
||||
"url": "https://gorodar.ru/",
|
||||
"inLanguage": "ru",
|
||||
"description": "Городар — сервис для исследования городов и коллекционирования достопримечательностей. Посещайте места, фотографируйте их и пополняйте личную коллекцию."
|
||||
}
|
||||
</script>
|
||||
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
||||
|
||||
Reference in New Issue
Block a user