Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added home_2_1/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions home_2_1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Карточка пользователя - Flexbox</title>
<link rel="stylesheet" href="./sylesheet.css">
</head>
<body>
<div class="card">
<div class="card-container">
<img src="./avatar.jpg" alt="Аватар пользователя" class="avatar">
<div class="user-info">
<h2 class="user-name">Matthew Gubanov</h2>
<p class="user-position">Learner of html/css/js</p>
<p class="user-description">Learning different programming languages and studying in college</p>
</div>
<button class="subscribe-btn" onclick="window.location.href='https://github.com/matthew-guba'">Subsribe)</button> <!-- Just another reminder of me)-->
Copy link

@Ramosok Ramosok Sep 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ой не делай так больше))
<a href="https://github.com/matthew-guba">Subsribe</a>

переход по страницам только по тегу a

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

где ты нашёл такую реализацию?))

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just googled. Yeah, i know its bad, but ive forgotten how to do it using , so i googled

</div>
</div>
</body>
</html>
99 changes: 99 additions & 0 deletions home_2_1/sylesheet.css
Original file line number Diff line number Diff line change
@@ -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))*/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

респект!

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) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

респект

.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%;
}
}
Binary file added home_2_2/NightOutletoPic.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 home_2_2/beautifulEveningView.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 home_2_2/beautifulField.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 home_2_2/bloodMoon.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 home_2_2/coolSunRays.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 home_2_2/darkNightSky.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions home_2_2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Photogallery in style of Pinterest</title>
<link rel="stylesheet" href="./stylesheet.css">
</head>
<body>
<div class="container">
<h1>My photogallery</h1>
<p>P.S.: Inspired by Pinterest</p>

<div class="gallery">
<div class="gallery-item">
<img src="./beautifulEveningView.jpg" alt="Evening view">
<div class="caption">Gorgeus gradient of sunset</div>
</div>

<div class="gallery-item">
<img src="./bloodMoon.jpg" alt="Blood Moon">
<div class="caption">Cool detailed picture of bloody-red moon</div>
</div>

<div class="gallery-item">
<img src="./coolSunRays.jpg" alt="Sun rays through green tree leafes">
<div class="caption">Beautiful rays of sun falling through green leafes</div>
</div>

<div class="gallery-item">
<img src="./darkNightSky.jpg" alt="Night sky">
<div class="caption">Dark blue night sky with cool gradient</div>
</div>

<div class="gallery-item">
<img src="./beautifulField.jpg" alt="Weat ear">
<div class="caption">Wheat ear with good respective</div>
</div>

<div class="gallery-item">
<img src="./morningWithTheMoon.jpg" alt="Buildings with sunrays and the Moon">
<div class="caption">Amazing respective with sunrays falling on the buildings and shining Moon</div>
</div>

<div class="gallery-item">
<img src="./NightOutletoPic.jpg" alt="Picture of Shopping Mall "Outleto"">
<div class="caption">Night picture of Outleto from 13th floor</div>
</div>
</div>
</div>
</div>
</body>
</html>
Binary file added home_2_2/morningWithTheMoon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions home_2_2/stylesheet.css
Original file line number Diff line number Diff line change
@@ -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;
}
}