Skip to content

Commit

Permalink
style(griffel): align more
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfrye committed Feb 19, 2024
1 parent 5392e8a commit f4b3e13
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const useStyles = makeStyles({
main: {
display: 'flex',
flexDirection: 'column',
...shorthands.padding(tokens.spacingVerticalXXL),
...shorthands.padding(tokens.spacingVerticalNone, tokens.spacingHorizontalL),
},
divider: {
...shorthands.margin(tokens.spacingVerticalXXL, tokens.spacingHorizontalNone),
Expand Down
4 changes: 1 addition & 3 deletions src/components/home/about.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import { Card, CardHeader, Link, Text, makeStyles, tokens } from "@fluentui/react-components";
import { Card, CardHeader, Link, Text, makeStyles, shorthands, tokens } from "@fluentui/react-components";
import { Person32Regular } from "@fluentui/react-icons";

const useStyles = makeStyles({
container: {
display: 'flex',
flexDirection: 'column',
flexWrap: 'wrap',
// ...shorthands.margin(tokens.spacingVerticalL, tokens.spacingHorizontalNone, tokens.spacingVerticalM, tokens.spacingHorizontalNone),
},
header: {
fontSize: tokens.fontSizeBase600,
color: tokens.colorBrandForeground2,
// ...shorthands.margin(tokens.spacingVerticalNone, tokens.spacingHorizontalNone, tokens.spacingVerticalXL, tokens.spacingHorizontalNone),
},
bold: {
fontWeight: 'bold',
Expand Down
7 changes: 2 additions & 5 deletions src/components/shared/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ const useStyles = makeStyles({
...shorthands.padding(tokens.spacingVerticalL, tokens.spacingHorizontalL),
},
header: {
// display: 'flex',
alignItems: 'center',
...shorthands.padding(tokens.spacingVerticalXL, tokens.spacingHorizontalXL, tokens.spacingVerticalNone),
...shorthands.padding(tokens.spacingVerticalXL, tokens.spacingHorizontalXXL, tokens.spacingVerticalNone),
},
name: {
fontSize: tokens.fontSizeHero800,
Expand All @@ -39,9 +38,8 @@ const useStyles = makeStyles({
flexDirection: 'column',
},
justifyItems: 'center',
// justifyContent: 'flex-end',
marginTop: 'auto',
...shorthands.padding(tokens.spacingVerticalL),
...shorthands.padding(tokens.spacingVerticalNone, tokens.spacingHorizontalXL, tokens.spacingVerticalXL),
},
copyright: {
marginTop: 'auto',
Expand All @@ -59,7 +57,6 @@ const useStyles = makeStyles({

const Profile = ({ children }: Readonly<{ children: React.ReactNode; }>) => {
const styles = useStyles();
const _today: Date = new Date();

return (
<div className={styles.frame}>
Expand Down
1 change: 0 additions & 1 deletion src/components/shared/socials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const useStyles = makeStyles({
justifyContent: 'center',
alignItems: 'center',
...shorthands.gap(tokens.spacingVerticalL),
...shorthands.padding(tokens.spacingVerticalNone, tokens.spacingHorizontalL),
},
button: {
display: 'grid',
Expand Down

0 comments on commit f4b3e13

Please sign in to comment.