File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const config = {
2121 {
2222 resolve : "gatsby-plugin-manifest" ,
2323 options : {
24- icon : "src/shell/icon.png " ,
24+ icon : "src/shell/icon.svg " ,
2525 } ,
2626 } ,
2727 "gatsby-plugin-mdx" ,
Original file line number Diff line number Diff line change 1+ import { AppTheme } from "@/shell/theme" ;
2+ import { css } from "@emotion/react" ;
3+ import Typography from "@mui/material/Typography" ;
4+ import Stack from "@mui/material/Stack" ;
5+ import * as React from "react" ;
6+
7+ export type WipProps = React . PropsWithChildren < { } > ;
8+
9+ const styles = {
10+ root : ( theme : AppTheme ) =>
11+ css ( {
12+ minHeight : "90vh" ,
13+ } ) ,
14+ description : ( theme : AppTheme ) =>
15+ css ( {
16+ fontWeight : theme . typography . fontWeightMedium ,
17+ } ) ,
18+ } ;
19+
20+ export const Wip = ( { } : WipProps ) => {
21+ return (
22+ < Stack css = { styles . root } justifyContent = "center" alignItems = "center" >
23+ < Typography css = { styles . description } variant = "h1" >
24+ { "Wip ;)" }
25+ </ Typography >
26+ </ Stack >
27+ ) ;
28+ } ;
Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ const styles = {
3737 gridArea : "left" ,
3838 textTransform : "uppercase" ,
3939 } ) ,
40-
41- brand : ( theme : AppTheme ) => css ( { } ) ,
4240 } ,
4341
4442 right : {
@@ -59,6 +57,11 @@ const styles = {
5957 ` ,
6058 alignItems : "center" ,
6159 } ) ,
60+
61+ brand : ( theme : AppTheme ) =>
62+ css ( {
63+ fontWeight : theme . typography . fontWeightBold ,
64+ } ) ,
6265} ;
6366
6467export const MainLayout = ( {
@@ -75,7 +78,7 @@ export const MainLayout = ({
7578 < Stack css = { styles . left . root } direction = "row" alignItems = "center" >
7679 < Link
7780 component = { GatsbyLink }
78- css = { styles . left . brand }
81+ css = { styles . brand }
7982 variant = "h6"
8083 underline = "none"
8184 to = "/"
@@ -86,9 +89,17 @@ export const MainLayout = ({
8689 component = { GatsbyLink }
8790 variant = "text"
8891 size = "large"
89- to = "/posts"
92+ to = "/about"
93+ >
94+ about
95+ </ Button >
96+ < Button
97+ component = { GatsbyLink }
98+ variant = "text"
99+ size = "large"
100+ to = "/projects"
90101 >
91- Posts
102+ Projects
92103 </ Button >
93104 </ Stack >
94105 < Stack css = { styles . right . root } direction = "row" alignItems = "center" >
Original file line number Diff line number Diff line change 1+ import * as React from "react" ;
2+ import { Link , navigate } from "gatsby" ;
3+ import { Shell } from "@/shell" ;
4+ import { MainLayoutContainer } from "@/layouts/main" ;
5+ import Stack from "@mui/material/Stack" ;
6+ import { css } from "@emotion/react" ;
7+ import { AppTheme } from "@/shell/theme" ;
8+ import Typography from "@mui/material/Typography" ;
9+ import Container from "@mui/material/Container" ;
10+
11+ const styles = {
12+ mainWrapper : ( theme : AppTheme ) =>
13+ css ( {
14+ minHeight : "90vh" ,
15+ } ) ,
16+
17+ brief : ( theme : AppTheme ) =>
18+ css ( {
19+ fontWeight : theme . typography . fontWeightMedium ,
20+ } ) ,
21+ } ;
22+
23+ function Index ( ) {
24+ return (
25+ < Shell >
26+ < MainLayoutContainer >
27+ < Container maxWidth = "lg" >
28+ < Stack
29+ css = { styles . mainWrapper }
30+ justifyContent = "center"
31+ alignItems = "center"
32+ >
33+ < Typography css = { styles . brief } variant = "h1" >
34+ { "A developer, an open source lover and a gamer" }
35+ </ Typography >
36+ </ Stack >
37+ </ Container >
38+ </ MainLayoutContainer >
39+ </ Shell >
40+ ) ;
41+ }
42+
43+ export default Index ;
Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ import { Link, navigate } from "gatsby";
33import { Shell } from "@/shell" ;
44import { MainLayoutContainer } from "@/layouts/main" ;
55import Stack from "@mui/material/Stack" ;
6+ import { Wip } from "@/components/wip" ;
67
78function Index ( ) {
89 return (
910 < Shell >
1011 < MainLayoutContainer >
11- < Stack > Home </ Stack >
12+ < Wip / >
1213 </ MainLayoutContainer >
1314 </ Shell >
1415 ) ;
Original file line number Diff line number Diff line change @@ -3,15 +3,16 @@ import { Link, navigate } from "gatsby";
33import { Shell } from "@/shell" ;
44import { MainLayoutContainer } from "@/layouts/main" ;
55import Stack from "@mui/material/Stack" ;
6+ import { Wip } from "@/components/wip" ;
67
7- function Index ( ) {
8+ function Projects ( ) {
89 return (
910 < Shell >
1011 < MainLayoutContainer >
11- < Stack > Posts </ Stack >
12+ < Wip / >
1213 </ MainLayoutContainer >
1314 </ Shell >
1415 ) ;
1516}
1617
17- export default Index ;
18+ export default Projects ;
Original file line number Diff line number Diff line change 33 ThemeProvider as MuiThemeProvider ,
44 createTheme ,
55 Theme as MuiTheme ,
6+ ThemeOptions ,
67} from "@mui/material" ;
78import * as React from "react" ;
89import { create } from "zustand" ;
@@ -19,9 +20,24 @@ export enum ThemeMode {
1920 Dark = "dark" ,
2021}
2122
22- export const lightTheme = createTheme ( { } ) ;
23+ const themeOption = {
24+ palette : {
25+ primary : {
26+ main : "#6750A4" ,
27+ } ,
28+ secondary : {
29+ main : "#958da4" ,
30+ } ,
31+ } ,
32+ } satisfies ThemeOptions ;
33+
34+ export const lightTheme = createTheme ( {
35+ ...themeOption ,
36+ } ) ;
2337export const darkTheme = createTheme ( {
38+ ...themeOption ,
2439 palette : {
40+ ...themeOption . palette ,
2541 mode : "dark" ,
2642 } ,
2743} ) ;
@@ -34,7 +50,7 @@ export type ThemeModeState = {
3450export const useThemeMode = create (
3551 persist < ThemeModeState > (
3652 ( set ) => ( {
37- themeMode : ThemeMode . Light ,
53+ themeMode : ThemeMode . Dark ,
3854 setThemeMode : ( mode ) =>
3955 set ( ( state ) => ( {
4056 themeMode : mode ,
You can’t perform that action at this time.
0 commit comments