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

feat: new hover in matches #155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
64 changes: 27 additions & 37 deletions components/matches/match-list.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,34 @@
display: flex;
align-items: center;
justify-content: space-evenly;
margin: 20px auto;
width: 80%;
width: 70%;
flex-wrap: nowrap;
height: 230px;
padding: 5px;
border-radius: 10px;
padding: 1rem;
cursor: pointer;
transition: all 300ms;
border: 2px solid transparent;
position: relative;

&::before {
content: '';
background-color: rgba(78, 203, 113, 0.75);
position: absolute;
left: 0;
bottom: 3px;
width: 100%;
height: 8px;
transition: all 0.3s ease-in-out;
}

&:hover::before {
bottom: 0;
height: 100%;
border-radius: 20px;
}
border-color: rgba(78, 203, 113, 0.8);
border-style: solid none;
border-width: 0.1px;
margin-top: 1rem;
margin-bottom: -18px;

.matchDetails {
display: flex;
width: 80%;
width: 100%;
justify-content: space-evenly;

.containerVS {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
z-index: 1;
align-items: center;
text-align: center;

.details {
color: #f7fafc;
transition: transform .3s;

h1 {
font-size: larger;
font-weight: 900;
}
}
}
}

.options {
Expand All @@ -57,6 +41,17 @@
}
}

.container:hover {
border-color: rgba(78, 203, 113, 0.75);
border-width: thick;
padding-top: -18px;
width: 80%;

.matchDetails .details {
color: rgba(78, 203, 113, 1);
}
}

@media (max-width: $medium-small-device) {
.container {
height: unset;
Expand All @@ -69,11 +64,6 @@
.matchDetails {
flex-direction: column;
align-items: center;

.containerVS {
flex-direction: row;
margin: 20px;
}
}

.options {
Expand Down
15 changes: 4 additions & 11 deletions components/matches/match-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,10 @@ const MatchList: NextPage<Props> = ({matches}) => {
height={120}
/>

<div className={styles.containerVS}>
<Image
src={'/images/vs-icon.png'}
alt='Icon versus'
width={55}
height={45}
></Image>
<div className={styles.details}>
<h2>{date}</h2>
<h2>{location}</h2>
</div>
<div className={styles.details}>
<h1>VS</h1>
<h2>{date}</h2>
<h2>{location}</h2>
</div>

<Team
Expand Down