-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cbc8bd
commit 8db7edd
Showing
123 changed files
with
9,762 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"title": "Themes", | ||
"tags_colors": "Colors", | ||
"tags_typography": "Typography", | ||
"tags_borderRadius": "Border Radius", | ||
"tags_preview": "Preview", | ||
"btn_export_theme": "Export theme", | ||
"custom_brand_palette": "Custom Brand Palette", | ||
"page_background": "Page Background", | ||
"brand_color": "Brand Color", | ||
"hide_advanced_settings": "Hide Advanced Settings", | ||
"advanced_settings": "Advanced Settings", | ||
"theme": "Theme", | ||
"basic_palette": "Basic Palette", | ||
"add_color": "Add color", | ||
"color-input_validation-format-error": "Incorrect format", | ||
"palette_colors_description": "Support Colors for various cases and <br /> states", | ||
"dark_theme": "Dark theme", | ||
"light_theme": "Light theme", | ||
"advanced_brand_palette": "Advanced Brand Palette", | ||
"additional_colors": "Additional Colors", | ||
"component_preview": "Component preview", | ||
"is_everything_set": "Is everything set?", | ||
"cancel": "Cancel", | ||
"export_theme_config": "Export theme config", | ||
"radius": "Radius", | ||
"radius_regular": "Regular", | ||
"radius_circled": "Circled", | ||
"radius_squared": "Squared", | ||
"radius_custom": "Custom radius", | ||
"choose_border_radius": "Choose border radius", | ||
"label": "Label", | ||
"input_placeholder": "Content", | ||
"button": "Button" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"title": "Темы", | ||
"tags_colors": "Цвета", | ||
"tags_typography": "Шрифты", | ||
"tags_borderRadius": "Радиусы границ", | ||
"tags_preview": "Предпоказ", | ||
"color-input_validation-format-error": "Неверный формат", | ||
"btn_export_theme": "Экспортировать тему", | ||
"custom_brand_palette": "Кастомная брендовая палитра", | ||
"page_background": "Цвет фона", | ||
"brand_color": "Брендовый цвет", | ||
"hide_advanced_settings": "Скрыть расширенные настройки", | ||
"advanced_settings": "Расширенные настройки", | ||
"theme": "Тема", | ||
"basic_palette": "Базовая палитра", | ||
"add_color": "Добавить цвет", | ||
"palette_colors_description": "Поддерживаемые цвета для различных случаев и состояний", | ||
"dark_theme": "Тёмная тема", | ||
"light_theme": "Светлая тема", | ||
"advanced_brand_palette": "Расширенная брендовая палитра", | ||
"additional_colors": "Дополнительные цвета", | ||
"component_preview": "Предпросмотр компонентов", | ||
"is_everything_set": "Все настроили?", | ||
"cancel": "Закрыть", | ||
"export_theme_config": "Экспорт конфигурации темы", | ||
"radius": "Радиус", | ||
"radius_regular": "Стандартный", | ||
"radius_circled": "Круглый", | ||
"radius_squared": "Без скругления", | ||
"radius_custom": "Настроить скругление", | ||
"choose_border_radius": "Выберите радиус скругления", | ||
"label": "Ярлык", | ||
"input_placeholder": "Контент", | ||
"button": "Кнопка" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import {GetStaticPaths, GetStaticProps} from 'next'; | ||
import {useTranslation} from 'next-i18next'; | ||
import React from 'react'; | ||
|
||
import {Layout} from '../../components/Layout/Layout'; | ||
import {Themes} from '../../components/Themes/Themes'; | ||
import {useLocaleRedirect} from '../../hooks/useLocaleRedirect'; | ||
import {getI18nPaths, getI18nProps} from '../../utils/i18next'; | ||
|
||
export const getStaticPaths: GetStaticPaths = async () => { | ||
return { | ||
paths: getI18nPaths(), | ||
fallback: false, | ||
}; | ||
}; | ||
|
||
export const getStaticProps: GetStaticProps = async (ctx) => { | ||
const result = { | ||
props: { | ||
...(await getI18nProps(ctx, ['themes'])), | ||
}, | ||
}; | ||
return result; | ||
}; | ||
|
||
export const ThemesPage = () => { | ||
useLocaleRedirect(); | ||
|
||
const {t} = useTranslation(); | ||
|
||
return ( | ||
<Layout title={t('themes:title')}> | ||
<Themes /> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default ThemesPage; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@use '~@gravity-ui/page-constructor/styles/styles.scss' as pcStyles; | ||
@use '~@gravity-ui/page-constructor/styles/variables.scss' as pcVariables; | ||
@use '../../variables.scss'; | ||
|
||
$block: '.#{variables.$ns}code-example'; | ||
|
||
#{$block} { | ||
--code-example-max-height: 300px; | ||
|
||
display: flex; | ||
flex-direction: row; | ||
width: 100%; | ||
background: var(--g-color-base-background); | ||
border-radius: 16px; | ||
padding: 16px 0 16px 16px; | ||
|
||
&__inner { | ||
width: 100%; | ||
max-height: var(--code-example-max-height); | ||
overflow: auto; | ||
position: relative; | ||
display: flex; | ||
} | ||
|
||
&:hover { | ||
cursor: pointer; | ||
|
||
#{$block}__code { | ||
color: #fff; | ||
} | ||
|
||
#{$block}__copy-icon { | ||
color: #fff; | ||
} | ||
} | ||
|
||
&__code { | ||
@include pcStyles.text-size(code-2); | ||
padding-right: 24px; | ||
flex-grow: 1; | ||
font-family: var(--g-font-family-monospace); | ||
color: rgba(255, 255, 255, 0.7); | ||
margin-right: 12px; | ||
white-space: pre-wrap; | ||
transition: color 0.1s ease-in-out; | ||
|
||
&_copied { | ||
color: #fff; | ||
} | ||
} | ||
|
||
&__copy-button { | ||
position: sticky; | ||
right: 16px; | ||
top: 0; | ||
} | ||
} |
Oops, something went wrong.