profile pictures + updating prettier

This commit is contained in:
Toby Brown
2024-01-16 20:05:30 +00:00
parent 7af239a766
commit c55642f9a3
6 changed files with 32 additions and 19 deletions

7
.prettierrc Executable file
View File

@@ -0,0 +1,7 @@
{
"singleQuote": true,
"trailingComma": "none",
"arrowParens": "avoid",
"printWidth": 80,
"semi": false
}

View File

@@ -80,6 +80,6 @@
"devDependencies": { "devDependencies": {
"eslint": "8.55.0", "eslint": "8.55.0",
"eslint-config-next": "14.0.3", "eslint-config-next": "14.0.3",
"prettier": "^3.0.3" "prettier": "^3.2.2"
} }
} }

View File

@@ -350,18 +350,21 @@ const SlackPage = () => {
<Quote <Quote
text="I knew it's where I wanted to be" text="I knew it's where I wanted to be"
person="Shawn" person="Shawn"
img="https://cloud-8u876lgxi-hack-club-bot.vercel.app/0shawn.png"
age={18} age={18}
location="MD" location="MD"
/> />
<Quote <Quote
text="I felt so free- there were no expectations" text="I felt so free- there were no expectations"
person="JC" person="JC"
img="https://ca.slack-edge.com/T0266FRGM-U03MNFDRSGJ-e6fb939acfd8-512"
age={17} age={17}
location="CT" location="CT"
/> />
<Quote <Quote
text="Finally, I found my people!" text="Finally, I found my people!"
person="Cheru" person="Cheru"
img="https://ca.slack-edge.com/T0266FRGM-U02UYFZQ0G0-eb4e3c7fb0cf-512"
age={16} age={16}
location="VT" location="VT"
/> />
@@ -381,7 +384,7 @@ const SlackPage = () => {
sx={{ sx={{
width: ['100%', '50%'], width: ['100%', '50%'],
paddingX: '32px', paddingX: '32px',
display: ['flex'], display: 'flex',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center' justifyContent: 'center'
}} }}
@@ -460,17 +463,24 @@ function Project({ title, description, sx, color, img }) {
<Text <Text
as="p" as="p"
variant="subtitle" variant="subtitle"
sx={{ width: ['full', 'copyPlus'], opacity: '75%', textAlign: 'center' }} sx={{
width: ['full', 'copyPlus'],
opacity: '75%',
textAlign: 'center'
}}
> >
{description} {description}
</Text> </Text>
</Box> </Box>
<Image src={`/slack/${img}.png`} sx={{ visibility: ['hidden', 'visible'] }} /> <Image
src={`/slack/${img}.png`}
sx={{ visibility: ['hidden', 'visible'] }}
/>
</Box> </Box>
) )
} }
function Quote({ text, person, age, location }) { function Quote({ text, person, age, location, img }) {
return ( return (
<Box <Box
sx={{ sx={{
@@ -483,9 +493,12 @@ function Quote({ text, person, age, location }) {
<Text as="h3" variant="title" sx={{ mb: 3, fontSize: ['36px', 4, 5] }}> <Text as="h3" variant="title" sx={{ mb: 3, fontSize: ['36px', 4, 5] }}>
"{text}" "{text}"
</Text> </Text>
<Text as="p" variant="paragraph"> <Flex sx={{ gap: '8px' }}>
{person}, {age} from {location} <Image src={img} sx={{ height: 24, width: 24, borderRadius: 100 }} />
</Text> <Text as="p" variant="paragraph">
{person}, {age} from {location}
</Text>
</Flex>
</Box> </Box>
) )
} }

View File

@@ -1,7 +0,0 @@
module.exports = {
singleQuote: true,
trailingComma: 'none',
arrowParens: 'avoid',
printWidth: 80,
semi: false
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@@ -6366,10 +6366,10 @@ prelude-ls@^1.2.1:
resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
prettier@^3.0.3: prettier@^3.2.2:
version "3.0.3" version "3.2.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.2.tgz#96e580f7ca9c96090ad054616c0c4597e2844b65"
integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== integrity sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==
prismjs@~1.27.0: prismjs@~1.27.0:
version "1.27.0" version "1.27.0"