ekaterinburgdev / guides Goto Github PK
View Code? Open in Web Editor NEW📗 Website with Ekaterinburg design standards and guidelines
Home Page: https://guides.ekaterinburg.city
License: MIT License
📗 Website with Ekaterinburg design standards and guidelines
Home Page: https://guides.ekaterinburg.city
License: MIT License
(from PR)
#68 (comment)
Bug
Page
https://guides.ekaterinburg.design/typical
Add new Notion types:
Example data
[
{
"section": "Section name"
"section_id": "section-name-1",
"items": [
{
"page": "Page name 1",
"page_id": "page-name-1",
"text": "<b>Lorem Ipsum</b> is simply dummy text of the printing and typesetting industry"
},
{
"page": "Page name 1",
"page_id": "page-name-2",
"text": "containing <b>Lorem Ipsum</b> passages, and more recently with desktop publishing software"
}
]
}
]
https://.../section-name-1/page-name-1#:~:text
url (https://caniuse.com/url-scroll-to-text-fragment)<Typography.H1>
<H1>
, <H2>
...<Typography as="h1">
children
propcolumnItem
prop for typograpy components<table>
to separate component. Add this to fileTODO
Allow write content inside columns (now all tags in col
)
<>
{/* Вариант 1. Комопненты имплементирующие элементы
Плюсы
- Настройка любых props
- Интуитивно
Минусы
- Сложно поддерживать обртаную совместимость с HTML (W3C). Пример табилцы
- А не проще использовать HTML + CSS?
*/}
<H1>Заголовок 1</H1>
<H2>Заголовок 2</H2>
<H3>Заголовок 3</H3>
<H4>Заголовок 4</H4>
<H5>Заголовок 5</H5>
<Ul size="xl">
<Li></Li>
<Li></Li>
<Li></Li>
<Li></Li>
</Ul>
<Hr />
<Ol>
<Li></Li>
<Li></Li>
<Li></Li>
<Li></Li>
</Ol>
<P></P>
<Table>
<Thead></Thead>
<Tbody>
<Tr>
<Td></Td>
<Td></Td>
</Tr>
</Tbody>
</Table>
</>;
<>
{/* Вариант 2. Комопненты имплементирующие элементы
Плюсы
- Подсказка тегов при наборе Typography (можно `<T />`)
- Удобный доступ render(Typography[componentName])
Минусы
- Громоздко
- Должен быть унифицированный набор props. Скорее всего, многие должны быть перегруженными.
То есть `size` может обозначать что-угодно для элементов Table и H1
*/}
<Typography.H1>Заголовок 1</Typography.H1>
<Typography.H2>Заголовок 2</Typography.H2>
<Typography.H3>Заголовок 3</Typography.H3>
<Typography.H4>Заголовок 4</Typography.H4>
<Typography.H5>Заголовок 5</Typography.H5>
<Typography.Ul size="xl">
<Typography.Li></Typography.Li>
<Typography.Li></Typography.Li>
<Typography.Li></Typography.Li>
<Typography.Li></Typography.Li>
<Typography.Li></Typography.Li>
<Typography.Li></Typography.Li>
<Typography.Li></Typography.Li>
</Typography.Ul>
<Typography.Hr />
<Typography.Ol>
<Typography.Li></Typography.Li>
<Typography.Li></Typography.Li>
<Typography.Li></Typography.Li>
<Typography.Li></Typography.Li>
</Typography.Ol>
<Typography.P></Typography.P>
<Typography.Table>
<Typography.Thead></Typography.Thead>
<Typography.Tbody>
<Typography.Tr>
<Typography.Td></Typography.Td>
<Typography.Td></Typography.Td>
</Typography.Tr>
</Typography.Tbody>
</Typography.Table>
</>;
<>
{/* Вариант 3. Комопненты имплементирующие элементы
Плюсы
- Подсказка тегов при наборе пропа type
- Удобный доступ <Typography type={componentType} />
- Есть возможность отделять внешний вид от тега, когда они совпадают.
Минусы
- Громоздко
*/}
<Typography type="h1">Заголовок 1</Typography>
<Typography type="h2">Заголовок 2</Typography>
<Typography type="h3">Заголовок 3</Typography>
<Typography type="h4">Заголовок 4</Typography>
<Typography type="h5">Заголовок 5</Typography>
<Typography type="ul">
<Typography type="li"></Typography>
<Typography type="li"></Typography>
<Typography type="li"></Typography>
<Typography type="li"></Typography>
<Typography type="li"></Typography>
<Typography type="li"></Typography>
<Typography type="li"></Typography>
</Typography>
<Typography type="hr" />
<Typography type="ol">
<Typography type="li"></Typography>
<Typography type="li"></Typography>
<Typography type="li"></Typography>
<Typography type="li"></Typography>
</Typography>
<Typography type="p"></Typography>
<Typography type="table">
<Typography type="thead"></Typography>
<Typography type="tbody">
<Typography type="tr">
<Typography type="td"></Typography>
<Typography type="td"></Typography>
</Typography>
</Typography>
</Typography>
</>
evaluate()
function create image by jspdf and htmltocanvas.pdf
19.6 mb
)Page
https://guides.ekaterinburg.design/typical
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.