Skip to content

Commit

Permalink
Deploy Version 1.1
Browse files Browse the repository at this point in the history
Deploy Version 1.1
  • Loading branch information
CheeseB authored Apr 4, 2024
2 parents 30317f9 + b06c67f commit f6bc14b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
Binary file added public/images/card-default-border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/card-default-border.webp
Binary file not shown.
Binary file added public/images/card-gradient-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/card-gradient-black.webp
Binary file not shown.
18 changes: 16 additions & 2 deletions src/components/landing/MatchTeam/MatchCards.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
}
}

@keyframes shrink-card {
from {
width: 48.6rem;
}

to {
width: 21.5rem;
}
}

.match-cards {
@include flexbox($gap: 2.4rem);

Expand All @@ -26,6 +36,10 @@
max-width: 120rem;

.card {
@include responsive(PC) {
animation: shrink-card 0.3s linear forwards;
}

position: relative;

display: block;
Expand Down Expand Up @@ -113,7 +127,7 @@
width: 100%;
height: 100%;

background: url('/images/card-gradient-black.webp') no-repeat center/cover;
background: url('/images/card-gradient-black.png') no-repeat center/cover;
}
}

Expand All @@ -131,7 +145,7 @@
width: 100%;
height: 100%;

background: url('/images/card-default-border.webp') no-repeat center/cover;
background: url('/images/card-default-border.png') no-repeat center/cover;
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/utils/getDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export const isExpirationDate = (date: string | Date, endTime: string) => {
* @returns 'YYYY-MM-DD'
*/
export const getFormatDate = (date: string | Date) => {
return dayjs(date).format('YYYY-MM-DD');
extend(utcPlugin);
extend(timezone);

return dayjs(date).utc().tz('America/New_York').format('YYYY-MM-DD');
};

export const getDayPickerFormatDate = (originalDate: Date) => {
Expand Down

0 comments on commit f6bc14b

Please sign in to comment.