Vibe-code дизайн fix
This commit is contained in:
parent
bc36f1e56d
commit
5669a70156
@ -83,7 +83,7 @@ function App() {
|
|||||||
{/* Left side - Logo */}
|
{/* Left side - Logo */}
|
||||||
<Box sx={{ display: 'flex', alignItems: 'center', gap: 2 }}>
|
<Box sx={{ display: 'flex', alignItems: 'center', gap: 2 }}>
|
||||||
<LogoText variant="h6" sx={{ textDecoration: 'none' }}>
|
<LogoText variant="h6" sx={{ textDecoration: 'none' }}>
|
||||||
🎮 Autogeneration wiki
|
🎮 Autogenerated wiki
|
||||||
</LogoText>
|
</LogoText>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
|||||||
@ -43,7 +43,6 @@ export default function AbilityFull(props: { abilityId?: number, mod: IMod, race
|
|||||||
const StyledTableCell = styled(TableCell)(({theme}) => ({
|
const StyledTableCell = styled(TableCell)(({theme}) => ({
|
||||||
[`&.${tableCellClasses.head}`]: {
|
[`&.${tableCellClasses.head}`]: {
|
||||||
backgroundColor: 'rgba(233, 69, 96, 0.15)',
|
backgroundColor: 'rgba(233, 69, 96, 0.15)',
|
||||||
color: '#ffffff',
|
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
marginRight: 'auto',
|
marginRight: 'auto',
|
||||||
marginLeft: 'auto',
|
marginLeft: 'auto',
|
||||||
|
|||||||
@ -28,7 +28,6 @@ import {DescriptionBox} from "../commons/DescriptionBox";
|
|||||||
const SectionTitle = styled(Typography)(({ theme }) => ({
|
const SectionTitle = styled(Typography)(({ theme }) => ({
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
mb: 2,
|
mb: 2,
|
||||||
color: '#ffffff',
|
|
||||||
fontSize: '1.25rem',
|
fontSize: '1.25rem',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,6 @@ export default function DpsTable(props: { mod: IMod, minDamageValue?: number, mi
|
|||||||
const StyledTableCell = styled(TableCell)(({theme}) => ({
|
const StyledTableCell = styled(TableCell)(({theme}) => ({
|
||||||
[`&.${tableCellClasses.head}`]: {
|
[`&.${tableCellClasses.head}`]: {
|
||||||
backgroundColor: 'rgba(233, 69, 96, 0.15)',
|
backgroundColor: 'rgba(233, 69, 96, 0.15)',
|
||||||
color: '#ffffff',
|
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
marginRight: 'auto',
|
marginRight: 'auto',
|
||||||
marginLeft: 'auto',
|
marginLeft: 'auto',
|
||||||
|
|||||||
@ -32,7 +32,6 @@ const StyledPaper = styled(Paper)(({ theme }) => ({
|
|||||||
const SectionTitle = styled(Typography)(({ theme }) => ({
|
const SectionTitle = styled(Typography)(({ theme }) => ({
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
mb: 2,
|
mb: 2,
|
||||||
color: '#ffffff',
|
|
||||||
fontSize: '1.25rem',
|
fontSize: '1.25rem',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@ -16,10 +16,8 @@ const StyledPaper = styled(Paper)(({ theme }) => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
const StyledTable = styled(Table)(({ theme }) => ({
|
const StyledTable = styled(Table)(({ theme }) => ({
|
||||||
color: '#ffffff',
|
|
||||||
'& .MuiTableCell-head': {
|
'& .MuiTableCell-head': {
|
||||||
backgroundColor: 'rgba(233, 69, 96, 0.15)',
|
backgroundColor: 'rgba(233, 69, 96, 0.15)',
|
||||||
color: '#ffffff',
|
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
fontSize: '1rem',
|
fontSize: '1rem',
|
||||||
borderBottom: '2px solid rgba(233, 69, 96, 0.3)',
|
borderBottom: '2px solid rgba(233, 69, 96, 0.3)',
|
||||||
@ -35,7 +33,6 @@ const StyledTable = styled(Table)(({ theme }) => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
const StyledHeaderLink = styled(StyledLink)(({ theme }) => ({
|
const StyledHeaderLink = styled(StyledLink)(({ theme }) => ({
|
||||||
color: '#ffffff',
|
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
fontSize: '1.1rem',
|
fontSize: '1.1rem',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
@ -205,7 +202,7 @@ export default function UnitsTable(prop: {modId: number}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(unitsTable.racesUnits.length > 10){
|
if(unitsTable.racesUnits.length > 10){
|
||||||
return <Grid2 sx={{ color: '#ffffff' }}>
|
return <Grid2>
|
||||||
{generateRaceList(unitsTable)}
|
{generateRaceList(unitsTable)}
|
||||||
</Grid2>
|
</Grid2>
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -40,7 +40,6 @@ export default function WeaponFull(props: {weaponId: number, isDefault: Boolean,
|
|||||||
const StyledTableCell = styled(TableCell)(({theme}) => ({
|
const StyledTableCell = styled(TableCell)(({theme}) => ({
|
||||||
[`&.${tableCellClasses.head}`]: {
|
[`&.${tableCellClasses.head}`]: {
|
||||||
backgroundColor: 'rgba(233, 69, 96, 0.15)',
|
backgroundColor: 'rgba(233, 69, 96, 0.15)',
|
||||||
color: '#ffffff',
|
|
||||||
marginRight: 'auto',
|
marginRight: 'auto',
|
||||||
marginLeft: 'auto',
|
marginLeft: 'auto',
|
||||||
paddingLeft: 10,
|
paddingLeft: 10,
|
||||||
|
|||||||
@ -10,7 +10,6 @@ import {styled} from '@mui/material/styles';
|
|||||||
const SectionTitle = styled(Typography)(({ theme }) => ({
|
const SectionTitle = styled(Typography)(({ theme }) => ({
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
mb: 2,
|
mb: 2,
|
||||||
color: '#ffffff',
|
|
||||||
fontSize: '1.25rem',
|
fontSize: '1.25rem',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
14
src/commons/BackButton.tsx
Normal file
14
src/commons/BackButton.tsx
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import {Button, Link} from "@mui/material";
|
||||||
|
import {styled} from '@mui/material/styles';
|
||||||
|
|
||||||
|
export const BackButton = styled(Button)(({ theme }) => ({
|
||||||
|
marginBottom: theme.spacing(3),
|
||||||
|
color: '#e94560BB',
|
||||||
|
borderColor: 'rgba(233, 69, 96, 0.5)',
|
||||||
|
textTransform: 'none',
|
||||||
|
fontWeight: 600,
|
||||||
|
'&:hover': {
|
||||||
|
borderColor: '#e94560',
|
||||||
|
backgroundColor: 'rgba(233, 69, 96, 0.1)',
|
||||||
|
},
|
||||||
|
}));
|
||||||
@ -2,11 +2,11 @@ import {Link} from "@mui/material";
|
|||||||
import {styled} from '@mui/material/styles';
|
import {styled} from '@mui/material/styles';
|
||||||
|
|
||||||
export const StyledLink = styled(Link)(({ theme }) => ({
|
export const StyledLink = styled(Link)(({ theme }) => ({
|
||||||
color: '#e94560',
|
color: '#e94560BB',
|
||||||
textDecoration: 'none',
|
textDecoration: 'none',
|
||||||
transition: 'all 0.2s ease',
|
transition: 'all 0.2s ease',
|
||||||
'&:hover': {
|
'&:hover': {
|
||||||
color: '#ff6b6b',
|
color: '#ff6b6bBB',
|
||||||
textDecoration: 'underline',
|
textDecoration: 'underline',
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|||||||
@ -8,7 +8,7 @@ body {
|
|||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
background-color: #0a0a0a;
|
background-color: #0a0a0a;
|
||||||
color: #ffffff;
|
color: rgba(255, 255, 255, 0.85);
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
|
|||||||
@ -36,24 +36,12 @@ import DeathExplosion from "../classes/DeathExplosion";
|
|||||||
import {styled} from '@mui/material/styles';
|
import {styled} from '@mui/material/styles';
|
||||||
import {DescriptionBox} from "../commons/DescriptionBox";
|
import {DescriptionBox} from "../commons/DescriptionBox";
|
||||||
import {ArrowBack} from "@mui/icons-material";
|
import {ArrowBack} from "@mui/icons-material";
|
||||||
|
import {BackButton} from "../commons/BackButton";
|
||||||
|
|
||||||
// Styled components
|
|
||||||
const BackButton = styled(Button)(({ theme }) => ({
|
|
||||||
marginBottom: theme.spacing(3),
|
|
||||||
color: '#e94560',
|
|
||||||
borderColor: 'rgba(233, 69, 96, 0.5)',
|
|
||||||
textTransform: 'none',
|
|
||||||
fontWeight: 600,
|
|
||||||
'&:hover': {
|
|
||||||
borderColor: '#e94560',
|
|
||||||
backgroundColor: 'rgba(233, 69, 96, 0.1)',
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
const SectionTitle = styled(Typography)(({ theme }) => ({
|
const SectionTitle = styled(Typography)(({ theme }) => ({
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
mb: 2,
|
mb: 2,
|
||||||
color: '#ffffff',
|
|
||||||
fontSize: '1.25rem',
|
fontSize: '1.25rem',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@ -128,7 +116,6 @@ function Building(building: IBuilding, mod: IMod) {
|
|||||||
<Typography variant="h4" component="h2" sx={{
|
<Typography variant="h4" component="h2" sx={{
|
||||||
fontWeight: 800,
|
fontWeight: 800,
|
||||||
mb: 1,
|
mb: 1,
|
||||||
color: '#ffffff',
|
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
gap: 2,
|
gap: 2,
|
||||||
|
|||||||
@ -16,6 +16,7 @@ import {
|
|||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import {styled} from '@mui/material/styles';
|
import {styled} from '@mui/material/styles';
|
||||||
import UnitsTable from "../classes/UnitsTable";
|
import UnitsTable from "../classes/UnitsTable";
|
||||||
|
import {BackButton} from "../commons/BackButton";
|
||||||
|
|
||||||
|
|
||||||
// Styled components
|
// Styled components
|
||||||
@ -38,17 +39,6 @@ const PageHeader = styled(Paper)(({ theme }) => ({
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const BackButton = styled(Button)(({ theme }) => ({
|
|
||||||
marginBottom: theme.spacing(3),
|
|
||||||
color: '#e94560',
|
|
||||||
borderColor: 'rgba(233, 69, 96, 0.5)',
|
|
||||||
textTransform: 'none',
|
|
||||||
fontWeight: 600,
|
|
||||||
'&:hover': {
|
|
||||||
borderColor: '#e94560',
|
|
||||||
backgroundColor: 'rgba(233, 69, 96, 0.1)',
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
interface ModPageState {
|
interface ModPageState {
|
||||||
mod: IMod | null,
|
mod: IMod | null,
|
||||||
|
|||||||
@ -180,7 +180,7 @@ function Mods({ mods }: ModsProps) {
|
|||||||
{sameMods.filter(m => !m.isBeta).map(mod => (
|
{sameMods.filter(m => !m.isBeta).map(mod => (
|
||||||
<VersionLink key={mod.id} to={"/mod/" + mod.id} state={mod.id}>
|
<VersionLink key={mod.id} to={"/mod/" + mod.id} state={mod.id}>
|
||||||
<Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', width: '100%' }}>
|
<Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', width: '100%' }}>
|
||||||
<Typography variant="body2" sx={{ fontWeight: 600 }}>
|
<Typography variant="body2" sx={{ fontWeight: 600, color: 'rgba(255, 255, 255, 0.7)' }}>
|
||||||
Version {mod.version}
|
Version {mod.version}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="caption" sx={{
|
<Typography variant="caption" sx={{
|
||||||
|
|||||||
@ -24,24 +24,11 @@ import {IRaceUnits, IUnitShort} from "../types/IUnitShort";
|
|||||||
import {IBuildingShort, IRaceBuildings} from "../types/IBuildingShort";
|
import {IBuildingShort, IRaceBuildings} from "../types/IBuildingShort";
|
||||||
import {styled} from '@mui/material/styles';
|
import {styled} from '@mui/material/styles';
|
||||||
import {StyledLink} from "../commons/StyledLink";
|
import {StyledLink} from "../commons/StyledLink";
|
||||||
|
import {BackButton} from "../commons/BackButton";
|
||||||
// Styled components
|
|
||||||
const BackButton = styled(Button)(({ theme }) => ({
|
|
||||||
marginBottom: theme.spacing(3),
|
|
||||||
color: '#e94560',
|
|
||||||
borderColor: 'rgba(233, 69, 96, 0.5)',
|
|
||||||
textTransform: 'none',
|
|
||||||
fontWeight: 600,
|
|
||||||
'&:hover': {
|
|
||||||
borderColor: '#e94560',
|
|
||||||
backgroundColor: 'rgba(233, 69, 96, 0.1)',
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
const SectionTitle = styled(Typography)(({ theme }) => ({
|
const SectionTitle = styled(Typography)(({ theme }) => ({
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
mb: 2,
|
mb: 2,
|
||||||
color: '#ffffff',
|
|
||||||
fontSize: '1.25rem',
|
fontSize: '1.25rem',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@ -35,24 +35,11 @@ import Ability from "../classes/Ability";
|
|||||||
import DeathExplosion from "../classes/DeathExplosion";
|
import DeathExplosion from "../classes/DeathExplosion";
|
||||||
import {styled} from '@mui/material/styles';
|
import {styled} from '@mui/material/styles';
|
||||||
import {DescriptionBox} from "../commons/DescriptionBox";
|
import {DescriptionBox} from "../commons/DescriptionBox";
|
||||||
|
import {BackButton} from "../commons/BackButton";
|
||||||
// Styled components
|
|
||||||
const BackButton = styled(Button)(({ theme }) => ({
|
|
||||||
marginBottom: theme.spacing(3),
|
|
||||||
color: '#e94560',
|
|
||||||
borderColor: 'rgba(233, 69, 96, 0.5)',
|
|
||||||
textTransform: 'none',
|
|
||||||
fontWeight: 600,
|
|
||||||
'&:hover': {
|
|
||||||
borderColor: '#e94560',
|
|
||||||
backgroundColor: 'rgba(233, 69, 96, 0.1)',
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
const SectionTitle = styled(Typography)(({ theme }) => ({
|
const SectionTitle = styled(Typography)(({ theme }) => ({
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
mb: 2,
|
mb: 2,
|
||||||
color: '#ffffff',
|
|
||||||
fontSize: '1.25rem',
|
fontSize: '1.25rem',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@ -127,7 +114,6 @@ function Unit(unit: IUnit, mod: IMod) {
|
|||||||
<Typography variant="h4" component="h2" sx={{
|
<Typography variant="h4" component="h2" sx={{
|
||||||
fontWeight: 800,
|
fontWeight: 800,
|
||||||
mb: 1,
|
mb: 1,
|
||||||
color: '#ffffff',
|
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
gap: 2,
|
gap: 2,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user