Skip to content

Commit 3ebcf50

Browse files
authored
1 parent df8368a commit 3ebcf50

File tree

5 files changed

+115
-3
lines changed

5 files changed

+115
-3
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
import * as React from 'react';
2+
3+
export default ({ width = 32, height = 32, className }) => (
4+
<svg
5+
width={width}
6+
height={height}
7+
className={className}
8+
viewBox="0 0 344 344"
9+
xmlns="http://www.w3.org/2000/svg"
10+
>
11+
<defs>
12+
<linearGradient
13+
x1="20.938%"
14+
y1="135.775%"
15+
x2="67.331%"
16+
y2="141.765%"
17+
id="a"
18+
>
19+
<stop stopColor="#1A7D75" offset="0%" />
20+
<stop stopColor="#1A8864" offset="100%" />
21+
</linearGradient>
22+
<linearGradient
23+
x1="5.879%"
24+
y1="11.118%"
25+
x2="-17.306%"
26+
y2="72.271%"
27+
id="b"
28+
>
29+
<stop stopColor="#168A81" offset="1.293%" />
30+
<stop stopColor="#31A97F" offset="100%" />
31+
</linearGradient>
32+
<linearGradient
33+
x1="-144.301%"
34+
y1="53.434%"
35+
x2="-70.357%"
36+
y2="117.634%"
37+
id="c"
38+
>
39+
<stop stopColor="#27A59B" offset="0%" />
40+
<stop stopColor="#64D8A2" offset="100%" />
41+
</linearGradient>
42+
<linearGradient
43+
x1="-143.417%"
44+
y1="60.471%"
45+
x2="-4.693%"
46+
y2="180.918%"
47+
id="d"
48+
>
49+
<stop stopColor="#27A59B" offset="0%" />
50+
<stop stopColor="#64D8A2" offset="100%" />
51+
</linearGradient>
52+
<linearGradient
53+
x1="208.846%"
54+
y1="-141.921%"
55+
x2="86.111%"
56+
y2="-183.711%"
57+
id="e"
58+
>
59+
<stop stopColor="#27A59B" offset="0%" />
60+
<stop stopColor="#64D8A2" offset="100%" />
61+
</linearGradient>
62+
</defs>
63+
<g fill="none" fillRule="evenodd">
64+
<path
65+
d="M310.449 142.098c16.511-.795 31.126 12.014 32.551 28.54 6.176 79.942-65.669 169.347-168.771 172.212-16.523.459-30.289-12.601-30.747-29.17-.457-16.569 12.566-30.373 29.089-30.832 68.399-1.901 111.73-60.979 109.417-109.334-.792-16.557 11.951-30.622 28.461-31.416z"
66+
fill="url(#a)"
67+
/>
68+
<path
69+
d="M30.322 140.395c16.529 0 29.929 13.437 29.929 30.013 0 69.182 55.627 113.956 111.188 112.585 16.524-.408 30.25 12.694 30.656 29.265.407 16.57-12.659 30.334-29.184 30.742C86.026 345.144.095 275.584.095 170.408c0-16.576 13.697-30.013 30.227-30.013z"
70+
fill="url(#b)"
71+
/>
72+
<path
73+
d="M235.681 172.735c0-16.97 13.842-30.727 30.917-30.727h45.057c17.075 0 31.345 13.757 31.345 30.727s-14.27 30.727-31.345 30.727h-45.057c-17.075 0-30.917-13.757-30.917-30.727z"
74+
fill="url(#c)"
75+
fillRule="nonzero"
76+
/>
77+
<path
78+
d="M141.142 172.78c0-16.995 13.754-30.772 30.702-30.772s30.702 13.777 30.702 30.772c0 16.995-13.754 30.772-30.702 30.772s-30.702-13.777-30.702-30.772z"
79+
fill="url(#d)"
80+
fillRule="nonzero"
81+
/>
82+
<path
83+
d="M201.696 29.008c.686 16.561-12.147 30.544-28.662 31.232-71.294 2.969-114.819 59.003-112.7 112.209.659 16.562-11.927 30.525-28.443 31.186-16.517.661-31.041-12.705-31.7-29.268C-3.263 87.664 68.931 1.95 170.55.267c16.516-.688 30.46 12.18 31.146 28.741z"
84+
fill="url(#e)"
85+
/>
86+
</g>
87+
</svg>
88+
);

packages/common/src/templates/gatsby.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import Template from './template';
32
import { decorateSelector } from '../theme';
43
import configurations from './configuration';
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import Template from './template';
2+
import { decorateSelector } from '../theme';
3+
import configurations from './configuration';
4+
5+
export default new Template(
6+
'gridsome',
7+
'Gridsome',
8+
'https://gridsome.org/',
9+
'github/SaraVieira/gridsome-starter-codesandbox',
10+
decorateSelector(() => '#5ED3A2'),
11+
{
12+
distDir: 'dist',
13+
isServer: true,
14+
mainFile: ['/src/pages/index.vue'],
15+
showOnHomePage: true,
16+
main: true,
17+
}
18+
);

packages/common/src/templates/icons.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import React from '../components/logos/React';
42
import Angular from '../components/logos/Angular';
53
import Ember from '../components/logos/Ember';
@@ -21,6 +19,7 @@ import Static from '../components/logos/Static';
2119
import Styleguidist from '../components/logos/Styleguidist';
2220
import VuePress from '../components/logos/VuePress';
2321
import MDXDeck from '../components/logos/mdx-deck';
22+
import GridSome from '../components/logos/Gridsome';
2423

2524
import {
2625
react,
@@ -43,6 +42,7 @@ import {
4342
sapper,
4443
staticTemplate,
4544
styleguidist,
45+
gridsome,
4646
vuepress,
4747
mdxDeck
4848
} from './';
@@ -98,6 +98,8 @@ export default function getIcon(theme: TemplateType): ReturnedIcon {
9898
return Static;
9999
case styleguidist.name:
100100
return Styleguidist;
101+
case gridsome.name:
102+
return GridSome;
101103
case vuepress.name:
102104
return VuePress;
103105
case mdxDeck.name:

packages/common/src/templates/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import sapper from './sapper';
2020
import nest from './nest';
2121
import staticTemplate from './static';
2222
import styleguidist from './styleguidist';
23+
import gridsome from './gridsome';
2324
import vuepress from './vuepress';
2425
import mdxDeck from './mdx-deck';
2526

@@ -46,6 +47,7 @@ export {
4647
ember,
4748
staticTemplate,
4849
styleguidist,
50+
gridsome,
4951
vuepress,
5052
mdxDeck
5153
};
@@ -69,6 +71,7 @@ export type TemplateType =
6971
| 'nest'
7072
| 'static'
7173
| 'styleguidist'
74+
| 'gridsome'
7275
| 'vuepress'
7376
| 'mdx-deck';
7477

@@ -118,6 +121,8 @@ export default function getDefinition(theme: TemplateType) {
118121
return styleguidist;
119122
case mdxDeck.name:
120123
return mdxDeck;
124+
case gridsome.name:
125+
return gridsome;
121126
case ember.name:
122127
return ember;
123128
case vuepress.name:

0 commit comments

Comments
 (0)