Skip to content

Commit

Permalink
Added task srcset
Browse files Browse the repository at this point in the history
  • Loading branch information
jsru-1 committed Dec 16, 2024
1 parent bc44de2 commit fb89625
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
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 fb89625

Please sign in to comment.