1
0
Fork 0

missing files from previous commit

This commit is contained in:
Techognito 2025-08-20 14:24:57 +02:00
parent 17293afd1e
commit 60aaf17af3
3 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,9 @@
import * as React from 'react';
import Button from '@mui/material/Button';
export default function TextButtons() {
return (
<Button variant="contained">Temp Button</Button>
);
}

13
src/ProjectButtons.json Normal file
View file

@ -0,0 +1,13 @@
[
{
"text": "GarageApp",
"href": "GarageApp",
"var":"contained"
},
{
"text": "Wisher",
"href": "Wisher",
"var": "outlined"
}
]

32
src/buttons.tsx Normal file
View file

@ -0,0 +1,32 @@
import * as React from 'react';
import Button from '@mui/material/Button';
import Container from '@mui/material/Container';
import Grid from '@mui/material/Grid';
import btns from "./ProjectButtons.json";
// const btns = [
// { text: 'GarageApp', href: 'GarageApp', var:'contained' },
// { text: 'Wisher', href: 'Wisher', var: 'outlined' }
// ];
const btn = props => {
return (
<Button variant="contained" href={props.href}>{props.text}</Button>
);
};
const BtnGrid = () => {
return (
<Container>
<Grid container spacing={2}>
{btns.map((btn, index) => (
<Grid item key={index} xs={12} sm={6} md={4}>
<Button variant={btn.var} href={btn.href}>{btn.text}</Button>
</Grid>
))}
</Grid>
</Container>
);
};
export default BtnGrid