Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
4a7d9096
Unverified
Commit
4a7d9096
authored
Mar 31, 2021
by
Eric Rosenbaum
Committed by
GitHub
Mar 31, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5211 from ericrosenbaum/more-components
Add more components to the components page
parents
80258f4b
542c416e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
141 additions
and
56 deletions
+141
-56
src/components/grid/grid.json
src/components/grid/grid.json
+64
-48
src/views/components/components.jsx
src/views/components/components.jsx
+64
-8
src/views/components/components.scss
src/views/components/components.scss
+13
-0
No files found.
src/components/grid/grid.json
View file @
4a7d9096
...
@@ -2,129 +2,145 @@
...
@@ -2,129 +2,145 @@
{
{
"id"
:
1
,
"id"
:
1
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
2
,
"id"
:
2
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
3
,
"id"
:
3
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
4
,
"id"
:
4
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
5
,
"id"
:
5
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
6
,
"id"
:
6
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
7
,
"id"
:
7
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
8
,
"id"
:
8
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
9
,
"id"
:
9
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
10
,
"id"
:
10
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
11
,
"id"
:
11
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
12
,
"id"
:
12
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
13
,
"id"
:
13
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
14
,
"id"
:
14
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
15
,
"id"
:
15
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
},
},
{
{
"id"
:
16
,
"id"
:
16
,
"type"
:
"project"
,
"type"
:
"project"
,
"title"
:
"Project"
,
"title"
:
"Project
Title
"
,
"thumbnailUrl"
:
""
,
"thumbnailUrl"
:
""
,
"creator"
:
""
,
"author"
:
{
"username"
:
"project creator"
},
"href"
:
"#"
"href"
:
"#"
,
"stats"
:
{}
}
}
]
]
src/views/components/components.jsx
View file @
4a7d9096
...
@@ -8,22 +8,78 @@ const Carousel = require('../../components/carousel/carousel.jsx');
...
@@ -8,22 +8,78 @@ const Carousel = require('../../components/carousel/carousel.jsx');
const
Form
=
require
(
'
../../components/forms/form.jsx
'
);
const
Form
=
require
(
'
../../components/forms/form.jsx
'
);
const
Input
=
require
(
'
../../components/forms/input.jsx
'
);
const
Input
=
require
(
'
../../components/forms/input.jsx
'
);
const
Spinner
=
require
(
'
../../components/spinner/spinner.jsx
'
);
const
Spinner
=
require
(
'
../../components/spinner/spinner.jsx
'
);
const
Grid
=
require
(
'
../../components/grid/grid.jsx
'
);
const
TextArea
=
require
(
'
../../components/forms/textarea.jsx
'
);
const
SubNavigation
=
require
(
'
../../components/subnavigation/subnavigation.jsx
'
);
const
Select
=
require
(
'
../../components/forms/select.jsx
'
);
require
(
'
./components.scss
'
);
require
(
'
./components.scss
'
);
const
Components
=
()
=>
(
const
Components
=
()
=>
(
<
div
className=
"components"
>
<
div
className=
"components"
>
<
div
className=
"inner"
>
<
div
className=
"inner"
>
<
h1
>
Nav Bubbles
</
h1
>
<
div
className=
"subnavigation"
>
<
SubNavigation
>
<
a
href=
""
>
<
li
className=
"active"
>
cats
</
li
>
</
a
>
<
a
href=
""
>
<
li
>
also cats
</
li
>
</
a
>
<
a
href=
""
>
<
li
>
not cats
</
li
>
</
a
>
</
SubNavigation
>
</
div
>
<
h1
>
Grid
</
h1
>
<
Grid
showAvatar
/>
<
h1
>
Button
</
h1
>
<
h1
>
Button
</
h1
>
<
Button
>
I love button
</
Button
>
<
Button
>
I love button
s
</
Button
>
<
h1
>
Form
</
h1
>
<
h1
>
Form
</
h1
>
<
div
className=
"form"
>
<
Form
>
<
Form
>
<
Select
label=
"Drop-down"
required
options=
{
[
{
label
:
'
first option
'
,
value
:
1
},
{
label
:
'
second option
'
,
value
:
2
},
{
label
:
'
third option
'
,
value
:
3
}
]
}
name=
"name"
value=
{
1
}
/>
<
Input
<
Input
label=
"Text input"
required
maxLength=
"30"
maxLength=
"30"
name=
"test"
name=
"test"
type=
"text"
/>
<
TextArea
label=
"Text area"
name=
"textarea1"
required
/>
/>
</
Form
>
</
Form
>
</
div
>
<
h1
>
Box Component
</
h1
>
<
h1
>
Box Component
</
h1
>
<
Box
<
Box
more=
"Cat Gifs"
more=
"Cat Gifs"
...
...
src/views/components/components.scss
View file @
4a7d9096
...
@@ -5,6 +5,19 @@
...
@@ -5,6 +5,19 @@
margin
:
0
0
10px
0
;
margin
:
0
0
10px
0
;
}
}
.subnavigation
{
li
{
background-color
:
$active-gray
;
&
.active
{
background-color
:
$ui-blue
;
}
}
}
.form
{
width
:
200px
;
}
.colors
{
.colors
{
span
{
span
{
display
:
inline-block
;
display
:
inline-block
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment