Skip to content

Commit 7e47095

Browse files
committed
Add docs for nullstack/logo in EN/BR
1 parent 46360d1 commit 7e47095

File tree

6 files changed

+83
-1
lines changed

6 files changed

+83
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Nullstack Logo
3+
description: Nullstack comes with it's set of logos built-in
4+
---
5+
6+
Nullstack comes with it's set of logos built-in to be used as components:
7+
8+
```jsx
9+
import Nullstack from 'nullstack';
10+
import Logo from 'nullstack/logo';
11+
12+
class Application extends Nullstack {
13+
14+
render() {
15+
return (
16+
<main>
17+
<Logo height={30} light />
18+
<Logo height={30} monotone />
19+
<Logo height={30} light monotone />
20+
<Logo height={30} duotone />
21+
<Logo height={30} light duotone />
22+
</main>
23+
)
24+
}
25+
26+
}
27+
28+
export default Application;
29+
```
30+
31+
The above components and it's attributes generates the following logos:
32+
33+
![Nullstack Logos](/nullstack-logos.png)
34+
35+
The Logo uses full width and has color `duotone` by default.

i18n/en-US/components/Components.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ topics:
3131
repository: "https://github.com/Mortaro/nullstack-cep-input"
3232
- title: "Phone Input"
3333
repository: "https://github.com/Mortaro/nullstack-phone-input"
34+
- title: "Assets"
35+
projects:
36+
- title: "Nullstack Logo"
37+
repository: "/nullstack-logo"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Logo Nullstack
3+
description: Nullstack vem com seu conjunto de logotipos prontos pra uso
4+
---
5+
6+
O Nullstack vem com seu conjunto de logotipos prontos para serem usados ​​como componentes:
7+
8+
```jsx
9+
import Nullstack from 'nullstack';
10+
import Logo from 'nullstack/logo';
11+
12+
class Application extends Nullstack {
13+
14+
render() {
15+
return (
16+
<main>
17+
<Logo height={30} light />
18+
<Logo height={30} monotone />
19+
<Logo height={30} light monotone />
20+
<Logo height={30} duotone />
21+
<Logo height={30} light duotone />
22+
</main>
23+
)
24+
}
25+
26+
}
27+
28+
export default Application;
29+
```
30+
31+
Os componentes acima e seus atributos geram os seguintes logotipos:
32+
33+
![Nullstack Logos](/nullstack-logos.png)
34+
35+
O logotipo usa largura total e cores de `duotone` por padrão.

i18n/pt-BR/components/Components.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ topics:
3131
repository: "https://github.com/Mortaro/nullstack-cep-input"
3232
- title: "Input para Telefone"
3333
repository: "https://github.com/Mortaro/nullstack-phone-input"
34+
- title: "Assets"
35+
projects:
36+
- title: "Logo Nullstack"
37+
repository: "/pt-br/nullstack-logo"

public/nullstack-logos.png

24 KB
Loading

src/Components.njs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ class Components extends Translatable {
88

99
renderProject({title, repository}) {
1010
return (
11-
<a href={repository} target="_blank" rel="noopener" class="xl x12 p3y bcm2t ci1">
11+
<a
12+
href={repository}
13+
target={repository.indexOf('http') === 0 && "_blank"}
14+
rel="noopener" class="xl x12 p3y bcm2t ci1"
15+
>
1216
{title}
1317
</a>
1418
)

0 commit comments

Comments
 (0)