add fix after review

This commit is contained in:
2026-10-11 16:30:04 +03:00
parent 41c5f81027
commit 5e266c0ebd
9 changed files with 66 additions and 33 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "Городар", "name": "Городар",
"short_name": "Городар", "short_name": "Городар",
"description": "Коллекция городских объектов. Приезжайте на место, снимайте — объект попадёт в вашу коллекцию.", "description": "Открывайте города с Городаром: находите достопримечательности на карте, посещайте их и фотографируйте, чтобы пополнять личную коллекцию.",
"lang": "ru", "lang": "ru",
"dir": "ltr", "dir": "ltr",
"display": "standalone", "display": "standalone",
+6
View File
@@ -11,6 +11,12 @@
background: var(--color-bg); background: var(--color-bg);
} }
@media (display-mode: standalone) {
.app {
padding-top: env(safe-area-inset-top);
}
}
.app__main { .app__main {
flex: 1; flex: 1;
min-height: 0; min-height: 0;
+12 -4
View File
@@ -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'; import { Icon } from '../../shared/icon/icon';
@@ -22,9 +30,9 @@ export class PhotoFail {
protected readonly shownPercent = signal(0); protected readonly shownPercent = signal(0);
protected readonly tips = [ protected readonly tips = [
'Встаньте так, чтобы собор попал в кадр целиком.', 'Фотографируйте из точки указанной карте.',
'Снимайте при хорошем свете, без пальцев в кадре.', 'Постарайтесь чтобы объект попал в кадр полностью.',
'Ориентируйтесь на примеры фото в карточке объекта.', 'Снимайте при хорошем свете, без пальце в кадре.',
]; ];
constructor() { constructor() {
+1 -15
View File
@@ -215,6 +215,7 @@
width: 96px; width: 96px;
height: 96px; height: 96px;
object-fit: contain; object-fit: contain;
pointer-events: none;
} }
.card__rays { .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 { .card__body {
display: flex; display: flex;
flex: 1; flex: 1;
@@ -3,7 +3,12 @@
<header class="account"> <header class="account">
<p class="account__email">{{ accountEmail() }}</p> <p class="account__email">{{ accountEmail() }}</p>
<div class="account__actions"> <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" /> <app-icon name="document" [size]="22" />
</button> </button>
<button class="account__action" type="button" aria-label="Выйти" (click)="logout()"> <button class="account__action" type="button" aria-label="Выйти" (click)="logout()">
@@ -18,11 +23,11 @@
} }
<div class="page__intro"> <div class="page__intro">
<h1>Вся коллекция</h1> <h1>Моя коллекция</h1>
<p>Достопримечательности по городам и странам</p> <p>Достопримечательности которые вы открыли</p>
</div> </div>
<section class="summary"> <section class="summary" style="margin-bottom: 16px">
<div> <div>
<b>{{ openedCount() }}</b> <b>{{ openedCount() }}</b>
<span>{{ objectsLabel() }}</span> <span>{{ objectsLabel() }}</span>
@@ -33,12 +38,14 @@
</div> </div>
</section> </section>
<p class="section-label">Мои города</p>
@if (packs().length > 0) { @if (packs().length > 0) {
@for (pack of packs(); track pack.area.id) { @for (pack of packs(); track pack.area.id) {
<article class="pack"> <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> <div>
<h2>{{ pack.area.name }}</h2> <h2>{{ pack.area.name }}</h2>
<p>Собрано {{ pack.opened }} из {{ pack.total }}</p> <p>Собрано {{ pack.opened }} из {{ pack.total }}</p>
@@ -71,9 +71,10 @@
<section> <section>
<h2>Как забрать</h2> <h2>Как забрать</h2>
<ol class="steps"> <ol class="steps">
<li>Приезжайте на место и найдите объект</li> <li>Приезжайте на место и найдите объект.</li>
<li>Нажмите «Забрать» и сфотографируйте объект</li> <li>Нажмите «Забрать» и сфотографируйте объект.</li>
<li>Получите объект в свою коллекцию</li> <li>Получите объект в свою коллекцию.</li>
<li>Встаньте на точку отмеченную на карте.</li>
</ol> </ol>
</section> </section>
</div> </div>
+1
View File
@@ -7,6 +7,7 @@
html, html,
body { body {
height: 100%; height: 100%;
overflow: hidden;
} }
html { html {
-1
View File
@@ -24,7 +24,6 @@
.pack h2, .pack h2,
.pack h3 { .pack h3 {
margin: 0; margin: 0;
font-family: var(--font-display);
font-size: 24px; font-size: 24px;
font-weight: 700; font-weight: 700;
line-height: 1.15; line-height: 1.15;
+27 -2
View File
@@ -2,14 +2,39 @@
<html lang="ru"> <html lang="ru">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>Городар</title> <title>Городар — собирайте достопримечательности в коллекцию</title>
<base href="/" /> <base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> <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="theme-color" content="#12110F" />
<meta name="mobile-web-app-capable" content="yes" /> <meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-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="Городар" /> <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/svg+xml" href="favicon.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png" /> <link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png" />
<link rel="icon" type="image/x-icon" href="favicon.ico" /> <link rel="icon" type="image/x-icon" href="favicon.ico" />