/
index.jsx
51 lines (49 loc) · 1.68 KB
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* eslint-disable react/no-unescaped-entities */
import React from "react";
import { Code } from "../../components/code";
import { TwicAbstract } from "../../components/demo-wrapper/twicAbstract";
import { TwicWrapper } from "../../components/demo-wrapper/twicWrapper";
import { TwicImg } from "@twicpics/components/react";
import "./index.scss";
const TwicIntrinsic = () => {
return (
<div id="twic-intrinsic-container">
<TwicWrapper gitHubUrl="src/pages/intrinsic/index.jsx">
<div className="demo-container">
<TwicAbstract title="intrinsic property">
<p>
<strong>
The <dfn>intrinsic</dfn> property allows to specify the
intrinsic dimensions of the image or video in pixel as in
<Code>intrinsic="1920x1179"</Code>
</strong>
</p>
<p>
It prevents image or video upscaling and limits the number of
generated variants
</p>
<p>
Especially recommended when your image or video master has
potentially smaller dimensions than those that may be displayed.
</p>
<p>
This is often the case when using
<a href="/hero" target="_blank" rel="noreferrer">
hero images and videos
</a>
.
</p>
</TwicAbstract>
<div className="hero">
<TwicImg
src="components/intrinsic/moon.jpg"
ratio="none"
intrinsic="1920x1179"
/>
</div>
</div>
</TwicWrapper>
</div>
);
};
export default TwicIntrinsic;