Skip to content

Commit

Permalink
Merge pull request #130 from colmedev/fix/responsive
Browse files Browse the repository at this point in the history
fix(styles): 🐛 fix the responsive in the about me section
  • Loading branch information
Zyruks authored Jun 6, 2024
2 parents b5b3147 + 7ac4e7c commit 559ce7f
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions src/pages/about-me/_Sections/Hobies/Hobbies.astro
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,18 @@ import { Tooltip } from '@components';
</section>

<style>
/*--- Twitch Section ---*/
section {
display: flex;
flex-direction: column;
align-items: center;
background-color: transparent;
position: relative;
z-index: 1;
width: 90%;
margin: 0 auto;

@media (width >= 992px) {
width: 100%;
}
}

.head-comment {
Expand All @@ -135,10 +140,15 @@ import { Tooltip } from '@components';

.wrapper {
display: grid;
margin: 64px 0;
margin-top: 64px;
max-width: 81rem;
grid-template-columns: repeat(3, 1fr);
grid-gap: 2rem;
row-gap: 2rem;
justify-items: center;

@media (width >= 992px) {
grid-gap: 2rem;
}
}

.hobbie-card {
Expand Down Expand Up @@ -184,7 +194,7 @@ import { Tooltip } from '@components';
}

.img-twitch__container {
width: 327px;
width: 100%;
height: 477px;
border-radius: 1.5rem;
overflow: hidden;
Expand Down Expand Up @@ -219,6 +229,7 @@ import { Tooltip } from '@components';
display: flex;
flex-direction: row;
gap: 36px;
width: 100%;

span {
font-weight: 700;
Expand All @@ -227,9 +238,13 @@ import { Tooltip } from '@components';

.volunteering {
max-width: 282px;
width: 100%;
width: 90%;
position: relative;

@media (width >= 992px) {
width: 100%;
}

.js-chile,
.spark-code,
.js-chile-conf,
Expand Down Expand Up @@ -370,11 +385,8 @@ import { Tooltip } from '@components';
grid-template-columns: repeat(1, 1fr);

.hobbie-card {
&:first-child {
width: calc(100% + 32px);
}
width: 100%;
&:nth-child(3) {
min-width: 311px;
flex-direction: column;

.volunteering {
Expand Down

0 comments on commit 559ce7f

Please sign in to comment.