Skip to content

Commit 76dfcd7

Browse files
committed
mobile optimizin'
1 parent 123c06b commit 76dfcd7

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

components/slack/arrows.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function LeftArrow() {
1717
placeItems: 'center',
1818
display: 'flex',
1919
mr: 2,
20-
ml: [0, 'calc(50vw - 36rem)']
20+
ml: [3, 3, 3, 'calc(50vw - 36rem)']
2121
}}
2222
>
2323
<Icon glyph="view-back" size={32} color="white" />

components/slack/catchall.js components/slack/join.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export default function Join() {
1111
overflowX: 'hidden',
1212
height: ['', '30rem'],
1313
paddingTop: ['2rem', 0],
14-
display: ['grid', 'flex']
14+
display: ['grid', 'grid', 'flex']
1515
}}
1616
>
1717
<Box
1818
sx={{
19-
width: ['100%', '50%'],
19+
width: ['100%', '100%', '50%'],
2020
paddingX: '32px',
2121
display: 'flex',
2222
alignItems: 'center',
@@ -50,8 +50,8 @@ export default function Join() {
5050
<Image
5151
src="https://cloud-j0p07nviw-hack-club-bot.vercel.app/0image.png"
5252
sx={{
53-
width: ['100%', '50%'],
54-
height: ['100%', '30rem'],
53+
width: ['100%', '100%', '50%'],
54+
height: ['100%', '100%', '30rem'],
5555
objectFit: 'cover',
5656
position: 'relative',
5757
top: 0

components/slack/project.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ export default function Project({ title, description, color, img, itemId }) {
2121
transition: '700ms cubic-bezier(0.075, 0.02, 0.165, 1)',
2222
transformOrigin: 'center',
2323
mx: 16,
24-
ml: [0, `${itemId === 0 && 'calc(50vw - 36rem)'}`]
24+
ml: [3, 3, 3, `${itemId === 0 && 'calc(50vw - 36rem)'}`]
2525
}}
2626
itemId={itemId}
2727
>
2828
<Box
2929
sx={{
30-
paddingX: '16px',
30+
paddingX: '8px',
3131
display: 'flex',
3232
flexDirection: 'column',
3333
placeItems: 'center',
34-
height: ['12.5rem', '20rem'],
34+
height: ['full', '12.5rem', '20rem'],
3535
placeSelf: 'center',
3636
placeContent: 'end'
3737
}}
@@ -58,8 +58,8 @@ export default function Project({ title, description, color, img, itemId }) {
5858
<Image
5959
src={`/slack/${img}.png`}
6060
sx={{
61-
visibility: ['hidden', 'visible'],
62-
height: '100%',
61+
visibility: ['visible'],
62+
height: ['100%'],
6363
objectFit: 'cover'
6464
}}
6565
/>

pages/slack.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'react-horizontal-scrolling-menu/dist/styles.css'
88
import { thousands } from '../lib/members'
99
import projects from '../components/slack/projects'
1010
import Channels from '../components/slack/channels'
11-
import Join from '../components/slack/catchall'
11+
import Join from '../components/slack/join'
1212
import Footer from '../components/footer'
1313
import ForceTheme from '../components/force-theme'
1414
import Nav from '../components/nav'
@@ -99,7 +99,7 @@ const SlackPage = () => {
9999
</Box>
100100
</Box>
101101
<Container sx={{ py: [4, 5] }}>
102-
<Box sx={{ gap: '2rem', display: ['grid', 'flex'] }}>
102+
<Box sx={{ gap: '2rem', display: ['grid', 'grid', 'flex'] }}>
103103
<Quote
104104
text="I knew it's where I wanted to be"
105105
person="Shawn"

0 commit comments

Comments
 (0)