Skip to content

Commit

Permalink
Updated object fit
Browse files Browse the repository at this point in the history
  • Loading branch information
angela139 committed Oct 29, 2024
1 parent afff24d commit 9a8e638
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/components/AboutDescription/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
color: vars.$light-blue;
word-break: break-word;
}

.hacks {
color: vars.$orange;
}

.emphasis {
color: vars.$yellow;
}

.description {
display: grid;
grid-template-columns: 1fr 1fr;
Expand All @@ -33,6 +36,7 @@
grid-template-columns: 1fr;
}
}

.prompt {
display: flex;
flex-direction: column;
Expand Down
2 changes: 0 additions & 2 deletions src/components/Carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const Carousel: React.FC<CarouselProps> = ({ images }) => {
<Image
src={image}
alt={`Hackathon Image ${index + 1}`}
objectFit="cover"
sizes="400px"
fill
/>
Expand All @@ -25,7 +24,6 @@ const Carousel: React.FC<CarouselProps> = ({ images }) => {
<Image
src={image}
alt={`Hackathon Image ${index + 1}`}
objectFit="cover"
sizes="400px"
fill
/>
Expand Down
1 change: 1 addition & 0 deletions src/components/Carousel/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
border-radius: 16px;

img {
object-fit: cover;
object-position: 40% 20%;
border-radius: inherit;
}
Expand Down
1 change: 0 additions & 1 deletion src/components/ImagePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const ImagePicker: React.FC<ImagePickerProps> = ({ images }) => {
<Image
src={image}
alt={`Hackathon Image ${index + 1}`}
objectFit="cover"
sizes="400px"
fill
/>
Expand Down
1 change: 1 addition & 0 deletions src/components/ImagePicker/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
aspect-ratio: 1920/1080;

img {
object-fit: cover;
object-position: 40% 20%;
border-radius: inherit;
}
Expand Down

0 comments on commit 9a8e638

Please sign in to comment.