mirror of
https://github.com/aculix/vector-drawable-nextjs.git
synced 2025-12-06 06:08:24 +00:00
add npx script
This commit is contained in:
parent
51bec7f644
commit
3d6e695619
@ -189,8 +189,16 @@ export default function Home() {
|
|||||||
<ReactSVG src="/github.svg"/>
|
<ReactSVG src="/github.svg"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h5>Or using command line</h5>
|
||||||
|
<p className="vd-code-snippet">
|
||||||
|
npx <span className="vd-cmd">vector-drawable-svg</span> <span className="vd-input">my-drawable.xml</span> <span className="vd-input">out.svg</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -228,6 +228,7 @@ button:not(:disabled):active {
|
|||||||
.vd-footer {
|
.vd-footer {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-bottom: 100px;
|
margin-bottom: 100px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vd-github svg {
|
.vd-github svg {
|
||||||
@ -236,12 +237,39 @@ button:not(:disabled):active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.vd-code-snippet .vd-cmd {
|
||||||
|
color: var(--vd-color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vd-code-snippet .vd-input {
|
||||||
|
color: var(--vd-color-secondary-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vd-code-snippet {
|
||||||
|
background: var(--vd-color-on-surface);
|
||||||
|
border-radius: calc(var(--vd-size-corner-radius) / 2.5);
|
||||||
|
font-family: "JetBrains Mono", monospace;
|
||||||
|
font-weight: bold;
|
||||||
|
border: 1px solid rgba(255, 255,255, 0.1);
|
||||||
|
position: relative;
|
||||||
|
white-space: nowrap;
|
||||||
|
max-width: 600px;
|
||||||
|
|
||||||
|
padding: 14px 18px;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 600px) {
|
@media only screen and (max-width: 600px) {
|
||||||
|
|
||||||
|
.vd-code-snippet {
|
||||||
|
max-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
.vd-title {
|
.vd-title {
|
||||||
font-size: 1.8em;
|
font-size: 1.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.vd-subtitle {
|
.vd-subtitle {
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
@ -260,3 +288,5 @@ button:not(:disabled):active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user