diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index b4743edd..4aa8a024 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -56,11 +56,11 @@ "Create Chat": "Create Chat", "Create Group": "Create a group", "Create account": "Create an account", - "Create account from subscribe": "Create an account to subscribe to new publications", - "Create account from discussions": "Create an account to participate in discussions", - "Create account from vote": "Create an account to vote", "Create account from bookmark": "Create an account to add to your bookmarks", + "Create account from discussions": "Create an account to participate in discussions", "Create account from follow": "Create an account to subscribe", + "Create account from subscribe": "Create an account to subscribe to new publications", + "Create account from vote": "Create an account to vote", "Create post": "Create post", "Date of Birth": "Date of Birth", "Delete": "Delete", @@ -69,6 +69,7 @@ "Discours is created with our common effort": "Discours exists because of our common effort", "Discussing": "Discussing", "Discussion rules": "Discussion rules", + "Discussions": "Discussions", "Dogma": "Dogma", "Drafts": "Drafts", "Drag the image to this area": "Drag the image to this area", @@ -79,11 +80,11 @@ "Enter URL address": "Enter URL address", "Enter text": "Enter text", "Enter the Discours": "Enter the Discours", - "Enter the Discours from subscribe": "Sign in to subscribe to new publications", - "Enter the Discours from discussions": "Sign in to participate in the discussions", - "Enter the Discours from vote": "Sign in to vote", "Enter the Discours from bookmark": "Sign in to add to bookmarks", + "Enter the Discours from discussions": "Sign in to participate in the discussions", "Enter the Discours from follow": "Sign in to follow", + "Enter the Discours from subscribe": "Sign in to subscribe to new publications", + "Enter the Discours from vote": "Sign in to vote", "Enter the code or click the link from email to confirm": "Enter the code from the email or follow the link in the email to confirm registration", "Enter your new password": "Enter your new password", "Error": "Error", @@ -115,6 +116,7 @@ "Highlight": "Highlight", "Hooray! Welcome!": "Hooray! Welcome!", "Horizontal collaborative journalistic platform": "Horizontal collaborative journalism platform", + "Hot topics": "Hot topics", "Hotkeys": "Горячие клавиши", "How can I help/skills": "How can I help/skills", "How it works": "How it works", @@ -127,6 +129,7 @@ "Incut": "Incut", "Independant magazine with an open horizontal cooperation about culture, science and society": "Independant magazine with an open horizontal cooperation about culture, science and society", "Insert footnote": "Insert footnote", + "Insert video link": "Insert video link", "Introduce": "Introduction", "Invalid email": "Check if your email is correct", "Invalid image URL": "Invalid image URL", @@ -149,6 +152,7 @@ "Load more": "Show more", "Loading": "Loading", "Logout": "Logout", + "Looks like you forgot to upload the video": "Looks like you forgot to upload the video", "Manifest": "Manifest", "Many files, choose only one": "Many files, choose only one", "Material card": "Material card", @@ -165,6 +169,7 @@ "No such account, please try to register": "No such account found, please try to register", "Nothing here yet": "There's nothing here yet", "Nothing is here": "There is nothing here", + "Notifications": "Notifications", "Or continue with social network": "Or continue with social network", "Or paste a link to an image": "Or paste a link to an image", "Ordered list": "Ordered list", @@ -256,7 +261,6 @@ "Top viewed": "Most viewed", "Topic is supported by": "Topic is supported by", "Topics": "Topics", - "Hot topics": "Hot topics", "Topics which supported by author": "Topics which supported by author", "Try to find another way": "Try to find another way", "Unfollow": "Unfollow", @@ -305,7 +309,6 @@ "community": "community", "delimiter": "delimiter", "discussion": "discourse", - "Discussions": "Discussions", "drafts": "drafts", "email not confirmed": "email not confirmed", "enter": "enter", @@ -322,7 +325,6 @@ "marker list": "marker list", "music": "music", "my feed": "my ribbon", - "Notifications": "Notifications", "number list": "number list", "personal data usage and email notifications": "to process personal data and receive email notifications", "post": "post", @@ -336,7 +338,5 @@ "user already exist": "user already exists", "video": "video", "view": "view", - "zine": "zine", - "Insert video link": "Insert video link", - "Looks like you forgot to upload the video": "Looks like you forgot to upload the video" + "zine": "zine" } diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json index c17a94f1..b153ab42 100644 --- a/public/locales/ru/translation.json +++ b/public/locales/ru/translation.json @@ -3,6 +3,7 @@ "A short introduction to keep the reader interested": "Небольшое вступление, чтобы заинтересовать читателя", "About myself": "О себе", "About the project": "О проекте", + "Accomplices": "Соучастники", "Add another image": "Добавить другое изображение", "Add comment": "Комментировать", "Add image": "Добавить изображение", @@ -58,11 +59,11 @@ "Create Chat": "Создать чат", "Create Group": "Создать группу", "Create account": "Создать аккаунт", - "Create account from subscribe": "Создайте аккаунт для подписки на новые публикации", - "Create account from discussions": "Создайте аккаунт для участия в дискуссиях", - "Create account from vote": "Создайте аккаунт, чтобы голосовать", "Create account from bookmark": "Создайте аккаунт, чтобы добавить в закладки", + "Create account from discussions": "Создайте аккаунт для участия в дискуссиях", "Create account from follow": "Создайте аккаунт, чтобы подписаться", + "Create account from subscribe": "Создайте аккаунт для подписки на новые публикации", + "Create account from vote": "Создайте аккаунт, чтобы голосовать", "Create post": "Создать публикацию", "Date of Birth": "Дата рождения", "Delete": "Удалить", @@ -71,6 +72,7 @@ "Discours is created with our common effort": "Дискурс существует благодаря нашему общему вкладу", "Discussing": "Обсуждаемое", "Discussion rules": "Правила сообществ самиздата в соцсетях", + "Discussions": "Дискуссии", "Dogma": "Догма", "Drafts": "Черновики", "Drag the image to this area": "Перетащите изображение в эту область", @@ -82,11 +84,11 @@ "Enter URL address": "Введите адрес ссылки", "Enter text": "Введите текст", "Enter the Discours": "Войти в Дискурс", - "Enter the Discours from subscribe": "Войдите для подписки на новые публикации", - "Enter the Discours from discussions": "Войдите для участия в дискуссиях", - "Enter the Discours from vote": "Войдите, чтобы голосовать", "Enter the Discours from bookmark": "Войдите, чтобы добавить в закладки", + "Enter the Discours from discussions": "Войдите для участия в дискуссиях", "Enter the Discours from follow": "Войдите, чтобы подписаться", + "Enter the Discours from subscribe": "Войдите для подписки на новые публикации", + "Enter the Discours from vote": "Войдите, чтобы голосовать", "Enter the code or click the link from email to confirm": "Введите код из письма или пройдите по ссылке в письме для подтверждения регистрации", "Enter your new password": "Введите новый пароль", "Error": "Ошибка", @@ -120,6 +122,7 @@ "Highlight": "Подсветка", "Hooray! Welcome!": "Ура! Добро пожаловать!", "Horizontal collaborative journalistic platform": "Горизонтальная платформа для коллаборативной журналистики", + "Hot topics": "Горячие темы", "Hotkeys": "Горячие клавиши", "How can I help/skills": "Чем могу помочь/навыки", "How it works": "Как это работает", @@ -132,6 +135,7 @@ "Incut": "Подверстка", "Independant magazine with an open horizontal cooperation about culture, science and society": "Независимый журнал с открытой горизонтальной редакцией о культуре, науке и обществе", "Insert footnote": "Вставить сноску", + "Insert video link": "Вставить ссылку на видео", "Introduce": "Представление", "Invalid email": "Проверьте правильность ввода почты", "Invalid image URL": "Некорректная ссылка на изображение", @@ -156,6 +160,7 @@ "Load more": "Показать ещё", "Loading": "Загрузка", "Logout": "Выход", + "Looks like you forgot to upload the video": "Похоже, что вы забыли загрузить видео", "Manifest": "Манифест", "Many files, choose only one": "Много файлов, выберете один", "Material card": "Карточка материала", @@ -172,6 +177,7 @@ "No such account, please try to register": "Такой адрес не найден, попробуйте зарегистрироваться", "Nothing here yet": "Здесь пока ничего нет", "Nothing is here": "Здесь ничего нет", + "Notifications": "Уведомления", "Or continue with social network": "Или войдите через соцсеть", "Or paste a link to an image": "Или вставьте ссылку на изображение", "Ordered list": "Нумерованный список", @@ -255,7 +261,7 @@ "Thank you": "Благодарности", "This comment has not yet been rated": "Этот комментарий еще пока никто не оценил", "This email is already taken. If it's you": "Такой email уже зарегистрирован. Если это вы", - "This functionality is currently not available, we would like to work on this issue. Use the download link.": "В данный момент этот функционал не доступен, бы работаем над этой проблемой. Воспользуйтесь загрузкой по ссылке.", + "This functionality is currently not available, we would like to work on this issue. Use the download link.": "В данный момент этот функционал недоступен, мы работаем над этой проблемой. Воспользуйтесь загрузкой по ссылке.", "This post has not been rated yet": "Эту публикацию еще пока никто не оценил", "To leave a comment please": "Чтобы оставить комментарий, необходимо", "To write a comment, you must": "Чтобы написать комментарий, необходимо", @@ -269,7 +275,6 @@ "Top viewed": "Самое читаемое", "Topic is supported by": "Тему поддерживают", "Topics": "Темы", - "Hot topics": "Горячие темы", "Topics which supported by author": "Автор поддерживает темы", "Try to find another way": "Попробуйте найти по-другому", "Unfollow": "Отписаться", @@ -304,7 +309,6 @@ "You've reached a non-existed page": "Вы попали на несуществующую страницу", "You've successfully logged out": "Вы успешно вышли из аккаунта", "Your name will appear on your profile page and as your signature in publications, comments and responses.": "Ваше имя появится на странице вашего профиля и как ваша подпись в публикациях, комментариях и откликах", - "Accomplices": "Соучастники", "actions": "действия", "add link": "добавить ссылку", "all topics": "все темы", @@ -323,7 +327,6 @@ "delimiter": "разделитель", "discourse_theme": "Тема дискурса", "discussion": "дискурс", - "Discussions": "Дискуссии", "drafts": "черновики", "email not confirmed": "email не подтвержден", "enter": "войдите", @@ -340,7 +343,6 @@ "marker list": "маркир. список", "music": "музыка", "my feed": "моя лента", - "Notifications": "Уведомления", "number list": "нумер. список", "or": "или", "personal data usage and email notifications": "на обработку персональных данных и на получение почтовых уведомлений", @@ -358,7 +360,5 @@ "user already exist": "пользователь уже существует", "video": "видео", "view": "просмотр", - "zine": "журнал", - "Insert video link": "Вставить ссылку на видео", - "Looks like you forgot to upload the video": "Похоже, что вы забыли загрузить видео" + "zine": "журнал" } diff --git a/src/components/Article/Article.module.scss b/src/components/Article/Article.module.scss index c0cbb7ed..b54d2b7f 100644 --- a/src/components/Article/Article.module.scss +++ b/src/components/Article/Article.module.scss @@ -1,5 +1,6 @@ h1 { @include font-size(4rem); + line-height: 1.1; margin-top: 0.5em; } @@ -154,6 +155,7 @@ img { .shoutStatsItem { @include font-size(1.5rem); + font-weight: 500; display: inline-block; margin: 0 6% 1em 0; diff --git a/src/components/Article/Comment.module.scss b/src/components/Article/Comment.module.scss index 5f5c2fe3..30706155 100644 --- a/src/components/Article/Comment.module.scss +++ b/src/components/Article/Comment.module.scss @@ -170,8 +170,9 @@ } .articleLink { - flex: 0 0 50%; @include font-size(1.2rem); + + flex: 0 0 50%; margin-right: 2em; @include media-breakpoint-down(md) { diff --git a/src/components/Article/Comment.tsx b/src/components/Article/Comment.tsx index 1f6e2197..51aa7203 100644 --- a/src/components/Article/Comment.tsx +++ b/src/components/Article/Comment.tsx @@ -5,7 +5,6 @@ import { Show, createMemo, createSignal, For, lazy, Suspense } from 'solid-js' import { clsx } from 'clsx' import type { Author, Reaction } from '../../graphql/types.gen' import MD from './MD' -import { formatDate } from '../../utils' import Userpic from '../Author/Userpic' import { useSession } from '../../context/session' import { ReactionKind } from '../../graphql/types.gen' @@ -78,9 +77,6 @@ export const Comment = (props: Props) => { } } - const formattedDate = (date) => - createMemo(() => formatDate(new Date(date), { hour: 'numeric', minute: 'numeric' })) - const toggleEditMode = () => { setEditMode((oldEditMode) => !oldEditMode) } diff --git a/src/components/Article/CommentDate.module.scss b/src/components/Article/CommentDate.module.scss index e827bdb9..65f3983e 100644 --- a/src/components/Article/CommentDate.module.scss +++ b/src/components/Article/CommentDate.module.scss @@ -1,4 +1,6 @@ .commentDates { + @include font-size(1.2rem); + flex: 1; display: flex; gap: 1rem; @@ -7,7 +9,6 @@ font-size: 1.2rem; margin: 0 1em 4px 0; color: rgb(0 0 0 / 30%); - @include font-size(1.2rem); .date { .icon { diff --git a/src/components/Article/CommentDate.tsx b/src/components/Article/CommentDate.tsx index 5054b703..c0dc67f4 100644 --- a/src/components/Article/CommentDate.tsx +++ b/src/components/Article/CommentDate.tsx @@ -1,6 +1,6 @@ import styles from './CommentDate.module.scss' import { Icon } from '../_shared/Icon' -import { Show, createMemo } from 'solid-js' +import { Show } from 'solid-js' import type { Reaction } from '../../graphql/types.gen' import { formatDate } from '../../utils' import { useLocalize } from '../../context/localize' @@ -15,10 +15,13 @@ type Props = { export const CommentDate = (props: Props) => { const { t } = useLocalize() - const formattedDate = (date) => - props.isShort - ? formatDate(new Date(date), { month: 'long', day: 'numeric', year: 'numeric' }) - : createMemo(() => formatDate(new Date(date), { hour: 'numeric', minute: 'numeric' })) + const formattedDate = (date) => { + const formatDateOptions: Intl.DateTimeFormatOptions = props.isShort + ? { month: 'long', day: 'numeric', year: 'numeric' } + : { hour: 'numeric', minute: 'numeric' } + + return formatDate(new Date(date), formatDateOptions) + } return (
--
- {t('Audio')}
-
- -
- {t('Video')}
-
- -
- {t('Artworks')}
-
- -
- {t('Literature')}
-
-
-{title()}
+-
+ {t('Audio')}
+
+ -
+ {t('Video')}
+
+ -
+ {t('Artworks')}
+
+ -
+ {t('Literature')}
+
+
+- -
++ +
+