diff --git a/.github/workflows/test.yml-template b/.github/workflows/test.yml-template new file mode 100644 index 000000000..8b5743ecb --- /dev/null +++ b/.github/workflows/test.yml-template @@ -0,0 +1,29 @@ +name: Test + +on: + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test + - name: Upload HTML report(backstop data) + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: report + path: backstop_data diff --git a/README.md b/README.md index 5f9e97051..98bae0302 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Check font styles. Use [IBM Plex Sans](https://fonts.google.com/specimen/IBM+Ple 11. `git push origin develop` - to send you code for PR. 12. Create a Pull Request (PR) from your branch `develop` to branch `master` of original repo. 13. Replace `` with your Github username in the - [DEMO LINK](https://.github.io/Museum/). + [DEMO LINK](https://tsiupaknazar.github.io/Museum/). 14. Copy `DEMO LINK` to the PR description. > To update you PR repeat steps 7-11. diff --git a/index.html b/index.html index d339e6856..952a4afe5 100644 --- a/index.html +++ b/index.html @@ -1,19 +1,511 @@ - + - Title + NA MU + + + + + + + + - -

Hello Mate Academy

- + + +
+ +
+
+

+ ХУДОЖНІЙ +
+ МУЗЕЙ +

+ + + Квитки + + + + + + + Події + +
+
+ + + +
+
+

Актуальні події

+ +
+
+ painting-1 +
+
+
+

ВИСТАВКА

+ 26.08-29.11.2019 +
+ +

Йду і повертаюсь

+

+ Національний Художній Музей України презентує унікальну частину + колекції Градобанку - українське мистецтво другої половини + 1980-1995 років. +

+
+
+ +
+
+ painting-2 +
+
+
+

ВИСТАВКА

+ 26.08-29.11.2019 +
+ +

І спогади і мрії

+

+ Національний художній музей України до 100 річчя від дня + народження видатної української художниці Тетяни Яблонської + відкриває ретроспективну ювілейну виставку «І спогади і мрії». +

+
+
+ +
+
+
+ lecture +
+ +
+
+

ЛЕКЦІЯ

+ + 26/08/2019 - 11:00 + +
+ +

Від класицизму до романтизму

+
+
+
+
+ + + + +
+ + + + + diff --git a/package-lock.json b/package-lock.json index fbfeb1428..1e3cacffb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@mate-academy/eslint-config": "latest", "@mate-academy/jest-mochawesome-reporter": "^1.0.0", "@mate-academy/linthtml-config": "latest", - "@mate-academy/scripts": "^2.1.1", + "@mate-academy/scripts": "^2.1.3", "@mate-academy/stylelint-config": "latest", "cypress": "^13.13.0", "eslint": "^8.57.0", @@ -60,6 +60,7 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz", "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", "dev": true, + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/generator": "^7.28.5", @@ -544,6 +545,7 @@ "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.5.4.tgz", "integrity": "sha512-eohl3hKTiVyD1ilYdw9T0OiB4hnjef89e3dMYKz+mVKDzj+5IteTseASUsOB+EU9Tf6VNTCjDePcP6wkDGmLKQ==", "dev": true, + "peer": true, "dependencies": { "@keyv/serialize": "^1.1.1" } @@ -592,6 +594,7 @@ "url": "https://opencollective.com/csstools" } ], + "peer": true, "engines": { "node": ">=18" }, @@ -633,6 +636,7 @@ "url": "https://opencollective.com/csstools" } ], + "peer": true, "engines": { "node": ">=18" } @@ -1315,7 +1319,6 @@ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "dev": true, - "peer": true, "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -1333,7 +1336,6 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", "dev": true, - "peer": true, "engines": { "node": ">=12" }, @@ -1346,7 +1348,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", "dev": true, - "peer": true, "engines": { "node": ">=12" }, @@ -1358,15 +1359,13 @@ "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "peer": true + "dev": true }, "node_modules/@isaacs/cliui/node_modules/string-width": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "dev": true, - "peer": true, "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -1384,7 +1383,6 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", "dev": true, - "peer": true, "dependencies": { "ansi-regex": "^6.0.1" }, @@ -1400,7 +1398,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, - "peer": true, "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -1875,10 +1872,11 @@ "dev": true }, "node_modules/@mate-academy/scripts": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@mate-academy/scripts/-/scripts-2.1.2.tgz", - "integrity": "sha512-gUXFdqqOfYzF9R3RSx2pCa5GLdOkxB9bFbF+dpUpzucdgGAANqOGdqpmNnMj+e3xA9YHraUWq3xo9cwe5vD9pQ==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@mate-academy/scripts/-/scripts-2.1.3.tgz", + "integrity": "sha512-a07wHTj/1QUK2Aac5zHad+sGw4rIvcNl5lJmJpAD7OxeSbnCdyI6RXUHwXhjF5MaVo9YHrJ0xVahyERS2IIyBQ==", "dev": true, + "license": "MIT", "dependencies": { "@octokit/rest": "^17.11.2", "@types/get-port": "^4.2.0", @@ -1955,7 +1953,6 @@ "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-6.0.0.tgz", "integrity": "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==", "dev": true, - "peer": true, "engines": { "node": ">= 20" } @@ -1984,7 +1981,6 @@ "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.2.tgz", "integrity": "sha512-4zCpzP1fWc7QlqunZ5bSEjxc6yLAlRTnDwKtgXfcI/FxxGoqedDG8V2+xJ60bV2kODqcGB+nATdtap/XYq2NZQ==", "dev": true, - "peer": true, "dependencies": { "@octokit/types": "^16.0.0", "universal-user-agent": "^7.0.2" @@ -1998,7 +1994,6 @@ "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.3.tgz", "integrity": "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA==", "dev": true, - "peer": true, "dependencies": { "@octokit/request": "^10.0.6", "@octokit/types": "^16.0.0", @@ -2012,8 +2007,7 @@ "version": "27.0.0", "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-27.0.0.tgz", "integrity": "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==", - "dev": true, - "peer": true + "dev": true }, "node_modules/@octokit/plugin-paginate-rest": { "version": "2.21.3", @@ -2075,7 +2069,6 @@ "resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.7.tgz", "integrity": "sha512-v93h0i1yu4idj8qFPZwjehoJx4j3Ntn+JhXsdJrG9pYaX6j/XRz2RmasMUHtNgQD39nrv/VwTWSqK0RNXR8upA==", "dev": true, - "peer": true, "dependencies": { "@octokit/endpoint": "^11.0.2", "@octokit/request-error": "^7.0.2", @@ -2092,7 +2085,6 @@ "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.1.0.tgz", "integrity": "sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw==", "dev": true, - "peer": true, "dependencies": { "@octokit/types": "^16.0.0" }, @@ -2280,7 +2272,6 @@ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-16.0.0.tgz", "integrity": "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==", "dev": true, - "peer": true, "dependencies": { "@octokit/openapi-types": "^27.0.0" } @@ -2587,7 +2578,6 @@ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", "dev": true, "optional": true, - "peer": true, "engines": { "node": ">=14" } @@ -3073,6 +3063,7 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", "dev": true, + "peer": true, "dependencies": { "undici-types": "~7.16.0" } @@ -3156,6 +3147,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -3725,8 +3717,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-4.0.0.tgz", "integrity": "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==", - "dev": true, - "peer": true + "dev": true }, "node_modules/bl": { "version": "4.1.0", @@ -3777,8 +3768,7 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true, - "peer": true + "dev": true }, "node_modules/browserslist": { "version": "4.28.0", @@ -3799,6 +3789,7 @@ "url": "https://github.com/sponsors/ai" } ], + "peer": true, "dependencies": { "baseline-browser-mapping": "^2.8.25", "caniuse-lite": "^1.0.30001754", @@ -4797,7 +4788,6 @@ "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", "dev": true, - "peer": true, "engines": { "node": ">=0.3.1" } @@ -4939,8 +4929,7 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true, - "peer": true + "dev": true }, "node_modules/ecc-jsbn": { "version": "0.1.2", @@ -4990,6 +4979,7 @@ "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", "dev": true, + "peer": true, "dependencies": { "ansi-colors": "^4.1.1", "strip-ansi": "^6.0.1" @@ -5274,6 +5264,7 @@ "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dev": true, + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -5329,6 +5320,7 @@ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.2.tgz", "integrity": "sha512-iI1f+D2ViGn+uvv5HuHVUamg8ll4tN+JRHGc6IJi4TP9Kl976C57fzPXgseXNs8v0iA8aSJpHsTWjDb9QJamGQ==", "dev": true, + "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -5431,6 +5423,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", "dev": true, + "peer": true, "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.9", @@ -5485,6 +5478,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz", "integrity": "sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==", "dev": true, + "peer": true, "dependencies": { "eslint-plugin-es": "^3.0.0", "eslint-utils": "^2.0.0", @@ -5535,6 +5529,7 @@ "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-4.3.1.tgz", "integrity": "sha512-bY2sGqyptzFBDLh/GMbAxfdJC+b0f23ME63FOE4+Jao0oZ3E1LEwFtWJX/1pGMJLiTtrSSern2CRM/g+dfc0eQ==", "dev": true, + "peer": true, "engines": { "node": ">=6" } @@ -5558,6 +5553,7 @@ "url": "https://feross.org/support" } ], + "peer": true, "peerDependencies": { "eslint": ">=5.0.0" } @@ -5926,8 +5922,7 @@ "type": "opencollective", "url": "https://opencollective.com/fastify" } - ], - "peer": true + ] }, "node_modules/fast-deep-equal": { "version": "3.1.3", @@ -6099,7 +6094,6 @@ "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", "dev": true, - "peer": true, "bin": { "flat": "cli.js" } @@ -6144,7 +6138,6 @@ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", "dev": true, - "peer": true, "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" @@ -6161,7 +6154,6 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, - "peer": true, "engines": { "node": ">=14" }, @@ -6697,7 +6689,6 @@ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true, - "peer": true, "bin": { "he": "bin/he" } @@ -7620,7 +7611,6 @@ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", "dev": true, - "peer": true, "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -8987,7 +8977,6 @@ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, - "peer": true, "engines": { "node": ">=16 || 14 >=14.17" } @@ -8997,7 +8986,6 @@ "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.5.tgz", "integrity": "sha512-mTT6RgopEYABzXWFx+GcJ+ZQ32kp4fMf0xvpZIIfSq9Z8lC/++MtcCnQ9t5FP2veYEP95FIYSvW+U9fV4xrlig==", "dev": true, - "peer": true, "dependencies": { "browser-stdout": "^1.3.1", "chokidar": "^4.0.1", @@ -9033,15 +9021,13 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "peer": true + "dev": true }, "node_modules/mocha/node_modules/brace-expansion": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "dev": true, - "peer": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -9051,7 +9037,6 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, - "peer": true, "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -9068,7 +9053,6 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", "dev": true, - "peer": true, "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", @@ -9089,7 +9073,6 @@ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", "dev": true, - "peer": true, "dependencies": { "argparse": "^2.0.1" }, @@ -9102,7 +9085,6 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, - "peer": true, "dependencies": { "p-locate": "^5.0.0" }, @@ -9118,7 +9100,6 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, - "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -9134,7 +9115,6 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, - "peer": true, "dependencies": { "p-limit": "^3.0.2" }, @@ -9150,7 +9130,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, - "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -9166,7 +9145,6 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "peer": true, "engines": { "node": ">=12" } @@ -9871,8 +9849,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true, - "peer": true + "dev": true }, "node_modules/parent-module": { "version": "1.0.1", @@ -9966,7 +9943,6 @@ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "dev": true, - "peer": true, "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -9982,8 +9958,7 @@ "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "peer": true + "dev": true }, "node_modules/path-to-regexp": { "version": "1.9.0", @@ -10097,6 +10072,7 @@ "url": "https://github.com/sponsors/ai" } ], + "peer": true, "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", @@ -10175,6 +10151,7 @@ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.1.tgz", "integrity": "sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg==", "dev": true, + "peer": true, "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -10212,6 +10189,7 @@ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.7.3.tgz", "integrity": "sha512-QgODejq9K3OzoBbuyobZlUhznP5SKwPqp+6Q6xw6o8gnhr4O85L2U915iM2IDcfF2NPXVaM9zlo9tdwipnYwzg==", "dev": true, + "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -10431,7 +10409,6 @@ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, - "peer": true, "dependencies": { "safe-buffer": "^5.1.0" } @@ -10921,6 +10898,7 @@ "resolved": "https://registry.npmjs.org/sass/-/sass-1.94.2.tgz", "integrity": "sha512-N+7WK20/wOr7CzA2snJcUSSNTCzeCGUTFY3OgeQP3mZ1aj9NMQ0mSTXwlrnd89j33zzQJGqIN52GIOmYrfq46A==", "dev": true, + "peer": true, "dependencies": { "chokidar": "^4.0.0", "immutable": "^5.0.2", @@ -10962,7 +10940,6 @@ "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", "dev": true, - "peer": true, "dependencies": { "randombytes": "^2.1.0" } @@ -11360,7 +11337,6 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, - "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -11444,7 +11420,6 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, - "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -11518,6 +11493,7 @@ "url": "https://github.com/sponsors/stylelint" } ], + "peer": true, "dependencies": { "@csstools/css-parser-algorithms": "^3.0.5", "@csstools/css-syntax-patches-for-csstree": "^1.0.19", @@ -12058,6 +12034,7 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, + "peer": true, "engines": { "node": ">=12" }, @@ -12353,8 +12330,7 @@ "version": "7.0.3", "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.3.tgz", "integrity": "sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A==", - "dev": true, - "peer": true + "dev": true }, "node_modules/universalify": { "version": "2.0.1", @@ -12576,6 +12552,7 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, + "peer": true, "engines": { "node": ">=12" }, @@ -12933,8 +12910,7 @@ "version": "9.3.4", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-9.3.4.tgz", "integrity": "sha512-TmPRQYYSAnnDiEB0P/Ytip7bFGvqnSU6I2BcuSw7Hx+JSg/DsUi5ebYfc8GYaSdpuvOcEs6dXxPurOYpe9QFwg==", - "dev": true, - "peer": true + "dev": true }, "node_modules/wrap-ansi": { "version": "6.2.0", @@ -12956,7 +12932,6 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "peer": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -13039,23 +13014,6 @@ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true }, - "node_modules/yaml": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", - "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", - "dev": true, - "optional": true, - "peer": true, - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14.6" - }, - "funding": { - "url": "https://github.com/sponsors/eemeli" - } - }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", @@ -13088,7 +13046,6 @@ "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", "dev": true, - "peer": true, "dependencies": { "camelcase": "^6.0.0", "decamelize": "^4.0.0", @@ -13104,7 +13061,6 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, - "peer": true, "engines": { "node": ">=10" }, @@ -13117,7 +13073,6 @@ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", "dev": true, - "peer": true, "engines": { "node": ">=10" }, @@ -13130,7 +13085,6 @@ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", "dev": true, - "peer": true, "engines": { "node": ">=8" } diff --git a/package.json b/package.json index ab5f87b9b..d2c5a8560 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@mate-academy/eslint-config": "latest", "@mate-academy/jest-mochawesome-reporter": "^1.0.0", "@mate-academy/linthtml-config": "latest", - "@mate-academy/scripts": "^2.1.1", + "@mate-academy/scripts": "^2.1.3", "@mate-academy/stylelint-config": "latest", "cypress": "^13.13.0", "eslint": "^8.57.0", diff --git a/src/images/Natsionalnij-hudozhnij-muzej-Ukrayini-Kiyiv-10-1800x1200.png b/src/images/Natsionalnij-hudozhnij-muzej-Ukrayini-Kiyiv-10-1800x1200.png new file mode 100644 index 000000000..aa8895ce3 Binary files /dev/null and b/src/images/Natsionalnij-hudozhnij-muzej-Ukrayini-Kiyiv-10-1800x1200.png differ diff --git a/src/images/gallery/gallery-1.png b/src/images/gallery/gallery-1.png new file mode 100644 index 000000000..c233e765e Binary files /dev/null and b/src/images/gallery/gallery-1.png differ diff --git a/src/images/gallery/gallery-2-desk.png b/src/images/gallery/gallery-2-desk.png new file mode 100644 index 000000000..e59481fc2 Binary files /dev/null and b/src/images/gallery/gallery-2-desk.png differ diff --git a/src/images/gallery/gallery-2.png b/src/images/gallery/gallery-2.png new file mode 100644 index 000000000..c3d57f00b Binary files /dev/null and b/src/images/gallery/gallery-2.png differ diff --git a/src/images/gallery/gallery-3-desk.png b/src/images/gallery/gallery-3-desk.png new file mode 100644 index 000000000..a5cf2a06e Binary files /dev/null and b/src/images/gallery/gallery-3-desk.png differ diff --git a/src/images/gallery/gallery-4-desk.png b/src/images/gallery/gallery-4-desk.png new file mode 100644 index 000000000..a50fd6367 Binary files /dev/null and b/src/images/gallery/gallery-4-desk.png differ diff --git a/src/images/icons/Arrow-up.png b/src/images/icons/Arrow-up.png new file mode 100644 index 000000000..ca734387f Binary files /dev/null and b/src/images/icons/Arrow-up.png differ diff --git a/src/images/icons/NA MU.png b/src/images/icons/NA MU.png new file mode 100644 index 000000000..9d6f06750 Binary files /dev/null and b/src/images/icons/NA MU.png differ diff --git a/src/images/icons/NAMU-logo.png b/src/images/icons/NAMU-logo.png new file mode 100644 index 000000000..9ff851839 Binary files /dev/null and b/src/images/icons/NAMU-logo.png differ diff --git a/src/images/icons/baseline-keyboard_arrow_right-24px-black.png b/src/images/icons/baseline-keyboard_arrow_right-24px-black.png new file mode 100644 index 000000000..bc331edfd Binary files /dev/null and b/src/images/icons/baseline-keyboard_arrow_right-24px-black.png differ diff --git a/src/images/icons/baseline-keyboard_arrow_right-24px.png b/src/images/icons/baseline-keyboard_arrow_right-24px.png new file mode 100644 index 000000000..81e828bec Binary files /dev/null and b/src/images/icons/baseline-keyboard_arrow_right-24px.png differ diff --git a/src/images/icons/baseline-menu-24px.png b/src/images/icons/baseline-menu-24px.png new file mode 100644 index 000000000..223df807b Binary files /dev/null and b/src/images/icons/baseline-menu-24px.png differ diff --git a/src/images/icons/facebook.png b/src/images/icons/facebook.png new file mode 100644 index 000000000..834180ee5 Binary files /dev/null and b/src/images/icons/facebook.png differ diff --git a/src/images/icons/instagram.png b/src/images/icons/instagram.png new file mode 100644 index 000000000..d7c141034 Binary files /dev/null and b/src/images/icons/instagram.png differ diff --git a/src/images/icons/ri-close-fill.png b/src/images/icons/ri-close-fill.png new file mode 100644 index 000000000..1c97fb5fa Binary files /dev/null and b/src/images/icons/ri-close-fill.png differ diff --git a/src/images/lecture.png b/src/images/lecture.png new file mode 100644 index 000000000..979fbf714 Binary files /dev/null and b/src/images/lecture.png differ diff --git a/src/images/museumphoto.png b/src/images/museumphoto.png new file mode 100644 index 000000000..a2e70f061 Binary files /dev/null and b/src/images/museumphoto.png differ diff --git a/src/images/painting1.png b/src/images/painting1.png new file mode 100644 index 000000000..d2c87b0af Binary files /dev/null and b/src/images/painting1.png differ diff --git a/src/images/painting2.png b/src/images/painting2.png new file mode 100644 index 000000000..06e4a056a Binary files /dev/null and b/src/images/painting2.png differ diff --git a/src/images/subscr.png b/src/images/subscr.png new file mode 100644 index 000000000..717c7e69b Binary files /dev/null and b/src/images/subscr.png differ diff --git a/src/scripts/main.js b/src/scripts/main.js index ad9a93a7c..f82df16c9 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -1 +1,28 @@ 'use strict'; + +const gallerySwiper = new Swiper('.gallery-swiper', { + slidesPerView: 1.3, + spaceBetween: 16, + pagination: { + el: '.swiper-pagination', + clickable: true, + }, + + breakpoints: { + 320: { + slidesPerView: 1.1, + spaceBetween: 16, + }, + + 768: { + slidesPerView: 2.1, + spaceBetween: 20, + }, + }, +}); + +document.querySelector('form').addEventListener('submit', (e) => { + e.preventDefault(); + + e.target.reset(); +}); diff --git a/src/styles/_fonts.scss b/src/styles/_fonts.scss deleted file mode 100644 index 45cdd5400..000000000 --- a/src/styles/_fonts.scss +++ /dev/null @@ -1,6 +0,0 @@ -@font-face { - font-family: Roboto, Arial, Helvetica, sans-serif; - src: url('../fonts/Roboto-Regular-webfont.woff') format('woff'); - font-weight: normal; - font-style: normal; -} diff --git a/src/styles/_typography.scss b/src/styles/_typography.scss deleted file mode 100644 index 1837eb46e..000000000 --- a/src/styles/_typography.scss +++ /dev/null @@ -1,3 +0,0 @@ -h1 { - @extend %h1; -} diff --git a/src/styles/_utils.scss b/src/styles/_utils.scss deleted file mode 100644 index 3280c3fe1..000000000 --- a/src/styles/_utils.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import 'utils/vars'; -@import 'utils/mixins'; -@import 'utils/extends'; diff --git a/src/styles/base/_typography.scss b/src/styles/base/_typography.scss new file mode 100644 index 000000000..32907fbe3 --- /dev/null +++ b/src/styles/base/_typography.scss @@ -0,0 +1,27 @@ +h1 { + @extend %h1; +} + +h2 { + @extend %h2; +} + +h3 { + @extend %h3; +} + +h4 { + @extend %h4; +} + +h5 { + @extend %h5; +} + +p { + @extend %p; +} + +li { + @extend %li; +} diff --git a/src/styles/base/_utils.scss b/src/styles/base/_utils.scss new file mode 100644 index 000000000..3fb975abf --- /dev/null +++ b/src/styles/base/_utils.scss @@ -0,0 +1,3 @@ +@import '../utils/vars'; +@import '../utils/mixins'; +@import '../utils/extends'; diff --git a/src/styles/base/reset.scss b/src/styles/base/reset.scss new file mode 100644 index 000000000..813408199 --- /dev/null +++ b/src/styles/base/reset.scss @@ -0,0 +1,34 @@ +* { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +html, +body { + height: 100%; + margin: 0; + padding: 0; + + font-family: 'IBM Plex Sans', sans-serif; + font-size: 16px; + font-weight: 400; + color: $dark-black; + + background-color: $white; +} + +img { + display: block; + max-width: 100%; +} + +a { + color: inherit; + text-decoration: none; +} + +ul, +ol { + list-style: none; +} diff --git a/src/styles/blocks/events.scss b/src/styles/blocks/events.scss new file mode 100644 index 000000000..14d1e0383 --- /dev/null +++ b/src/styles/blocks/events.scss @@ -0,0 +1,211 @@ +.events { + @include page-container; + + margin-top: 70px; + + @include on-tablet { + margin-top: 88px; + } + + @include on-desktop { + margin-top: 200px; + } + + &__title { + @include on-tablet { + text-align: left; + } + } +} + +.event { + @include page-grid; + + margin: 40px 0 60px; + + @include on-tablet { + margin: 48px 0 64px; + } + + @include on-desktop { + margin: 56px 0 104px; + } + + &__painting { + grid-column: 1 / -1; + + @include on-desktop { + grid-column: 1 / 8; + } + + &--image { + cursor: pointer; + + display: block; + + width: 100%; + + object-fit: cover; + object-position: center; + + @include hover(transform, scale(1.02)); + + @include on-tablet { + height: 520px; + } + } + } + + &__title { + cursor: pointer; + position: relative; + grid-column: 1 / -1; + margin-bottom: 10px; + + &::after { + content: ''; + + position: absolute; + bottom: 3px; + transform: translateY(-50%); + + width: 10px; + height: 10px; + margin-left: 10px; + + background-color: $orange; + + @include on-tablet { + bottom: 5px; + transform: none; + + width: 15px; + height: 15px; + margin-left: 15px; + } + } + + @include on-tablet { + grid-column: 1 / 5; + margin-bottom: 15px; + } + + @include on-desktop { + grid-column: 9 / 13; + } + } + + &__about { + color: $light-grey; + } + + &__info { + grid-column: 1 / -1; + align-content: center; + + @include on-tablet { + grid-column: 1 / 5; + margin: 40px 0 30px; + } + + @include on-desktop { + grid-column: 9 / 13; + } + + &--wrapper { + display: flex; + align-items: center; + justify-content: space-between; + margin: 16px 0 10px; + + @include on-tablet { + gap: 20px; + justify-content: flex-start; + margin: 0 0 30px; + } + } + } +} + +.date { + font-weight: 700; + line-height: 150%; + color: $green; + + @include on-tablet { + font-size: 14px; + } +} + +.lecture { + &__wrapper { + @include page-grid; + } + &__image { + grid-column: 1 / -1; + grid-row: 1 / 2; + height: 210px; + margin-inline: -20px; + + @include on-tablet { + height: 390px; + margin-inline: 0; + } + + @include on-desktop { + height: 550px; + margin-inline: -55px; + } + + img { + width: 100%; + height: 100%; + object-fit: cover; + } + } + + &__info { + grid-column: 1 / -1; + grid-row: 1 / 2; + place-self: end center; + + box-sizing: border-box; + width: 100%; + margin-bottom: -90px; + border-bottom: 2px solid rgba($green, 0.25); + + background-color: $white; + + @include on-tablet { + width: 570px; + margin-bottom: -60px; + padding: 45px 55px 50px; + } + + @include on-desktop { + margin-bottom: -93px; + padding: 45px 100px 50px; + } + + &--wrapper { + display: flex; + align-items: center; + justify-content: space-between; + margin: 24px 21px; + + @include on-tablet { + margin: 0; + } + } + } + + &__title { + margin-bottom: 20px; + text-align: center; + + @include on-tablet { + margin: 23px 0 0; + text-align: left; + } + } +} diff --git a/src/styles/blocks/gallery.scss b/src/styles/blocks/gallery.scss new file mode 100644 index 000000000..a636b3e75 --- /dev/null +++ b/src/styles/blocks/gallery.scss @@ -0,0 +1,117 @@ +.gallery { + margin-top: 183px; + margin-left: 20px; + + @include on-tablet { + margin-left: 39px; + } + + &__title { + margin-bottom: 40px; + + @include on-tablet { + margin-bottom: 48px; + text-align: left; + } + + @include on-desktop { + margin-bottom: 56px; + margin-left: 55px; + } + } + + &--mobile { + @include on-desktop { + display: none !important; + } + } + + &--desktop { + display: none; + + @include on-desktop { + @include page-grid; + @include page-container; + + gap: 30px; + + &__image { + cursor: pointer; + + img { + width: 100%; + height: 100%; + object-fit: cover; + + @include hover(transform, scale(1.02)); + } + &:first-child { + grid-column: 1 / 5; + height: 600px; + } + &:nth-child(2) { + grid-column: 5 / 13; + height: 600px; + } + &:nth-child(3) { + grid-column: 1 / 9; + height: 360px; + } + &:last-child { + grid-column: 9 / 13; + height: 360px; + } + } + } + } +} + +.swiper { + width: 100%; +} + +.swiper-slide { + cursor: pointer; + + img { + display: block; + width: 100%; + height: 410px; + object-fit: cover; + + @include on-tablet { + height: 543px; + } + + @include on-desktop { + height: 600px; + } + } +} + +.swiper-pagination-bullet { + width: 9px; + height: 9px; + font-size: 14px; + background-color: #e0e0e0 !important; +} + +.swiper-pagination-bullet-active { + background-color: $green !important; +} + +.gallery-swiper { + position: relative !important; + padding-bottom: 40px !important; + + @include on-tablet { + padding-bottom: 52px !important; + } +} + +.gallery-swiper .swiper-pagination { + position: absolute; + bottom: 0; + left: 0; + width: 100%; +} diff --git a/src/styles/blocks/page.scss b/src/styles/blocks/page.scss new file mode 100644 index 000000000..ec2f518dc --- /dev/null +++ b/src/styles/blocks/page.scss @@ -0,0 +1,16 @@ +.page { + scroll-behavior: smooth; + scrollbar-gutter: stable; + + overflow-x: hidden; + + min-width: $mobile-min-width; + max-width: $max-width; + margin: 0 auto; + + color: $dark-black; + + &__body { + position: relative; + } +} diff --git a/src/styles/blocks/schedule.scss b/src/styles/blocks/schedule.scss new file mode 100644 index 000000000..a8548a981 --- /dev/null +++ b/src/styles/blocks/schedule.scss @@ -0,0 +1,64 @@ +.schedule { + &__title { + margin-bottom: 20px; + font-size: 16px; + } + + &__wrapper { + display: flex; + flex-direction: column; + gap: 16px; + &--menu { + @include on-tablet { + flex-direction: row; + justify-content: space-between; + } + } + + &--footer { + @include on-tablet { + flex-direction: column; + } + } + } + + &__list--menu { + @include on-tablet { + width: 50%; + } + } + + &__item { + font-size: 14px; + line-height: 150%; + + span { + font-weight: 600; + } + } + + &__note { + font-size: 14px; + line-height: 150%; + + span { + font-weight: 600; + } + + &--menu { + @include on-tablet { + width: 50%; + } + } + + &--footer { + span { + font-weight: 400; + + @include on-desktop { + font-weight: 600; + } + } + } + } +} diff --git a/src/styles/blocks/subscribe.scss b/src/styles/blocks/subscribe.scss new file mode 100644 index 000000000..0c5482ab3 --- /dev/null +++ b/src/styles/blocks/subscribe.scss @@ -0,0 +1,106 @@ +.subscribe { + margin: 100px 0 50px; + + background-image: url('../images/subscr.png'); + background-repeat: no-repeat; + background-position: center; + background-size: cover; + + @include on-tablet { + margin-top: 92px; + } + + @include on-desktop { + margin-top: 200px; + } + + &__content { + @include page-grid; + @include page-container; + + padding: 88px 0; + color: $white; + text-align: center; + + @include on-tablet { + padding: 82px 0; + } + + @include on-desktop { + padding: 163px 0; + } + } + + &__title { + grid-column: 1 / -1; + } + + &__text { + grid-column: 1 / -1; + margin: 20px 0 50px; + font-size: 18px; + font-weight: 400; + + @include on-tablet { + margin: 16px 0 64px; + } + + @include on-desktop { + margin: 16px 0 72px; + } + } +} + +.form { + grid-column: 1 / -1; + + @include on-tablet { + grid-column: 2 / 6; + } + + @include on-desktop { + grid-column: 4 / 10; + } + + &__button { + width: 100%; + height: 50px; + + @include on-tablet { + display: flex; + gap: 16px; + height: 70px; + } + + @include on-desktop { + gap: 30px; + } + } + + &__button--text { + flex: 1; + + height: 100%; + padding-inline: 24px; + border: none; + + font-family: Montserrat, sans-serif; + font-size: 14px; + font-weight: 400; + color: $light-grey; + text-align: left; + + @include on-desktop { + padding-inline: 32px; + } + + &:focus { + outline: none; + } + } + + &__button--arrow { + cursor: pointer; + background-color: $orange; + } +} diff --git a/src/styles/components/button.scss b/src/styles/components/button.scss new file mode 100644 index 000000000..68018aa0d --- /dev/null +++ b/src/styles/components/button.scss @@ -0,0 +1,21 @@ +.button { + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + + &__arrow { + display: flex; + align-items: center; + justify-content: center; + + width: 50px; + height: 50px; + border: none; + + @include on-tablet { + width: 70px; + height: 70px; + } + } +} diff --git a/src/styles/components/icon.scss b/src/styles/components/icon.scss new file mode 100644 index 000000000..31133c753 --- /dev/null +++ b/src/styles/components/icon.scss @@ -0,0 +1,40 @@ +.icon { + display: block; + + width: 24px; + height: 24px; + + background-repeat: no-repeat; + background-position: center; + background-size: contain; + + @include hover(transform, scale(1.2)); + + &--menu { + background-image: url(/src/images/icons/baseline-menu-24px.png); + } + + &--close { + background-image: url(/src/images/icons/ri-close-fill.png); + } + + &--arrow { + background-image: url(/src/images/icons/baseline-keyboard_arrow_right-24px.png); + } + + &--arrow--black { + background-image: url(/src/images/icons/baseline-keyboard_arrow_right-24px-black.png); + } + + &--facebook { + background-image: url(/src/images/icons/facebook.png); + } + + &--instagram { + background-image: url(/src/images/icons/instagram.png); + } + + &--up { + background-image: url(/src/images/icons/Arrow-up.png); + } +} diff --git a/src/styles/components/logo.scss b/src/styles/components/logo.scss new file mode 100644 index 000000000..1f8bf9ca0 --- /dev/null +++ b/src/styles/components/logo.scss @@ -0,0 +1,13 @@ +.logo { + z-index: 1; + + font-family: Montserrat, sans-serif; + font-size: 30px; + font-weight: 700; + line-height: 100%; + text-align: center; + + @include on-tablet { + font-size: 36px; + } +} diff --git a/src/styles/layout/footer.scss b/src/styles/layout/footer.scss new file mode 100644 index 000000000..054581b10 --- /dev/null +++ b/src/styles/layout/footer.scss @@ -0,0 +1,162 @@ +.footer { + @include page-grid; + @include page-container; + + &__top { + display: flex; + grid-column: 1 / -1; + align-items: center; + justify-content: space-between; + + margin-bottom: 40px; + + @include on-tablet { + grid-column: 1; + flex-direction: column; + gap: 62px; + justify-content: flex-start; + + margin: 0; + } + } + + &__logo { + @include hover(scale, 1.1); + } + + &__social-media { + display: flex; + grid-column: 1 / -1; + gap: 20px; + + @include on-tablet { + gap: 32px; + } + + @include on-tablet { + justify-content: space-between; + } + } + + &__schedule { + grid-column: 1; + padding: 0; + color: $dark-black; + + h5 { + margin-bottom: 20px; + font-size: 14px; + font-weight: 400; + } + + @include on-tablet { + grid-column: 2 / 4; + } + + @include on-desktop { + grid-column: 3 / 5; + } + } + + &__nav { + @include page-grid; + + grid-column: 1 / -1; + + @include on-desktop { + display: flex; + grid-column: 8 / 11; + justify-content: space-between; + } + } + + &__up-button { + grid-column: 1 / -1; + justify-self: end; + width: 50px; + height: 50px; + + @include on-tablet { + display: none; + } + } + + &__line { + grid-column: 1 / -1; + + height: 1px; + margin: 20px 0 40px; + + opacity: 0.5; + background-color: $green; + + @include on-tablet { + margin: 64px 0; + } + + @include on-desktop { + grid-column: 7; + justify-self: center; + + width: 1px; + height: 260px; + margin: 0; + } + } + + &__bottom { + display: flex; + grid-column: 1 / -1; + flex-direction: column; + gap: 10px; + + margin: 80px 0 50px; + + @include on-tablet { + flex-direction: row; + justify-content: space-between; + margin: 120px 0 35px; + } + + @include on-desktop { + margin-top: 87px; + } + + p { + font-size: 12px; + font-weight: 300; + line-height: 141%; + text-align: center; + } + } +} + +.schedule--footer { + column-gap: 2 / 4; +} + +.schedule__wrapper--footer { + @include on-tablet { + flex-direction: column; + } +} + +.contacts { + color: $dark-black; + &__title { + margin-bottom: 20px; + } + + &__item { + font-size: 14px; + font-weight: 400; + } + + @include on-tablet { + grid-column: 4 / 6; + } + + @include on-desktop { + grid-column: 5 / 7; + } +} diff --git a/src/styles/layout/header.scss b/src/styles/layout/header.scss new file mode 100644 index 000000000..93dcea0cd --- /dev/null +++ b/src/styles/layout/header.scss @@ -0,0 +1,171 @@ +.header { + @include page-grid; + + &__icon { + position: absolute; + top: 20px; + left: 20px; + + @include on-tablet { + top: 39px; + left: 34px; + } + + @include on-desktop { + left: 55px; + } + } + + &__logo { + position: absolute; + left: 50%; + transform: translate(-50%); + margin-top: 9px; + + @include hover(transform, translate(-50%) scale(1.1)); + + @include on-tablet { + left: 62%; + margin-top: 15px; + } + + @include on-desktop { + left: 50%; + } + } + + &__image { + grid-column: 1 / -1; + + height: 300px; + + background-image: url('/src/images/museumphoto.png'); + background-repeat: no-repeat; + background-position: center; + background-size: cover; + + @include on-tablet { + grid-column: 4 / 7; + order: 2; + height: 384px; + } + + @include on-desktop { + grid-column: 6 / -1; + height: 655px; + } + } + + &__content { + position: relative; + + display: flex; + grid-column: 1 / -1; + flex-direction: column; + gap: 20px; + + margin-inline: 20px; + + @include on-tablet { + grid-column: 1 / 4; + gap: 38px; + order: 1; + margin: 127px 0 0 34px; + } + + @include on-desktop { + grid-column: 1 / 6; + gap: 89px; + margin: 206px 0 0 55px; + } + } + + &__title { + margin-top: 20px; + + @include on-tablet { + margin: 0; + text-align: left; + } + } + + &__button { + width: 100%; + height: 50px; + border: 1px solid $green; + transition: + background-color $effectDuration, + box-shadow $effectDuration; + + @include on-tablet { + width: 270px; + height: 70px; + } + + @include on-desktop { + margin-left: auto; + } + + &--text { + flex: 1; + + font-size: 16px; + font-weight: 500; + color: $dark-black; + text-align: center; + text-transform: uppercase; + + transition: color $effectDuration; + } + + &--arrow { + background-color: $green; + } + + &:hover { + background-color: $green; + transition: background-color $effectDuration; + + .header__button--text { + color: #d7dde3; + } + } + } + + &__events-label { + position: relative; + display: none; + + @include on-desktop { + position: absolute; + bottom: 70px; + transform-origin: left top; + transform: rotate(-90deg); + + display: block; + + &::after { + content: ''; + + position: absolute; + bottom: -25px; + left: -55px; + transform: rotate(-90deg); + + display: block; + + width: 1px; + height: 70px; + + background-color: $green; + } + } + } + + &__events-label--text { + font-size: 14px; + font-weight: 700; + color: $light-grey; + text-transform: uppercase; + } +} diff --git a/src/styles/layout/menu.scss b/src/styles/layout/menu.scss new file mode 100644 index 000000000..53e010d2e --- /dev/null +++ b/src/styles/layout/menu.scss @@ -0,0 +1,123 @@ +.menu { + pointer-events: none; + + position: fixed; + top: 0; + right: 0; + left: 0; + transform: translateY(-100%); + + gap: 24px 28px; + + max-width: $max-width; + margin: 0 auto; + padding: 27px 20px; + + color: $white; + + opacity: 0; + background-color: $green; + box-shadow: 0 4px 12px rgba($black, 0.5); + + transition: + opacity $effectDuration, + transform $effectDuration; + + @include page-grid; + + &:target { + pointer-events: all; + z-index: 10; + transform: translateY(0); + opacity: 1; + } + + @include on-tablet { + padding: 34px 39px; + } + + @include on-desktop { + padding: 39px 55px; + } + + &__overlay { + pointer-events: none; + + position: fixed; + z-index: 5; + inset: 0; + + opacity: 0; + background-color: $black; + + transition: opacity $effectDuration; + } + + &__wrapper { + display: flex; + grid-column: 1 / -1; + gap: 28px; + + @include on-tablet { + grid-column: 1 / 4; + justify-content: space-between; + } + + @include on-desktop { + grid-column: 1 / 7; + } + } + + &__line { + opacity: 0.5; + background-color: $white; + + &--mobile { + grid-column: 1 / -1; + height: 1px; + + @include on-tablet { + display: none; + } + } + + &--tablet { + display: none; + + @include on-tablet { + display: block; + width: 1px; + height: 145px; + } + } + } +} + +.schedule--menu { + position: relative; + grid-column: 1 / -1; + color: $white; + + @include on-tablet { + grid-column: 4 / 7; + padding: 0; + border-top: 0; + } + + @include on-desktop { + grid-column: 8 / -1; + } + + @include on-big-desktop { + grid-column: 8 / -2; + } +} + +[id='menu']:target ~ .menu__overlay { + pointer-events: auto; + opacity: 0.5; +} + +body:has([id='menu']:target) { + overflow: hidden; +} diff --git a/src/styles/layout/nav.scss b/src/styles/layout/nav.scss new file mode 100644 index 000000000..a80b55524 --- /dev/null +++ b/src/styles/layout/nav.scss @@ -0,0 +1,53 @@ +.nav { + display: flex; + column-gap: 28px; + + @include on-tablet { + column-gap: 20px; + } + + @include on-desktop { + column-gap: 40px; + } + + &__list { + display: flex; + flex-direction: column; + row-gap: 24px; + + &--1 { + grid-column: 1 / -2; + + @include on-tablet { + grid-column: 2 / 4; + } + } + &--2 { + grid-column: -2 / -1; + + @include on-tablet { + grid-column: 4 / 6; + } + } + } + + &__item { + width: 100px; + font-size: 16px; + font-weight: 500; + } + + &__link { + @include underline($white); + + color: $white; + + &--footer { + @include underline($green); + + font-size: 14px; + font-weight: 400; + color: $dark-black; + } + } +} diff --git a/src/styles/main.scss b/src/styles/main.scss index fb9195d12..ad12d4592 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -1,7 +1,18 @@ -@import 'utils'; -@import 'fonts'; -@import 'typography'; +@import './base/utils'; +@import './base/typography'; +@import './base/reset'; -body { - background: $c-gray; -} +@import './blocks/events'; +@import './blocks/gallery'; +@import './blocks/page'; +@import './blocks/schedule'; +@import './blocks/subscribe'; + +@import './components/button'; +@import './components/logo'; +@import './components/icon'; + +@import './layout/footer'; +@import './layout/header'; +@import './layout/menu'; +@import './layout/nav'; diff --git a/src/styles/utils/_extends.scss b/src/styles/utils/_extends.scss index d7201e7b3..15a68ef8b 100644 --- a/src/styles/utils/_extends.scss +++ b/src/styles/utils/_extends.scss @@ -1,4 +1,62 @@ %h1 { - font-family: Roboto, sans-serif; + font-family: Montserrat, sans-serif; + font-size: 45px; + font-weight: 700; + line-height: 100%; + color: $black; + text-align: center; + letter-spacing: 0; +} + +%h2 { + font-family: Montserrat, sans-serif; + font-size: 36px; + font-weight: 700; + line-height: 100%; + text-align: center; + letter-spacing: 0; +} + +%h3 { + font-family: 'IBM Plex Sans', sans-serif; + font-size: 16px; + font-weight: 500; + line-height: 100%; + color: $light-grey; + text-transform: uppercase; + letter-spacing: 0; + + @include on-tablet { + font-size: 14px; + } +} + +%h4 { + font-family: Montserrat, sans-serif; + font-size: 28px; font-weight: 400; + line-height: 100%; + letter-spacing: 0; +} + +%h5 { + font-family: 'IBM Plex Sans', sans-serif; + font-size: 14px; + font-weight: 400; + line-height: 141%; + letter-spacing: 0; +} + +%p { + font-family: 'IBM Plex Sans', sans-serif; + font-size: 16px; + font-weight: 300; + line-height: 150%; + letter-spacing: 0; +} + +%li { + font-family: 'IBM Plex Sans', sans-serif; + line-height: 100%; + letter-spacing: 0; } diff --git a/src/styles/utils/_mixins.scss b/src/styles/utils/_mixins.scss index 80c79780d..95e71273a 100644 --- a/src/styles/utils/_mixins.scss +++ b/src/styles/utils/_mixins.scss @@ -1,6 +1,84 @@ @mixin hover($_property, $_toValue) { - transition: #{$_property} 0.3s; + transition: #{$_property} $effectDuration; &:hover { #{$_property}: $_toValue; } } + +@mixin underline($color) { + position: relative; + display: inline-block; + + &::after { + content: ''; + + position: absolute; + bottom: -5px; + left: 0; + transform-origin: center; + transform: scaleX(0); + + width: 100%; + height: 1px; + + opacity: 0; + background-color: $color; + + transition: + transform $effectDuration ease-out, + opacity $effectDuration ease-out; + } + + &:hover::after { + transform: scaleX(1); + opacity: 0.8; + } +} + +@mixin on-tablet { + @media (min-width: $tablet-min-width) { + @content; + } +} + +@mixin on-desktop { + @media (min-width: $desktop-min-width) { + @content; + } +} + +@mixin on-big-desktop { + @media (min-width: 1250px) { + @content; + } +} + +@mixin page-grid { + --columns: 2; + + display: grid; + grid-template-columns: repeat(var(--columns), 1fr); + column-gap: 20px; + + @include on-tablet { + --columns: 6; + + column-gap: 30px; + } + + @include on-desktop { + --columns: 12; + } +} + +@mixin page-container { + margin-inline: 20px; + + @include on-tablet { + margin-inline: 39px; + } + + @include on-desktop { + margin-inline: 55px; + } +} diff --git a/src/styles/utils/_vars.scss b/src/styles/utils/_vars.scss index aeb006ffb..b2ca6f048 100644 --- a/src/styles/utils/_vars.scss +++ b/src/styles/utils/_vars.scss @@ -1 +1,12 @@ -$c-gray: #eee; +$green: #1a5a4c; +$orange: #f14a27; +$light-grey: #687480; +$dark-grey: #4e4e4e; +$dark-black: #0f0e08; +$black: #000; +$white: #fff; +$mobile-min-width: 320px; +$tablet-min-width: 576px; +$desktop-min-width: 1024px; +$max-width: 1440px; +$effectDuration: 0.3s;