-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
505 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.36 KB
strudel-cookiecutter/base/{@cookiecutter.name@}/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+95.5 KB
strudel-cookiecutter/base/{@cookiecutter.name@}/public/strudel-logo-header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.68 KB
strudel-cookiecutter/base/{@cookiecutter.name@}/public/strudel-logo-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
strudel-cookiecutter/base/{@cookiecutter.name@}/src/components/Footer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Box, Container, Grid, Stack, Typography } from '@mui/material'; | ||
import React from 'react'; | ||
import { config } from '../../strudel.config'; | ||
import { AppLink } from './AppLink'; | ||
import { ImageWrapper } from './ImageWrapper'; | ||
|
||
/** | ||
* Bottom footer component | ||
*/ | ||
export const Footer: React.FC = () => { | ||
return ( | ||
<Box | ||
sx={{ | ||
backgroundColor: 'white', | ||
padding: 4 | ||
}} | ||
> | ||
<Container> | ||
<Grid container> | ||
<Grid item md={6}> | ||
<Stack | ||
direction="row" | ||
useFlexGap | ||
sx={{ | ||
flexWrap: 'wrap', | ||
}} | ||
> | ||
{config.footer.links.map((link, i) => ( | ||
<AppLink key={`${link.path}-${i}`} to={link.path}> | ||
{link.label} | ||
</AppLink> | ||
))} | ||
</Stack> | ||
</Grid> | ||
<Grid item md={6}> | ||
<Stack alignItems="center"> | ||
<Typography>{config.footer.info}</Typography> | ||
{config.footer.image && ( | ||
<AppLink to="/"> | ||
<ImageWrapper height={60}> | ||
<img src={config.footer.image} /> | ||
</ImageWrapper> | ||
</AppLink> | ||
)} | ||
</Stack> | ||
</Grid> | ||
</Grid> | ||
</Container> | ||
</Box> | ||
) | ||
} |
2 changes: 1 addition & 1 deletion
2
strudel-cookiecutter/base/{@cookiecutter.name@}/src/components/ImageWrapper.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
strudel-cookiecutter/base/{@cookiecutter.name@}/src/components/Layout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Box, Stack } from '@mui/material'; | ||
import React, { PropsWithChildren } from 'react'; | ||
import { Footer } from './Footer'; | ||
import { TopBar } from './TopBar'; | ||
|
||
/** | ||
* Basic layout with navbar and footer | ||
*/ | ||
export const Layout: React.FC<PropsWithChildren> = ({ children }) => { | ||
return ( | ||
<Stack | ||
sx={{ | ||
height: '100%' | ||
}} | ||
> | ||
<TopBar /> | ||
<Box | ||
sx={{ | ||
flex: 1, | ||
}} | ||
> | ||
{children} | ||
</Box> | ||
<Footer /> | ||
</Stack> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.