File tree Expand file tree Collapse file tree 12 files changed +115
-95
lines changed Expand file tree Collapse file tree 12 files changed +115
-95
lines changed Original file line number Diff line number Diff line change 1
- import { ComponentProperties } from "@bennie-ui/types " ;
1
+ import { SectionProperties } from "@bennie-ui/section " ;
2
2
3
3
type HeaderStyles = {
4
- container : ComponentProperties ;
4
+ container : SectionProperties ;
5
+ outer : SectionProperties ;
6
+ inner : SectionProperties ;
5
7
} ;
6
- export const header_styles : HeaderStyles = {
8
+ export const HeaderStyles : HeaderStyles = {
7
9
container : {
8
- margin : { all : "2" } ,
9
- height : { value : "12" } ,
10
- flex : { justifyContent : "between" , alignItems : "center" } ,
11
- colors : { text : { color : "white" } } ,
10
+ height : { value : "14" } ,
11
+ padding : { all : "3" } ,
12
+ colors : { border : { color : "gray" } } ,
13
+ border : { style : "solid" , width : { b : "1" } } ,
14
+ flex : {
15
+ alignItems : "end" ,
16
+ } ,
17
+ width : {
18
+ value : "full" ,
19
+ } ,
20
+ overrides : {
21
+ large : {
22
+ padding : { all : "2" } ,
23
+ } ,
24
+ } ,
25
+ } ,
26
+ outer : {
27
+ width : {
28
+ value : "full" ,
29
+ } ,
30
+ flex : {
31
+ justifyContent : "center" ,
32
+ } ,
33
+ } ,
34
+ inner : {
35
+ align : {
36
+ y : "bottom" ,
37
+ } ,
38
+ width : {
39
+ value : "full" ,
40
+ } ,
41
+ flex : {
42
+ direction : "row" ,
43
+ justifyContent : "between" ,
44
+ alignItems : "end" ,
45
+ } ,
46
+
47
+ overrides : {
48
+ large : {
49
+ width : {
50
+ value : "2/3" ,
51
+ } ,
52
+ } ,
53
+ } ,
12
54
} ,
13
55
} ;
Original file line number Diff line number Diff line change 1
- import { FC } from "react" ;
2
- import { Icon } from "@bennie-ui/icons" ;
3
- import { Button } from "@bennie-ui/button" ;
1
+ import React , { FC } from "react" ;
4
2
import { Section } from "@bennie-ui/section" ;
3
+ import { Link } from "@bennie-ui/text" ;
5
4
6
- import { header_styles } from "./header.styles" ;
5
+ import { HeaderStyles } from "./header.styles" ;
7
6
export const Header : FC = ( ) => {
8
7
return (
9
- < div className = "header-wrapper" >
10
- < header >
11
- < Section { ...header_styles . container } >
12
- < Section flex = { { justifyContent : "start" , alignItems : "center" } } >
13
- < Section size = "2xl" > Bolanos Dev</ Section >
14
- </ Section >
15
- < Section >
16
- < Button onClick = { ( ) => { } } >
17
- < Icon
18
- figure = "UserIcon"
19
- colors = { { text : { color : "black" } } }
20
- dark = { { colors : { text : { color : "white" } } } }
21
- />
22
- </ Button >
23
- </ Section >
8
+ < Section id = "header" { ...HeaderStyles . container } >
9
+ < Section id = "header-outer" { ...HeaderStyles . outer } >
10
+ < Section id = "header-inner" { ...HeaderStyles . inner } >
11
+ < Link size = "xl" href = "/" >
12
+ BolanosDev
13
+ </ Link >
14
+ < Section > Docs</ Section >
24
15
</ Section >
25
- </ header >
26
- </ div >
16
+ </ Section >
17
+ </ Section >
27
18
) ;
28
19
} ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import React , { FC , ReactNode } from "react" ;
2
2
import { Section } from "@bennie-ui/section" ;
3
- import { Link } from "@bennie-ui/text " ;
3
+ import { Header } from "../header " ;
4
4
import { GlobalStyles } from "../../styles" ;
5
5
type PageProps = {
6
6
children : ReactNode ;
7
7
} ;
8
8
9
- export const meta : MetaFunction = ( ) => {
10
- return [
11
- { title : "BolanosDev" } ,
12
- {
13
- name : "description" ,
14
- content : "Welcome to BolanosDev!" ,
15
- } ,
16
- ] ;
17
- } ;
18
-
19
9
export const Page : FC < PageProps > = ( { children } ) => {
20
10
return (
21
- < Section id = "outer" { ...GlobalStyles . wrappers . outer } >
22
- < Section id = "inner" { ...GlobalStyles . wrappers . inner } >
23
- < Section
24
- id = "header"
25
- height = { { value : "8" } }
26
- flex = { {
27
- direction : "row" ,
28
- alignContent : "baseline" ,
29
- justifyContent : "between" ,
30
- alignItems : "center" ,
31
- } }
32
- >
33
- < Link size = "xl" href = "/" >
34
- BolanosDev
35
- </ Link >
36
- < Section > Docs</ Section >
37
- </ Section >
38
- < Section id = "content" padding = { { all : "8" } } height = { { value : "full" } } >
11
+ < Section id = "page" { ...GlobalStyles . wrappers . container } >
12
+ < Header />
13
+ < Section id = "" { ...GlobalStyles . wrappers . outer } >
14
+ < Section id = "content" { ...GlobalStyles . wrappers . inner } >
39
15
{ children }
40
16
</ Section >
41
17
</ Section >
Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ export const Player: FC<PlayerProps> = ({
111
111
112
112
return (
113
113
< Section
114
- margin = { { top : "8" } }
115
114
rounding = { { all : "2xl" } }
116
115
border = { { style : "solid" , width : { all : "2" } } }
117
116
>
Original file line number Diff line number Diff line change
1
+ export * from "./sidebar" ;
Original file line number Diff line number Diff line change
1
+ import React , { FC } from "react" ;
2
+ import { Link } from "@bennie-ui/text" ;
3
+ import { Section } from "@bennie-ui/section" ;
4
+
5
+ export const Sidebar : FC = ( ) => {
6
+ return (
7
+ < Section >
8
+ < Link href = "/interviews" colors = { { text : { color : "white" } } } >
9
+ Interviews
10
+ </ Link >
11
+ < Section flex = { { direction : "col" } } >
12
+ < Link href = "/interviews/fizzbuzz" > FizzBuzz</ Link >
13
+ < Link href = "/interviews/fibonacci" > Fibonacci</ Link >
14
+ < Link href = "/interviews/palindromes" > Palindromes</ Link >
15
+ </ Section >
16
+ </ Section >
17
+ ) ;
18
+ } ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default function Examples() {
6
6
< div >
7
7
< h1 > Example</ h1 >
8
8
9
- < Section grid = { { templates : { columns : "5" } } } >
9
+ < Section align = { { x : "center" } } >
10
10
< div > item1</ div >
11
11
< div > item2</ div >
12
12
< div > item3</ div >
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default function Index() {
66
66
{ data . map ( ( it , idx ) => (
67
67
< Section
68
68
key = { idx }
69
- align = "center"
69
+ align = { { x : "center" } }
70
70
rounding = { { all : "md" } }
71
71
border = { { style : "solid" , width : { all : "1" } } }
72
72
colors = { { background : { color : "blue" , weight : "400" } } }
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default function Index() {
44
44
{ data . map ( ( it , idx ) => (
45
45
< Section
46
46
key = { idx }
47
- align = "center"
47
+ align = { { x : "center" } }
48
48
rounding = { { all : "md" } }
49
49
border = { { style : "solid" , width : { all : "1" } } }
50
50
colors = { { background : { color : "blue" , weight : "400" } } }
You can’t perform that action at this time.
0 commit comments