Skip to content

Commit

Permalink
Merge branch 'master' into avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
JulieSagan committed Dec 16, 2024
2 parents 9c4d8d8 + fb89625 commit 04efc54
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 06-lection4/02-background-image/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# background-image

В директории `public` лежат картинки в нескольких разрешениях.<br>
Нужно вставить картинку на фон страницы так, чтобы не грузились картинки избыточного размера.<br>

Воспользоваться нужно способом вставки картинки через `background-image` и медиа-запросы.

Empty file.
10 changes: 10 additions & 0 deletions 06-lection4/02-background-image/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<link rel="stylesheet" href="../../assets/css/main.css">
<link rel="stylesheet" href="./background-image.css">
</head>
<body>

</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions 06-lection4/02-background-image/test/solution.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const expect = require('chai').expect;

describe('lection4/background-image', () => {
it('Фон', () => {
expect(1).to.equal(1);
});
});
5 changes: 5 additions & 0 deletions 06-lection4/03-srcset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# srcset

В директории `public` лежат картинки в нескольких разрешениях.<br>
Нужно вставить на страницу квадратный блок 300x300, а в него вписать картинку так, чтобы для экранов с высокой плотностью пикселей загружалась картинка в 2 раза больше.<br>

10 changes: 10 additions & 0 deletions 06-lection4/03-srcset/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<link rel="stylesheet" href="../../assets/css/main.css">
<link rel="stylesheet" href="./srcset.css">
</head>
<body>

</body>
</html>
Binary file added 06-lection4/03-srcset/public/forest_400.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 06-lection4/03-srcset/public/forest_768.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
7 changes: 7 additions & 0 deletions 06-lection4/03-srcset/test/solution.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const expect = require('chai').expect;

describe('lection4/srcset', () => {
it('Srcset', () => {
expect(1).to.equal(1);
});
});

0 comments on commit 04efc54

Please sign in to comment.