Skip to content

Commit

Permalink
update package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
AndraTodor committed Sep 10, 2024
1 parent 2e797d5 commit 7ecce5d
Show file tree
Hide file tree
Showing 10 changed files with 508 additions and 61 deletions.
339 changes: 299 additions & 40 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
"name": "react-homework-template",
"version": "0.1.0",
"private": true,
"homepage": "https://goitacademy.github.io/react-homework-template/",
"homepage": "https://AndraTodor.github.io/goit-react-hw-03-image-finder/",
"dependencies": {
"@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^12.1.4",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.7.7",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-loader-spinner": "^6.1.6",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.3"
},
Expand Down
15 changes: 1 addition & 14 deletions src/components/App.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
export const App = () => {
return (
<div
style={{
height: '100vh',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
fontSize: 40,
color: '#010101'
}}
>
React homework template
</div>
);
return <div>React homework template</div>;
};
Empty file added src/components/Button.jsx
Empty file.
Empty file added src/components/ImageGallery.jsx
Empty file.
Empty file.
Empty file added src/components/Loader.jsx
Empty file.
Empty file added src/components/Modal.jsx
Empty file.
Empty file added src/components/Searchbar.jsx
Empty file.
211 changes: 205 additions & 6 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,214 @@
@import-normalize; /* bring in normalize.css styles */

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

html {
box-sizing: border-box;
width: 100vw;
overflow-x: hidden;
}

*,
*::before,
*::after {
box-sizing: inherit;
}

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
color: #212121;
background-color: #fff;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
img {
display: block;
max-width: 100%;
height: auto;
}

/*
* Стили компонента App
*/
.App {
display: grid;
grid-template-columns: 1fr;
grid-gap: 16px;
padding-bottom: 24px;
}

/*
* Стили компонента Searchbar
*/
.Searchbar {
top: 0;
left: 0;
position: sticky;
z-index: 1100;
display: flex;
justify-content: center;
align-items: center;
min-height: 64px;
padding-right: 24px;
padding-left: 24px;
padding-top: 12px;
padding-bottom: 12px;
color: #fff;
background-color: #3f51b5;
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}

/*
* Стили компонента SearchForm
*/
.SearchForm {
display: flex;
align-items: center;
width: 100%;
max-width: 600px;
background-color: #fff;
border-radius: 3px;
overflow: hidden;
}

.SearchForm-button {
display: inline-block;
width: 48px;
height: 48px;
border: 0;
background-image: url('https://image.flaticon.com/icons/svg/149/149852.svg');
background-size: 40%;
background-repeat: no-repeat;
background-position: center;
opacity: 0.6;
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
outline: none;
}

.SearchForm-button:hover {
opacity: 1;
}

.SearchForm-button-label {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
clip-path: inset(50%);
border: 0;
}

.SearchForm-input {
display: inline-block;
width: 100%;
font: inherit;
font-size: 20px;
border: none;
outline: none;
padding-left: 4px;
padding-right: 4px;
}

.SearchForm-input::placeholder {
font: inherit;
font-size: 18px;
}

/*
* Стили компонента ImageGallery
*/
.ImageGallery {
display: grid;
max-width: calc(100vw - 48px);
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
grid-gap: 16px;
margin-top: 0;
margin-bottom: 0;
padding: 0;
list-style: none;
margin-left: auto;
margin-right: auto;
}

/*
* Стили компонента ImageGalleryItem
*/
.ImageGalleryItem {
border-radius: 2px;
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
}

.ImageGalleryItem-image {
width: 100%;
height: 260px;
object-fit: cover;
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ImageGalleryItem-image:hover {
transform: scale(1.03);
cursor: zoom-in;
}

/*
* Стили компонента Modal
*/

.Overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.8);
z-index: 1200;
}

.Modal {
max-width: calc(100vw - 48px);
max-height: calc(100vh - 24px);
}

/*
* Стили компонента Buton (Load more)
*/
.Button {
padding: 8px 16px;
border-radius: 2px;
background-color: #3f51b5;
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
text-align: center;
display: inline-block;
color: #fff;
border: 0;
text-decoration: none;
cursor: pointer;
font-family: inherit;
font-size: 18px;
line-height: 24px;
font-style: normal;
font-weight: 500;
min-width: 180px;
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}

.Button:hover,
.Button:focus {
background-color: #303f9f;
}

0 comments on commit 7ecce5d

Please sign in to comment.