diff --git a/01/style.css b/01/style.css index faa3160d..d02f2834 100644 --- a/01/style.css +++ b/01/style.css @@ -1,23 +1,24 @@ * { - margin: 0; - padding: 0; - box-sizing: border-box; + margin: 0; + padding: 0; + box-sizing: border-box; } .content { - background-color: #fff; - min-height: 320px; - min-width: 320px; - max-width: 600px; - text-align: justify; + background-color: #fff; + min-height: 320px; + min-width: 320px; + max-width: 600px; + text-align: justify; } .content::before { - float: left; - display: block; - content: ''; - height: 0; - border: 150px solid #dcdcdc; - border-right-color: transparent; - border-bottom-color: transparent; -} \ No newline at end of file + float: left; + display: block; + content: ""; + height: 0; + border: 150px solid #dcdcdc; + border-right-color: transparent; + border-bottom-color: transparent; + shape-outside: polygon(0 0, 0 100%, 100% 0); +} diff --git a/02/styles/global.css b/02/styles/global.css index a1c785e8..4ea2148e 100644 --- a/02/styles/global.css +++ b/02/styles/global.css @@ -1,26 +1,49 @@ * { - margin: 0; - padding: 0; - box-sizing: border-box; + margin: 0; + padding: 0; + box-sizing: border-box; +} +body { + display: grid; + grid-template-areas: + "a" + "b" + "c"; } -.a, .b, .c { - border: 3px solid transparent; - min-height: 50px; +.a, +.b, +.c { + border: 3px solid transparent; + min-height: 50px; + height: 50vh; - display: flex; - justify-content: center; - align-items: center; + display: flex; + justify-content: center; + align-items: center; } .a { - border-color: #ffffba + border-color: #ffffba; + grid-area: a; } .b { - border-color: #ffdfba; + border-color: #ffdfba; + grid-area: b; } .c { - border-color: #baffc9; -} \ No newline at end of file + border-color: #baffc9; + grid-area: c; +} + +@media screen and (min-width: 600px) { + body { + grid-template-areas: + "a a" + "c b"; + grid-template-columns: repeat(2, minmax(auto, 600px)); + justify-content: center; + } +} diff --git a/03/images/img-large.jpg b/03/images/img-large.jpg new file mode 100644 index 00000000..64e4d667 Binary files /dev/null and b/03/images/img-large.jpg differ diff --git a/03/images/img-medium.jpg b/03/images/img-medium.jpg new file mode 100644 index 00000000..5835bcb5 Binary files /dev/null and b/03/images/img-medium.jpg differ diff --git a/03/images/img-small.jpg b/03/images/img-small.jpg new file mode 100644 index 00000000..ea3a97c5 Binary files /dev/null and b/03/images/img-small.jpg differ diff --git a/03/index.html b/03/index.html index 4a2e35c2..7caa164c 100644 --- a/03/index.html +++ b/03/index.html @@ -1,16 +1,47 @@ -
- - - + + + +
+