-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Keks
committed
Sep 20, 2024
0 parents
commit 21e192d
Showing
37 changed files
with
15,565 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Файл с настройками для редактора. | ||
# | ||
# Если вы разрабатываете в редакторе WebStorm, BBEdit, Coda или SourceLair | ||
# этот файл уже поддерживается и не нужно производить никаких дополнительных | ||
# действий. | ||
# | ||
# Если вы ведёте разработку в другом редакторе, зайдите | ||
# на https://editorconfig.org и в разделе «Download a Plugin» | ||
# скачайте дополнение для вашего редактора. | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.svg] | ||
insert_final_newline = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"root": true, | ||
"parserOptions": { | ||
"ecmaVersion": 2022, | ||
"sourceType": "module" | ||
}, | ||
"env": { | ||
"es2022": true, | ||
"browser": true | ||
}, | ||
"globals": { | ||
"noUiSlider": "readonly", | ||
"Pristine": "readonly" | ||
}, | ||
"extends": "htmlacademy/vanilla" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
* text eol=lf | ||
|
||
*.ico binary | ||
*.png binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.webp binary | ||
*.avif binary | ||
*.woff binary | ||
*.woff2 binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Project check | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
check: | ||
name: Check | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'package.json' | ||
|
||
- name: Restore cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: cache-npm-${{ hashFiles('./package-lock.json') }} | ||
restore-keys: cache-npm- | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run checks | ||
run: npm run lint | ||
env: | ||
FORCE_COLOR: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Deploy on pull request | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
deploy-on-pull-request: | ||
name: Deploy on Pull Request | ||
|
||
permissions: | ||
contents: write | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: 'refs/pull/${{ github.event.pull_request.number }}/merge' | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'package.json' | ||
|
||
- name: Restore cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: cache-npm-${{ hashFiles('./package-lock.json') }} | ||
restore-keys: cache-npm- | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build project | ||
run: npm run build | ||
|
||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: ./build | ||
branch: gh-pages | ||
target-folder: ${{ github.event.pull_request.number }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Deploy to GitHub-Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
|
||
permissions: | ||
contents: write | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'package.json' | ||
|
||
- name: Restore cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: cache-npm-${{ hashFiles('./package-lock.json') }} | ||
restore-keys: cache-npm- | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build project | ||
run: npm run build | ||
|
||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: ./build | ||
branch: gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
node_modules | ||
build | ||
.idea | ||
.DS_Store | ||
raw/**/*.jpg | ||
raw/**/*.jpeg | ||
raw/**/*.png | ||
raw/**/*.svg | ||
!raw/**/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "linthtml-config-htmlacademy" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "stylelint-config-htmlacademy" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Личный проект «Кэт энерджи» | ||
|
||
* Студент: [Анастасия Филиппович](https://up.htmlacademy.ru/adaptive-individual/2/user/605225). | ||
* Наставник: `Неизвестно`. | ||
|
||
--- | ||
|
||
**Обратите внимание, что папка с вашими исходными файлами для работы над проектом — `source/`.** | ||
|
||
_Не удаляйте и не обращайте внимание на файлы и папки:_<br> | ||
_`.github`, `.editorconfig`, `.eslintrc`, `.gitattributes`, `.gitignore`, `.linthtmlrc`, `.stylelintrc`, `.gulpfile.js`, `svgo.config.js` `package.json`, `package-lock.json`._ | ||
|
||
--- | ||
|
||
### Памятка | ||
|
||
#### 1. Зарегистрируйтесь на Гитхабе | ||
|
||
Если у вас ещё нет аккаунта на [github.com](https://github.com/join), скорее зарегистрируйтесь. | ||
|
||
#### 2. Создайте форк | ||
|
||
[Откройте мастер-репозиторий](https://github.com/htmlacademy-adaptive/605225-cat-energy-2) и нажмите кнопку «Fork» в правом верхнем углу. Репозиторий из Академии будет скопирован в ваш аккаунт. | ||
|
||
<img width="800" alt="" src="https://user-images.githubusercontent.com/10909/60808133-3a7ace00-a190-11e9-9d29-401b02036a9c.jpg"> | ||
|
||
Получится вот так: | ||
|
||
<img width="800" alt="" src="https://user-images.githubusercontent.com/10909/60808135-3a7ace00-a190-11e9-9a8d-7390b3784c65.jpg"> | ||
|
||
#### 3. Клонируйте репозиторий на свой компьютер | ||
|
||
Будьте внимательны: нужно клонировать свой репозиторий (форк), а не репозиторий Академии. | ||
|
||
#### 4. Начинайте обучение! | ||
|
||
--- | ||
|
||
<a href="https://htmlacademy.ru/intensive/adaptive"><img align="left" width="50" height="50" alt="HTML Academy" src="https://up.htmlacademy.ru/static/img/intensive/adaptive/logo-for-github-2.png"></a> | ||
|
||
Репозиторий создан для обучения на профессиональном онлайн‑курсе «[HTML и CSS. Адаптивная вёрстка и автоматизация](https://htmlacademy.ru/intensive/adaptive)» от [HTML Academy](https://htmlacademy.ru). | ||
|
||
[check-image]: https://github.com/htmlacademy-adaptive/605225-cat-energy-2/workflows/Project%20check/badge.svg?branch=master | ||
[check-url]: https://github.com/htmlacademy-adaptive/605225-cat-energy-2/actions |
Oops, something went wrong.