Skip to content

Commit

Permalink
Merge pull request #55 from cel3ntano/about-section
Browse files Browse the repository at this point in the history
aboutme-update-2
  • Loading branch information
cel3ntano authored Jun 17, 2024
2 parents 6a58729 + c05c3a0 commit 95f35c8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
26 changes: 14 additions & 12 deletions src/css/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,25 @@
margin-bottom: 24px;
}

.learn-more-button {

.load-more-button {

display: inline-block;
padding: 10px 20px;
margin: 10px 0;
font-size: 16px;
font-weight: 500;
color: #fff;
background-color: var(--Accent-primary);
border: none;
border-radius: 5px;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s;
}

.learn-more-button:hover {

.load-more-button:hover {


background-color: var(--Accent-hover);
}

Expand Down Expand Up @@ -145,8 +149,7 @@
}

.about-img {
margin: 408px 32px 60px 0;
/* margin: 148px 32px 60px 0; */
margin: 80px 32px 60px 0;
}

.bio-text {
Expand Down Expand Up @@ -185,7 +188,7 @@
background-image: url(/img/about/decor-peach-1x-tab-min.png);
background-repeat: no-repeat;
background-size: 336px 252px;
background-position: 364px 728px;
background-position: 372px 655px;
}

.about-img-decor.change-them {
Expand All @@ -199,7 +202,7 @@
background-image: url(/img/about/decor-peach-2x-tab-min.png);
background-size: 336px 252px;
background-repeat: no-repeat;
background-position: 364px 728px;
background-position: 372px 655px;
}
.about-img-decor.change-them {
background-image: url(/img/about/decor-blue-2x-tab-min.png);
Expand All @@ -211,8 +214,7 @@

@media screen and (min-width: 1280px) {
.about-img {
margin: 312px 136px 80px 208px;
/* margin: 110px 136px 80px 208px; */
margin: 110px 136px 80px 208px;
}

.bio-text {
Expand All @@ -224,7 +226,7 @@
background-image: url(/img/about/decor-peach-1x-dsk-min.png);
background-repeat: no-repeat;
background-size: 384px 288px;
background-position: 835px 562px;
background-position: 839px 401px;
}

.education-text {
Expand All @@ -250,7 +252,7 @@
background-image: url(/img/about/decor-peach-2x-dsk-min.png);
background-size: 384px 288px;
background-repeat: no-repeat;
background-position: 835px 562px;
background-position: 839px 401px;
}
.about-img-decor.change-them {
background-image: url(/img/about/decor-blue-2x-dsk-min.png);
Expand Down
10 changes: 7 additions & 3 deletions src/js/about.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const pgf = document.querySelector('.hidden-text');
const button = document.querySelector('.learn-more-button');

const button = document.querySelector('.load-more-button');


document.addEventListener('DOMContentLoaded', e => {
pgf.style.display = 'none';
Expand All @@ -8,9 +10,11 @@ document.addEventListener('DOMContentLoaded', e => {
button.addEventListener('click', () => {
if (pgf.style.display === 'none') {
pgf.style.display = 'block';
button.textContent = 'Show less';

button.textContent = 'Chow less';
} else if (pgf.style.display === 'block') {
pgf.style.display = 'none';
button.textContent = 'Learn more';
button.textContent = 'Load more';

}
});
4 changes: 3 additions & 1 deletion src/partials/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ <h3 class="about-subtitle">bio</h3>
actively engage in studying new technologies and practices to stay
current with the latest innovations in the field.
</p>
<button class="learn-more-button">Learn More</button>

<button class="load-more-button">Learn More</button>

</div>
<div class="education-text">
<h3 class="about-subtitle">education</h3>
Expand Down

0 comments on commit 95f35c8

Please sign in to comment.