Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: images sizing #109

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = {
"max-len": "error",
"no-shadow": "off",
"no-unused-vars": "off",
"no-useless-return": "error",
"object-shorthand": "error",
"prefer-const": "error",
"prefer-template": "error",
Expand Down
5 changes: 5 additions & 0 deletions src/components/Intro_panel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ const IntroPanel = (props: Props) => {
justifyContent="space-between"
minHeight="100%"
overflow="hidden"
sx={{
[theme.breakpoints.down("tablet")]: {
maxWidth: "calc(100vw - 40px)",
},
}}
>
<Box p="24px">
<Stack
Expand Down
2 changes: 1 addition & 1 deletion src/components/cardSwiper/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Box, Stack, useTheme } from "@mui/material";
import Image from "next/image";
import Image from "next/legacy/image";
import type { CSSProperties } from "react";
import SwiperCore, { Navigation } from "swiper";
import { Swiper, SwiperSlide } from "swiper/react";
Expand Down
1 change: 1 addition & 0 deletions src/components/intro_card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const IntroCard = (props: Props) => {
display: "flex",
flexDirection: "column",
borderRadius: "24px",
maxWidth: "calc(100vw - 40px)",
background: "#FFF",
boxShadow:
"0px 10px 32px -4px rgba(96, 60, 238, 0.10), 0px 6px 14px -6px rgba(96, 60, 238, 0.28)",
Expand Down