diff --git a/home_2_1/avatar.jpg b/home_2_1/avatar.jpg new file mode 100644 index 0000000..ed16b11 Binary files /dev/null and b/home_2_1/avatar.jpg differ diff --git a/home_2_1/index.html b/home_2_1/index.html new file mode 100644 index 0000000..753933d --- /dev/null +++ b/home_2_1/index.html @@ -0,0 +1,22 @@ + + + + + + Карточка пользователя - Flexbox + + + +
+
+ Аватар пользователя + + +
+
+ + \ No newline at end of file diff --git a/home_2_1/sylesheet.css b/home_2_1/sylesheet.css new file mode 100644 index 0000000..d4a0711 --- /dev/null +++ b/home_2_1/sylesheet.css @@ -0,0 +1,99 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); + min-height: 100vh; + display: flex; + justify-content: center; + align-items: center; + padding: 20px; +} + +.card { + background-color: white; + border-radius: 16px; + max-width: 800px; + width: 100%; +} + +.card-container { + display: flex; + align-items: center; + padding: 30px; +} + +.avatar { + width: 120px; + height: 120px; + border: 4px solid #777373; +} + +.user-info { + margin-left: 25px; +} + +.user-name { + font-size: 24px; + font-weight: 700; + color: #2c3e50; + margin-bottom: 5px; +} + +.user-position { + font-size: 18px; + color: #7f8c8d; + margin-bottom: 12px; +} + +.user-description { + color: #34495e; + line-height: 1.5; + margin-bottom: 15px; +} + +.subscribe-btn { + background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); + color: white; + border: none; + padding: 12px 25px; + border-radius: 30px; + font-weight: 600; + font-size: 16px; + transition: transform 0.2s, box-shadow 0.2s; /* <--- this thing wasn't made by myself, just wanted smth beautiful))*/ + margin-left: auto; +} +/*the same for the hover)*/ +.subscribe-btn:hover { + transform: translateY(-2px); + box-shadow: 0 5px 15px rgba(38, 117, 252, 0.4); +} + +/* now it is adaptive for mobile devices :) */ +@media (max-width: 768px) { + .card-container { + flex-direction: column; + text-align: center; + padding: 25px; + } + + .avatar { + margin-bottom: 20px; + width: 140px; + height: 140px; + } + + .user-info { + margin-left: 0; + margin-bottom: 20px; + } + + .subscribe-btn { + margin-left: 0; + width: 100%; + } +} \ No newline at end of file diff --git a/home_2_2/NightOutletoPic.jpg b/home_2_2/NightOutletoPic.jpg new file mode 100644 index 0000000..1b72ab3 Binary files /dev/null and b/home_2_2/NightOutletoPic.jpg differ diff --git a/home_2_2/beautifulEveningView.jpg b/home_2_2/beautifulEveningView.jpg new file mode 100644 index 0000000..a7d9b1e Binary files /dev/null and b/home_2_2/beautifulEveningView.jpg differ diff --git a/home_2_2/beautifulField.jpg b/home_2_2/beautifulField.jpg new file mode 100644 index 0000000..eb35aea Binary files /dev/null and b/home_2_2/beautifulField.jpg differ diff --git a/home_2_2/bloodMoon.jpg b/home_2_2/bloodMoon.jpg new file mode 100644 index 0000000..86229aa Binary files /dev/null and b/home_2_2/bloodMoon.jpg differ diff --git a/home_2_2/coolSunRays.jpg b/home_2_2/coolSunRays.jpg new file mode 100644 index 0000000..001776f Binary files /dev/null and b/home_2_2/coolSunRays.jpg differ diff --git a/home_2_2/darkNightSky.jpg b/home_2_2/darkNightSky.jpg new file mode 100644 index 0000000..eaa66ed Binary files /dev/null and b/home_2_2/darkNightSky.jpg differ diff --git a/home_2_2/index.html b/home_2_2/index.html new file mode 100644 index 0000000..eaeeffa --- /dev/null +++ b/home_2_2/index.html @@ -0,0 +1,53 @@ + + + + + + Photogallery in style of Pinterest + + + +
+

My photogallery

+

P.S.: Inspired by Pinterest

+ + +
+ + + \ No newline at end of file diff --git a/home_2_2/morningWithTheMoon.jpg b/home_2_2/morningWithTheMoon.jpg new file mode 100644 index 0000000..3d56366 Binary files /dev/null and b/home_2_2/morningWithTheMoon.jpg differ diff --git a/home_2_2/stylesheet.css b/home_2_2/stylesheet.css new file mode 100644 index 0000000..f99b38d --- /dev/null +++ b/home_2_2/stylesheet.css @@ -0,0 +1,90 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + background-color: #f0c0e4; + color: #1d1d1d; + line-height: 1.6; + padding: 20px; +} + +.container { + max-width: 1200px; + margin: 0 auto; +} + +h1 { + text-align: center; + margin: 30px 0 10px; + color: #1a1a1a; + font-size: 2.5rem; +} + +.container > p { + text-align: center; + margin-bottom: 40px; + color: #666; + font-size: 1.1rem; +} + +.gallery { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); + gap: 16px; +} + +.gallery-item { + background: rgb(255, 255, 255); + border-radius: 12px; + overflow: hidden; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); + transition: transform 0.3s ease, box-shadow 0.3s ease; +} + +.gallery-item:hover { + transform: translateY(-5px); + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); +} + +.gallery-item img { + width: 100%; + height: auto; + display: block; + transition: transform 0.5s ease; +} + +.gallery-item:hover img { + transform: scale(1.03); +} + + +.caption { + padding: 15px; + font-size: 0.95rem; + color: #333; + background: white; +} + +@media (max-width: 768px) { + .gallery { + grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); + } + + h1 { + font-size: 2rem; + } +} + +@media (max-width: 480px) { + .gallery { + grid-template-columns: 1fr; + } + + body { + padding: 10px; + } +} \ No newline at end of file