Skip to content

Commit 4a5973d

Browse files
Added 2 landscape images to cover other mobile screen sizes and modified srcset in index.html to match.
1 parent ec4b24a commit 4a5973d

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,4 @@ venv.bak/
108108
# mypy
109109
.mypy_cache/
110110
.idea/
111+
pandas/bower_components/

index.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,22 @@
4444
static/images/title_photo/title_glass_building_1080x1920.jpg 1080w,
4545
static/images/title_photo/title_glass_building_1125x2436.jpg 1125w,
4646
static/images/title_photo/title_glass_building_1242x2436.jpg 1242w,
47+
static/images/title_photo/title_glass_building_1334x750.jpg 1334w,
4748
static/images/title_photo/title_glass_building_1442x2562.jpg 1442w,
4849
static/images/title_photo/title_glass_building_1920x1080.jpg 1920w,
50+
static/images/title_photo/title_glass_building_2562x1442.jpg 2562w,
4951
static/images/title_photo/title_glass_building_3840x2160.jpg 3840w"
50-
sizes="(max-width: 480px) 100vw,
51-
(max-width: 750px) 100vw,
52-
(max-width: 960px) 100vw,
53-
(max-width: 1080px) 100vw,
54-
(max-width: 1125px) 100vw,
55-
(max-width: 1242px) 100vw,
56-
(max-width: 1442px) 100vw,
57-
(max-width: 2299px) 100vw,
58-
(min-width: 2300px) 100vw"
52+
sizes="(max-width: 480px) and (orientation: landscape) 100vw,
53+
(max-width: 750px) and (orientation: portrait) 100vw,
54+
(max-width: 960px) and (orientation: landscape) 100vw,
55+
(max-width: 1080px) and (orientation: portrait) 100vw,
56+
(max-width: 1125px) and (orientation: portrait) 100vw,
57+
(max-width: 1242px) and (orientation: portrait) 100vw,
58+
(max-width: 1334px) and (orientation: landscape) 100vw,
59+
(max-width: 1442px) and (orientation: portrait) 100vw,
60+
(max-width: 1920px) and (orientation: landscape) 100vw,
61+
(max-width: 2562px) and (orientation: landscape) 100vw,
62+
(min-width: 2563px) and (orientation: landscape) 100vw"
5963
alt="Python Sprints Title Image">
6064
<div class="row">
6165
<div class="col-md-12">
113 KB
Loading
273 KB
Loading

0 commit comments

Comments
 (0)