Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaHranovska committed Nov 30, 2023
1 parent fcf1cad commit 9df2464
Show file tree
Hide file tree
Showing 8 changed files with 500 additions and 62 deletions.
152 changes: 152 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"author": "Krystyna Hranovska <kr.hranovska@gmail.com>",
"license": "ISC",
"dependencies": {
"axios": "^1.6.2",
"izitoast": "^1.4.0",
"simplelightbox": "^2.14.2",
"vite-plugin-full-reload": "^1.0.5",
Expand Down
84 changes: 80 additions & 4 deletions src/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ body {
}

.btn-search {
/* border-radius: 8px; */
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;

Expand All @@ -42,7 +41,8 @@ body {
margin-left: -10px;
}

.btn-search:hover {
.btn-search:hover,
.btn-search:focus {
background-color: #5c6172;
}

Expand Down Expand Up @@ -128,8 +128,6 @@ body {

.gallery-link {
min-width: 320px;
flex-basis: calc((100% - 80px) / 4);
min-width: 320px;
}

.gallery-link:hover {
Expand Down Expand Up @@ -181,4 +179,82 @@ body {
font-size: 15px;
line-height: 1.5;
letter-spacing: 0.04em;
}

.container-loader {
display: flex;
flex-direction: column;
align-items: center;
padding: 30px 0;
}

.btn-load {
display: block;
border-radius: 8px;

background-color: #2d313f;
border: transparent;

color: #FFF;
font-size: 16px;
font-weight: 500;
line-height: 1.5;
letter-spacing: 0.04em;

transition: background-color 500ms cubic-bezier(0.4, 0, 0.2, 1);
padding: 8px 25px;

}

.btn-load:hover,
.btn-load:focus {
background-color: #5c6172;
}

.loader-more {
width: 48px;
height: 40px;
margin-top: 30px;
display: inline-block;
position: relative;
background: #FFF;
border-radius: 15% 15% 35% 35%;
}

.loader-more::after {
content: '';
box-sizing: border-box;
position: absolute;
left: 45px;
top: 8px;
border: 4px solid #FFF;
width: 16px;
height: 20px;
border-radius: 0 4px 4px 0;
}

.loader-more::before {
content: '';
position: absolute;
width: 1px;
height: 10px;
color: #FFF;
top: -15px;
left: 11px;
box-sizing: border-box;
animation: animationloader 1s ease infinite;
}

@keyframes animationloader {
0% {
box-shadow: 2px 0px rgba(255, 255, 255, 0), 12px 0px rgba(255, 255, 255, 0.3), 20px 0px rgba(255, 255, 255, 0);
}

50% {
box-shadow: 2px -5px rgba(255, 255, 255, 0.5), 12px -3px rgba(255, 255, 255, 0.5), 20px -2px rgba(255, 255, 255, 0.6);
}

100% {
box-shadow: 2px -8px rgba(255, 255, 255, 0), 12px -5px rgba(255, 255, 255, 0), 20px -5px rgba(255, 255, 255, 0);
}
}
5 changes: 5 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
<ul class="gallery"></ul>
</div>

<div class="container-loader">
<span class="loader-more"></span>
<button class="btn-load">Load more</button>
</div>
<script type="module" src="./js/script.js"></script>
<!-- <script type="module" src="index.js"></script> -->
</body>
</html>
Loading

0 comments on commit 9df2464

Please sign in to comment.