mirror of https://github.com/sgoudham/carbon.git
Anonymous functions (#1111)
* Theme.js file anonymous functoins warning disabled. * Settings.js file anonymous functoins warning disabled. * About.js file anonymous functoins warning disabled. * Snippets.js file anonymous functoins warning disabled. * Logo.js file anonymous functoins warning disabled. * Reset.js file anonymous functoins warning disabled. * Language.js file anonymous functoins warning disabled. * Typography.js file anonymous functoins warning disabled. * Font.js file anonymous functoins warning disabled. * Billing.js file anonymous functoins warning disabled. * all anonymous functoins warning disabled with the prefered style. * Update components/Billing.js Co-authored-by: Michael Fix <mrfix84@gmail.com> Co-authored-by: Michael Fix <mrfix84@gmail.com>main
parent
1628e15544
commit
d863fdec1d
@ -1,115 +1,117 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
export default () => (
|
export default function Typography() {
|
||||||
<style jsx global>
|
return (
|
||||||
{`
|
<style jsx global>
|
||||||
/* https://github.com/jxnblk/type-system
|
{`
|
||||||
|
/* https://github.com/jxnblk/type-system
|
||||||
Brent Jackson
|
Brent Jackson
|
||||||
License: MIT
|
License: MIT
|
||||||
*/
|
*/
|
||||||
:root {
|
:root {
|
||||||
--h0: 4.5rem;
|
--h0: 4.5rem;
|
||||||
--h1: 3rem;
|
--h1: 3rem;
|
||||||
--h2: 2.25rem;
|
--h2: 2.25rem;
|
||||||
--h3: 1.5rem;
|
--h3: 1.5rem;
|
||||||
--h4: 1.125rem;
|
--h4: 1.125rem;
|
||||||
--h5: 0.75rem;
|
--h5: 0.75rem;
|
||||||
|
|
||||||
--lh: calc(4 / 3);
|
--lh: calc(4 / 3);
|
||||||
|
|
||||||
--m1: calc(2 / 3 * 1em);
|
--m1: calc(2 / 3 * 1em);
|
||||||
--m2: calc(4 / 3 * 1em);
|
--m2: calc(4 / 3 * 1em);
|
||||||
--m3: calc(8 / 3 * 1em);
|
--m3: calc(8 / 3 * 1em);
|
||||||
--m4: calc(16 / 3 * 1em);
|
--m4: calc(16 / 3 * 1em);
|
||||||
--x1: 0.5rem;
|
--x1: 0.5rem;
|
||||||
--x2: 1rem;
|
--x2: 1rem;
|
||||||
--x3: 2rem;
|
--x3: 2rem;
|
||||||
--x4: 4rem;
|
--x4: 4rem;
|
||||||
--x5: 8rem;
|
--x5: 8rem;
|
||||||
--x6: 16rem;
|
--x6: 16rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-size: var(--h4);
|
font-size: var(--h4);
|
||||||
line-height: var(--lh);
|
line-height: var(--lh);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
h3 {
|
h3 {
|
||||||
margin-top: var(--m1);
|
margin-top: var(--m1);
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4,
|
h4,
|
||||||
h5,
|
h5,
|
||||||
h6,
|
h6,
|
||||||
p,
|
p,
|
||||||
dl,
|
dl,
|
||||||
ol,
|
ol,
|
||||||
ul,
|
ul,
|
||||||
blockquote {
|
blockquote {
|
||||||
margin-top: var(--m2);
|
margin-top: var(--m2);
|
||||||
margin-bottom: var(--m2);
|
margin-bottom: var(--m2);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: var(--h2);
|
font-size: var(--h2);
|
||||||
}
|
}
|
||||||
h2,
|
h2,
|
||||||
h3 {
|
h3 {
|
||||||
font-size: var(--h3);
|
font-size: var(--h3);
|
||||||
}
|
}
|
||||||
h4 {
|
h4 {
|
||||||
font-size: var(--h4);
|
font-size: var(--h4);
|
||||||
}
|
}
|
||||||
h5,
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
font-size: var(--h5);
|
font-size: var(--h5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mt0 {
|
.mt0 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
.mb0 {
|
.mb0 {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.mt1 {
|
.mt1 {
|
||||||
margin-top: var(--x1);
|
margin-top: var(--x1);
|
||||||
}
|
}
|
||||||
.mb1 {
|
.mb1 {
|
||||||
margin-bottom: var(--x1);
|
margin-bottom: var(--x1);
|
||||||
}
|
}
|
||||||
.mt2 {
|
.mt2 {
|
||||||
margin-top: var(--x2);
|
margin-top: var(--x2);
|
||||||
}
|
}
|
||||||
.mb2 {
|
.mb2 {
|
||||||
margin-bottom: var(--x2);
|
margin-bottom: var(--x2);
|
||||||
}
|
}
|
||||||
.mt3 {
|
.mt3 {
|
||||||
margin-top: var(--x3);
|
margin-top: var(--x3);
|
||||||
}
|
}
|
||||||
.mb3 {
|
.mb3 {
|
||||||
margin-bottom: var(--x3);
|
margin-bottom: var(--x3);
|
||||||
}
|
}
|
||||||
.mt4 {
|
.mt4 {
|
||||||
margin-top: var(--x4);
|
margin-top: var(--x4);
|
||||||
}
|
}
|
||||||
.mb4 {
|
.mb4 {
|
||||||
margin-bottom: var(--x4);
|
margin-bottom: var(--x4);
|
||||||
}
|
}
|
||||||
.mt5 {
|
.mt5 {
|
||||||
margin-top: var(--x5);
|
margin-top: var(--x5);
|
||||||
}
|
}
|
||||||
.mb5 {
|
.mb5 {
|
||||||
margin-bottom: var(--x5);
|
margin-bottom: var(--x5);
|
||||||
}
|
}
|
||||||
.mt6 {
|
.mt6 {
|
||||||
margin-top: var(--x6);
|
margin-top: var(--x6);
|
||||||
}
|
}
|
||||||
.mb6 {
|
.mb6 {
|
||||||
margin-bottom: var(--x6);
|
margin-bottom: var(--x6);
|
||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
</style>
|
</style>
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
export default () => (
|
export default function Language() {
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
return (
|
||||||
<path
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
||||||
d="M8 0.6875H7.97539C6.02773 0.694531 4.19961 1.45742 2.82148 2.83555C1.44687 4.21719 0.6875 6.04883 0.6875 8C0.6875 9.95117 1.44688 11.7828 2.825 13.1645C4.19961 14.5426 6.03125 15.3055 7.97891 15.3125H8.00352C12.0359 15.3125 15.316 12.0324 15.316 8C15.316 3.96758 12.0324 0.6875 8 0.6875ZM14.3352 7.50781H11.607C11.5754 6.56914 11.4594 5.67266 11.2625 4.82891C11.8637 4.63555 12.4473 4.38945 13.0098 4.09063C13.7832 5.08203 14.2402 6.25625 14.3352 7.50781ZM7.50781 7.50781H5.33516C5.36328 6.64648 5.46875 5.83086 5.64453 5.07852C6.25625 5.21562 6.87852 5.3 7.50781 5.32812V7.50781ZM7.50781 8.49219V10.6684C6.88203 10.6965 6.25625 10.7809 5.64453 10.918C5.46875 10.1656 5.36328 9.35 5.33516 8.49219H7.50781ZM8.49219 8.49219H10.6473C10.6191 9.35 10.5137 10.1656 10.3379 10.9145C9.7332 10.7773 9.11445 10.6965 8.49219 10.6684V8.49219ZM8.49219 7.50781V5.32812C9.11797 5.3 9.73672 5.21562 10.3379 5.08203C10.5137 5.83437 10.6191 6.64648 10.6473 7.50781H8.49219ZM12.3383 3.36289C11.9059 3.57734 11.4594 3.76016 11.0023 3.90781C10.7527 3.15547 10.4363 2.50508 10.0707 1.9918C10.9145 2.28359 11.6844 2.75117 12.3383 3.36289ZM10.0742 4.16094C9.55742 4.27344 9.02656 4.34375 8.49219 4.37188V1.79141C9.08984 2.11484 9.67344 2.9832 10.0742 4.16094ZM7.50781 1.77734V4.36836C6.96641 4.34023 6.43203 4.26992 5.9082 4.15391C6.31602 2.96563 6.90664 2.09727 7.50781 1.77734ZM5.90469 2.00234C5.54258 2.51211 5.22969 3.15898 4.98008 3.9043C4.53008 3.75664 4.08711 3.57383 3.66172 3.36289C4.30859 2.75469 5.07148 2.29063 5.90469 2.00234ZM2.99023 4.09414C3.5457 4.38945 4.12578 4.63555 4.71992 4.82539C4.51953 5.66563 4.40352 6.56562 4.37539 7.5043H1.66836C1.75977 6.25977 2.2168 5.08555 2.99023 4.09414ZM1.66484 8.49219H4.37188C4.40352 9.43086 4.51953 10.3309 4.71641 11.1711C4.12227 11.3645 3.54219 11.6105 2.98672 11.9023C2.2168 10.9145 1.75977 9.74023 1.66484 8.49219ZM3.6582 12.6371C4.08359 12.4262 4.52656 12.2434 4.98008 12.0957C5.22969 12.8445 5.54258 13.4879 5.90469 14.0012C5.07148 13.7059 4.30859 13.2453 3.6582 12.6371ZM5.9082 11.8426C6.43203 11.7266 6.96992 11.6562 7.50781 11.6281V14.2227C6.90312 13.9027 6.31602 13.0309 5.9082 11.8426ZM8.49219 14.2086V11.6246C9.02656 11.6527 9.55742 11.723 10.0742 11.8355C9.67344 13.0168 9.08984 13.8852 8.49219 14.2086ZM10.0742 14.0082C10.4398 13.4949 10.7563 12.8445 11.0059 12.0922C11.4629 12.2398 11.9129 12.4262 12.3418 12.6406C11.6879 13.2488 10.9145 13.7164 10.0742 14.0082ZM13.0098 11.9059C12.4473 11.607 11.8637 11.3609 11.2625 11.1676C11.4594 10.3273 11.5754 9.43086 11.607 8.49219H14.3352C14.2402 9.74023 13.7867 10.9145 13.0098 11.9059Z"
|
<path
|
||||||
fill="white"
|
d="M8 0.6875H7.97539C6.02773 0.694531 4.19961 1.45742 2.82148 2.83555C1.44687 4.21719 0.6875 6.04883 0.6875 8C0.6875 9.95117 1.44688 11.7828 2.825 13.1645C4.19961 14.5426 6.03125 15.3055 7.97891 15.3125H8.00352C12.0359 15.3125 15.316 12.0324 15.316 8C15.316 3.96758 12.0324 0.6875 8 0.6875ZM14.3352 7.50781H11.607C11.5754 6.56914 11.4594 5.67266 11.2625 4.82891C11.8637 4.63555 12.4473 4.38945 13.0098 4.09063C13.7832 5.08203 14.2402 6.25625 14.3352 7.50781ZM7.50781 7.50781H5.33516C5.36328 6.64648 5.46875 5.83086 5.64453 5.07852C6.25625 5.21562 6.87852 5.3 7.50781 5.32812V7.50781ZM7.50781 8.49219V10.6684C6.88203 10.6965 6.25625 10.7809 5.64453 10.918C5.46875 10.1656 5.36328 9.35 5.33516 8.49219H7.50781ZM8.49219 8.49219H10.6473C10.6191 9.35 10.5137 10.1656 10.3379 10.9145C9.7332 10.7773 9.11445 10.6965 8.49219 10.6684V8.49219ZM8.49219 7.50781V5.32812C9.11797 5.3 9.73672 5.21562 10.3379 5.08203C10.5137 5.83437 10.6191 6.64648 10.6473 7.50781H8.49219ZM12.3383 3.36289C11.9059 3.57734 11.4594 3.76016 11.0023 3.90781C10.7527 3.15547 10.4363 2.50508 10.0707 1.9918C10.9145 2.28359 11.6844 2.75117 12.3383 3.36289ZM10.0742 4.16094C9.55742 4.27344 9.02656 4.34375 8.49219 4.37188V1.79141C9.08984 2.11484 9.67344 2.9832 10.0742 4.16094ZM7.50781 1.77734V4.36836C6.96641 4.34023 6.43203 4.26992 5.9082 4.15391C6.31602 2.96563 6.90664 2.09727 7.50781 1.77734ZM5.90469 2.00234C5.54258 2.51211 5.22969 3.15898 4.98008 3.9043C4.53008 3.75664 4.08711 3.57383 3.66172 3.36289C4.30859 2.75469 5.07148 2.29063 5.90469 2.00234ZM2.99023 4.09414C3.5457 4.38945 4.12578 4.63555 4.71992 4.82539C4.51953 5.66563 4.40352 6.56562 4.37539 7.5043H1.66836C1.75977 6.25977 2.2168 5.08555 2.99023 4.09414ZM1.66484 8.49219H4.37188C4.40352 9.43086 4.51953 10.3309 4.71641 11.1711C4.12227 11.3645 3.54219 11.6105 2.98672 11.9023C2.2168 10.9145 1.75977 9.74023 1.66484 8.49219ZM3.6582 12.6371C4.08359 12.4262 4.52656 12.2434 4.98008 12.0957C5.22969 12.8445 5.54258 13.4879 5.90469 14.0012C5.07148 13.7059 4.30859 13.2453 3.6582 12.6371ZM5.9082 11.8426C6.43203 11.7266 6.96992 11.6562 7.50781 11.6281V14.2227C6.90312 13.9027 6.31602 13.0309 5.9082 11.8426ZM8.49219 14.2086V11.6246C9.02656 11.6527 9.55742 11.723 10.0742 11.8355C9.67344 13.0168 9.08984 13.8852 8.49219 14.2086ZM10.0742 14.0082C10.4398 13.4949 10.7563 12.8445 11.0059 12.0922C11.4629 12.2398 11.9129 12.4262 12.3418 12.6406C11.6879 13.2488 10.9145 13.7164 10.0742 14.0082ZM13.0098 11.9059C12.4473 11.607 11.8637 11.3609 11.2625 11.1676C11.4594 10.3273 11.5754 9.43086 11.607 8.49219H14.3352C14.2402 9.74023 13.7867 10.9145 13.0098 11.9059Z"
|
||||||
/>
|
fill="white"
|
||||||
</svg>
|
/>
|
||||||
)
|
</svg>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,12 +1,14 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
export default () => (
|
export default function Settings() {
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 18 18">
|
return (
|
||||||
<path
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 18 18">
|
||||||
fill="#fff"
|
<path
|
||||||
fillRule="evenodd"
|
fill="#fff"
|
||||||
d="M206.532032,366.702224 L208.523318,368.142728 C208.69279,368.3122 208.721035,368.509915 208.608053,368.735877 L206.786238,371.74399 C206.673257,371.969953 206.503788,372.040565 206.277825,371.955829 L203.989964,371.066106 C203.283831,371.546276 202.775423,371.842848 202.464724,371.955829 L202.125782,374.286058 C202.069291,374.51202 201.913944,374.625 201.659736,374.625 L198.058474,374.625 C197.804266,374.625 197.648919,374.51202 197.592428,374.286058 L197.253486,371.955829 C196.829806,371.786357 196.321398,371.489786 195.728246,371.066106 L193.440385,371.955829 C193.214422,372.068811 193.044953,371.998198 192.931972,371.74399 L191.110157,368.735877 C190.96893,368.481669 190.997175,368.283955 191.194892,368.142728 L193.101443,366.702224 C193.101443,366.617488 193.094382,366.476263 193.080259,366.278546 C193.066136,366.080828 193.059075,365.925481 193.059075,365.8125 C193.059075,365.699519 193.066136,365.544172 193.080259,365.346454 C193.094382,365.148737 193.101443,365.007512 193.101443,364.922776 L191.152525,363.482272 C190.983053,363.3128 190.954808,363.115085 191.067789,362.889123 L192.889604,359.88101 C193.002585,359.655047 193.172055,359.584435 193.398017,359.669171 L195.685878,360.558894 C196.392011,360.078724 196.90042,359.782152 197.211118,359.669171 L197.550061,357.338942 C197.606551,357.11298 197.761898,357 198.016106,357 L201.617368,357 C201.871576,357 202.026923,357.11298 202.083414,357.338942 L202.379988,359.669171 C202.803668,359.838643 203.312077,360.135214 203.905229,360.558894 L206.150722,359.669171 C206.376684,359.556189 206.560276,359.626802 206.701503,359.88101 L208.523318,362.889123 C208.664544,363.143331 208.6363,363.341045 208.438582,363.482272 L206.532032,364.922776 C206.532032,365.007512 206.539093,365.148737 206.553216,365.346454 C206.567338,365.544172 206.5744,365.699519 206.5744,365.8125 C206.5744,366.23618 206.560277,366.532752 206.532032,366.702224 Z M199.795553,368.905349 C200.671159,368.905349 201.419649,368.608777 202.041046,368.015625 C202.662443,367.422473 202.973138,366.688105 202.973138,365.8125 C202.973138,364.936895 202.662443,364.202527 202.041046,363.609375 C201.419649,363.016223 200.671159,362.719651 199.795553,362.719651 C198.919948,362.719651 198.178519,363.016223 197.571244,363.609375 C196.96397,364.202527 196.660337,364.936895 196.660337,365.8125 C196.660337,366.688105 196.96397,367.422473 197.571244,368.015625 C198.178519,368.608777 198.919948,368.905349 199.795553,368.905349 Z"
|
fillRule="evenodd"
|
||||||
transform="translate(-191 -357)"
|
d="M206.532032,366.702224 L208.523318,368.142728 C208.69279,368.3122 208.721035,368.509915 208.608053,368.735877 L206.786238,371.74399 C206.673257,371.969953 206.503788,372.040565 206.277825,371.955829 L203.989964,371.066106 C203.283831,371.546276 202.775423,371.842848 202.464724,371.955829 L202.125782,374.286058 C202.069291,374.51202 201.913944,374.625 201.659736,374.625 L198.058474,374.625 C197.804266,374.625 197.648919,374.51202 197.592428,374.286058 L197.253486,371.955829 C196.829806,371.786357 196.321398,371.489786 195.728246,371.066106 L193.440385,371.955829 C193.214422,372.068811 193.044953,371.998198 192.931972,371.74399 L191.110157,368.735877 C190.96893,368.481669 190.997175,368.283955 191.194892,368.142728 L193.101443,366.702224 C193.101443,366.617488 193.094382,366.476263 193.080259,366.278546 C193.066136,366.080828 193.059075,365.925481 193.059075,365.8125 C193.059075,365.699519 193.066136,365.544172 193.080259,365.346454 C193.094382,365.148737 193.101443,365.007512 193.101443,364.922776 L191.152525,363.482272 C190.983053,363.3128 190.954808,363.115085 191.067789,362.889123 L192.889604,359.88101 C193.002585,359.655047 193.172055,359.584435 193.398017,359.669171 L195.685878,360.558894 C196.392011,360.078724 196.90042,359.782152 197.211118,359.669171 L197.550061,357.338942 C197.606551,357.11298 197.761898,357 198.016106,357 L201.617368,357 C201.871576,357 202.026923,357.11298 202.083414,357.338942 L202.379988,359.669171 C202.803668,359.838643 203.312077,360.135214 203.905229,360.558894 L206.150722,359.669171 C206.376684,359.556189 206.560276,359.626802 206.701503,359.88101 L208.523318,362.889123 C208.664544,363.143331 208.6363,363.341045 208.438582,363.482272 L206.532032,364.922776 C206.532032,365.007512 206.539093,365.148737 206.553216,365.346454 C206.567338,365.544172 206.5744,365.699519 206.5744,365.8125 C206.5744,366.23618 206.560277,366.532752 206.532032,366.702224 Z M199.795553,368.905349 C200.671159,368.905349 201.419649,368.608777 202.041046,368.015625 C202.662443,367.422473 202.973138,366.688105 202.973138,365.8125 C202.973138,364.936895 202.662443,364.202527 202.041046,363.609375 C201.419649,363.016223 200.671159,362.719651 199.795553,362.719651 C198.919948,362.719651 198.178519,363.016223 197.571244,363.609375 C196.96397,364.202527 196.660337,364.936895 196.660337,365.8125 C196.660337,366.688105 196.96397,367.422473 197.571244,368.015625 C198.178519,368.608777 198.919948,368.905349 199.795553,368.905349 Z"
|
||||||
/>
|
transform="translate(-191 -357)"
|
||||||
</svg>
|
/>
|
||||||
)
|
</svg>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
export default () => (
|
export default function Theme() {
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
|
return (
|
||||||
<path
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
|
||||||
d="M13.1206 10.2309C12.8886 10.0164 12.5476 9.96367 12.2558 9.91445C11.8515 9.84766 11.6968 9.77383 11.4612 9.56289C10.9585 9.11641 10.9585 8.46953 11.4612 8.02305L12.5265 7.07734C14.1577 5.63594 14.1577 3.27344 12.5265 1.83203C11.3241 0.773828 9.71045 0.25 8.0335 0.25C6.07529 0.25 4.0292 0.963672 2.45068 2.36289C-0.484863 4.95742 -0.484863 9.20781 2.45068 11.8023C3.90967 13.0926 5.87842 13.7359 7.82607 13.75H7.88584C9.8335 13.75 11.753 13.1207 13.1171 11.9078C13.6233 11.4613 13.539 10.6211 13.1206 10.2309ZM2.21865 5.59375C2.21865 4.97148 2.72139 4.46875 3.34365 4.46875C3.96592 4.46875 4.46865 4.97148 4.46865 5.59375C4.46865 6.21602 3.96592 6.71875 3.34365 6.71875C2.72139 6.71875 2.21865 6.21602 2.21865 5.59375ZM3.6249 10.0234C3.00264 10.0234 2.4999 9.5207 2.4999 8.89844C2.4999 8.27617 3.00264 7.77344 3.6249 7.77344C4.24717 7.77344 4.7499 8.27617 4.7499 8.89844C4.7499 9.5207 4.24717 10.0234 3.6249 10.0234ZM5.8749 4.36328C5.25264 4.36328 4.7499 3.86055 4.7499 3.23828C4.7499 2.61602 5.25264 2.11328 5.8749 2.11328C6.49717 2.11328 6.9999 2.61602 6.9999 3.23828C6.9999 3.86055 6.49717 4.36328 5.8749 4.36328ZM8.40615 12.0625C7.47451 12.0625 6.71865 11.3066 6.71865 10.375C6.71865 9.44336 7.47451 8.6875 8.40615 8.6875C9.33779 8.6875 10.0937 9.44336 10.0937 10.375C10.0937 11.3066 9.33779 12.0625 8.40615 12.0625ZM9.2499 4.75C8.62764 4.75 8.1249 4.24727 8.1249 3.625C8.1249 3.00273 8.62764 2.5 9.2499 2.5C9.87217 2.5 10.3749 3.00273 10.3749 3.625C10.3749 4.24727 9.87217 4.75 9.2499 4.75Z"
|
<path
|
||||||
fill="white"
|
d="M13.1206 10.2309C12.8886 10.0164 12.5476 9.96367 12.2558 9.91445C11.8515 9.84766 11.6968 9.77383 11.4612 9.56289C10.9585 9.11641 10.9585 8.46953 11.4612 8.02305L12.5265 7.07734C14.1577 5.63594 14.1577 3.27344 12.5265 1.83203C11.3241 0.773828 9.71045 0.25 8.0335 0.25C6.07529 0.25 4.0292 0.963672 2.45068 2.36289C-0.484863 4.95742 -0.484863 9.20781 2.45068 11.8023C3.90967 13.0926 5.87842 13.7359 7.82607 13.75H7.88584C9.8335 13.75 11.753 13.1207 13.1171 11.9078C13.6233 11.4613 13.539 10.6211 13.1206 10.2309ZM2.21865 5.59375C2.21865 4.97148 2.72139 4.46875 3.34365 4.46875C3.96592 4.46875 4.46865 4.97148 4.46865 5.59375C4.46865 6.21602 3.96592 6.71875 3.34365 6.71875C2.72139 6.71875 2.21865 6.21602 2.21865 5.59375ZM3.6249 10.0234C3.00264 10.0234 2.4999 9.5207 2.4999 8.89844C2.4999 8.27617 3.00264 7.77344 3.6249 7.77344C4.24717 7.77344 4.7499 8.27617 4.7499 8.89844C4.7499 9.5207 4.24717 10.0234 3.6249 10.0234ZM5.8749 4.36328C5.25264 4.36328 4.7499 3.86055 4.7499 3.23828C4.7499 2.61602 5.25264 2.11328 5.8749 2.11328C6.49717 2.11328 6.9999 2.61602 6.9999 3.23828C6.9999 3.86055 6.49717 4.36328 5.8749 4.36328ZM8.40615 12.0625C7.47451 12.0625 6.71865 11.3066 6.71865 10.375C6.71865 9.44336 7.47451 8.6875 8.40615 8.6875C9.33779 8.6875 10.0937 9.44336 10.0937 10.375C10.0937 11.3066 9.33779 12.0625 8.40615 12.0625ZM9.2499 4.75C8.62764 4.75 8.1249 4.24727 8.1249 3.625C8.1249 3.00273 8.62764 2.5 9.2499 2.5C9.87217 2.5 10.3749 3.00273 10.3749 3.625C10.3749 4.24727 9.87217 4.75 9.2499 4.75Z"
|
||||||
/>
|
fill="white"
|
||||||
</svg>
|
/>
|
||||||
)
|
</svg>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
@ -1,167 +1,172 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Page from '../components/Page'
|
import Page from '../components/Page'
|
||||||
|
|
||||||
export default () => (
|
export default function About() {
|
||||||
<Page>
|
return (
|
||||||
<div className="about">
|
<Page>
|
||||||
<div className="mb4">
|
<div className="about">
|
||||||
<h2>What does this do?</h2>
|
<div className="mb4">
|
||||||
<p>Carbon lets you create and share beautiful images of your source code</p>
|
<h2>What does this do?</h2>
|
||||||
<p>
|
<p>Carbon lets you create and share beautiful images of your source code</p>
|
||||||
You know all of those code screenshots you see on Twitter? Although the code's
|
<p>
|
||||||
usually impressive, we thought there was room for improvement in the aesthetic department.
|
You know all of those code screenshots you see on Twitter? Although the code's
|
||||||
So what are you waiting for? Go try it out and impress all your developer and designer
|
usually impressive, we thought there was room for improvement in the aesthetic
|
||||||
friends.{' '}
|
department. So what are you waiting for? Go try it out and impress all your developer
|
||||||
<span role="img" aria-label="Palette">
|
and designer friends.{' '}
|
||||||
🎨
|
<span role="img" aria-label="Palette">
|
||||||
</span>
|
🎨
|
||||||
</p>
|
</span>
|
||||||
</div>
|
</p>
|
||||||
<div className="mb4">
|
</div>
|
||||||
<h2>Who uses it?</h2>
|
<div className="mb4">
|
||||||
<p>
|
<h2>Who uses it?</h2>
|
||||||
Carbon is used by thousands of developers daily, including experts at:
|
<p>
|
||||||
<img
|
Carbon is used by thousands of developers daily, including experts at:
|
||||||
className="mt2"
|
<img
|
||||||
width="508px"
|
className="mt2"
|
||||||
src="/static/svg/open-source-companies-2.svg"
|
width="508px"
|
||||||
alt="Companies that trust Carbon: Google, Airbnb, GitHub, Coinbase, and Microsoft"
|
src="/static/svg/open-source-companies-2.svg"
|
||||||
/>
|
alt="Companies that trust Carbon: Google, Airbnb, GitHub, Coinbase, and Microsoft"
|
||||||
</p>
|
/>
|
||||||
</div>
|
</p>
|
||||||
<div className="mb4">
|
</div>
|
||||||
<h2>How do I use it?</h2>
|
<div className="mb4">
|
||||||
<h4 className="mb0 mt3">Import</h4>
|
<h2>How do I use it?</h2>
|
||||||
<p className="mb1 mt2">There are a few different ways to import code into Carbon:</p>
|
<h4 className="mb0 mt3">Import</h4>
|
||||||
<ul className="mt0 mb3">
|
<p className="mb1 mt2">There are a few different ways to import code into Carbon:</p>
|
||||||
<li>Drop a file into the editor</li>
|
<ul className="mt0 mb3">
|
||||||
<li>
|
<li>Drop a file into the editor</li>
|
||||||
Append a GitHub gist id to the url (
|
<li>
|
||||||
<a className="link" href="/0db00e81d5416c339181e59481c74b59">
|
Append a GitHub gist id to the url (
|
||||||
example
|
<a className="link" href="/0db00e81d5416c339181e59481c74b59">
|
||||||
|
example
|
||||||
|
</a>
|
||||||
|
)
|
||||||
|
</li>
|
||||||
|
<li>Paste your code directly</li>
|
||||||
|
</ul>
|
||||||
|
<h4 className="mb0 mt4">Customization</h4>
|
||||||
|
<p className="mt2 mb3">
|
||||||
|
Once you've got all of your code into Carbon, you can customize your image by
|
||||||
|
changing the syntax theme, background color/image, window theme, or padding.
|
||||||
|
</p>
|
||||||
|
<p className="mt2 mb3">
|
||||||
|
You can even drop an image file onto the editor to set the background to that image.
|
||||||
|
Give it a try!
|
||||||
|
</p>
|
||||||
|
<h4 className="mb0 mt4">Export/Sharing</h4>
|
||||||
|
<p className="mt2 mb3">
|
||||||
|
After you've customized your image you can Tweet a link to the image, or save it
|
||||||
|
directly.
|
||||||
|
</p>
|
||||||
|
<p className="mt2 mb3">
|
||||||
|
If you use the 'Tweet' button, Carbon will automatically make your image
|
||||||
|
accessible. However, if you want to manually tweet your Carbon image, please check out (
|
||||||
|
<a
|
||||||
|
className="link"
|
||||||
|
href="https://help.twitter.com/en/using-twitter/picture-descriptions"
|
||||||
|
>
|
||||||
|
how to make your Twitter images accessible
|
||||||
</a>
|
</a>
|
||||||
)
|
).
|
||||||
</li>
|
</p>
|
||||||
<li>Paste your code directly</li>
|
<p className="mt2 mb3">
|
||||||
</ul>
|
If you include a Carbon image in a post, the source code will be invisible to assistive
|
||||||
<h4 className="mb0 mt4">Customization</h4>
|
technology — it will not be possible to enlarge or copy it, etc. Please, think about
|
||||||
<p className="mt2 mb3">
|
adding another element with the source code as text, like (
|
||||||
Once you've got all of your code into Carbon, you can customize your image by
|
<a
|
||||||
changing the syntax theme, background color/image, window theme, or padding.
|
className="link"
|
||||||
</p>
|
href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details"
|
||||||
<p className="mt2 mb3">
|
>
|
||||||
You can even drop an image file onto the editor to set the background to that image. Give
|
an HTML Details Element
|
||||||
it a try!
|
</a>
|
||||||
</p>
|
) below the image.
|
||||||
<h4 className="mb0 mt4">Export/Sharing</h4>
|
</p>
|
||||||
<p className="mt2 mb3">
|
<h4 className="mb0 mt4" id="shortcuts">
|
||||||
After you've customized your image you can Tweet a link to the image, or save it
|
Keyboard Shortcuts
|
||||||
directly.
|
</h4>
|
||||||
</p>
|
<table className="mt2 mb3">
|
||||||
<p className="mt2 mb3">
|
<tbody>
|
||||||
If you use the 'Tweet' button, Carbon will automatically make your image
|
<tr>
|
||||||
accessible. However, if you want to manually tweet your Carbon image, please check out (
|
<td>Open settings menu</td>
|
||||||
<a className="link" href="https://help.twitter.com/en/using-twitter/picture-descriptions">
|
<td>
|
||||||
how to make your Twitter images accessible
|
<kbd>⌘ /</kbd>
|
||||||
</a>
|
</td>
|
||||||
).
|
</tr>
|
||||||
</p>
|
<tr>
|
||||||
<p className="mt2 mb3">
|
<td>Export as PNG</td>
|
||||||
If you include a Carbon image in a post, the source code will be invisible to assistive
|
<td>
|
||||||
technology — it will not be possible to enlarge or copy it, etc. Please, think about
|
<kbd>⇧ ⌘ E</kbd>
|
||||||
adding another element with the source code as text, like (
|
</td>
|
||||||
<a
|
</tr>
|
||||||
className="link"
|
<tr>
|
||||||
href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details"
|
<td>Reset settings</td>
|
||||||
>
|
<td>
|
||||||
an HTML Details Element
|
<kbd>⇧ ⌘ \</kbd>
|
||||||
</a>
|
</td>
|
||||||
) below the image.
|
</tr>
|
||||||
</p>
|
</tbody>
|
||||||
<h4 className="mb0 mt4" id="shortcuts">
|
</table>
|
||||||
Keyboard Shortcuts
|
</div>
|
||||||
</h4>
|
<div>
|
||||||
<table className="mt2 mb3">
|
<h2>I want to make this better.</h2>
|
||||||
<tbody>
|
<p>
|
||||||
<tr>
|
<a className="link" href="https://github.com/carbon-app/carbon#contribute--support">
|
||||||
<td>Open settings menu</td>
|
Contributors welcome!
|
||||||
<td>
|
</a>
|
||||||
<kbd>⌘ /</kbd>
|
</p>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Export as PNG</td>
|
|
||||||
<td>
|
|
||||||
<kbd>⇧ ⌘ E</kbd>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Reset settings</td>
|
|
||||||
<td>
|
|
||||||
<kbd>⇧ ⌘ \</kbd>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h2>I want to make this better.</h2>
|
|
||||||
<p>
|
|
||||||
<a className="link" href="https://github.com/carbon-app/carbon#contribute--support">
|
|
||||||
Contributors welcome!
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<style jsx>
|
||||||
<style jsx>
|
{`
|
||||||
{`
|
|
||||||
.about {
|
|
||||||
font-size: 16px;
|
|
||||||
max-width: 632px;
|
|
||||||
margin: 0 auto var(--x4);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.about {
|
.about {
|
||||||
max-width: 90vw;
|
font-size: 16px;
|
||||||
|
max-width: 632px;
|
||||||
|
margin: 0 auto var(--x4);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.about {
|
||||||
|
max-width: 90vw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
h4 {
|
h4 {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
p,
|
p,
|
||||||
li {
|
li {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
list-style-type: circle;
|
list-style-type: circle;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
padding: 0.25rem 0;
|
padding: 0.25rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
kbd {
|
kbd {
|
||||||
margin-left: var(--x3);
|
margin-left: var(--x3);
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
</style>
|
</style>
|
||||||
</Page>
|
</Page>
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue