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
60 changes: 60 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Мои проекты</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="project-gallery">
<div class="project-card">
<img src="https://via.placeholder.com/300x200" alt="Проект 1" class="project-image">
<div class="project-content">
<h3 class="project-title">Название проекта</h3>
<p class="project-description">Краткое описание этого замечательного проекта.</p>
<button class="project-button">Подробнее</button>
</div>
</div>
<div class="project-card">
<img src="https://via.placeholder.com/300x200" alt="Проект 2" class="project-image">
<div class="project-content">
<h3 class="project-title">Название проекта</h3>
<p class="project-description">Краткое описание этого замечательного проекта.</p>
<button class="project-button">Подробнее</button>
</div>
</div>
<div class="project-card">
<img src="https://via.placeholder.com/300x200" alt="Проект 3" class="project-image">
<div class="project-content">
<h3 class="project-title">Название проекта</h3>
<p class="project-description">Краткое описание этого замечательного проекта.</p>
<button class="project-button">Подробнее</button>
</div>
</div>
<div class="project-card">
<img src="https://via.placeholder.com/300x200" alt="Проект 4" class="project-image">
<div class="project-content">
<h3 class="project-title">Название проекта</h3>
<p class="project-description">Краткое описание этого замечательного проекта.</p>
<button class="project-button">Подробнее</button>
</div>
</div>
<div class="project-card">
<img src="https://via.placeholder.com/300x200" alt="Проект 5" class="project-image">
<div class="project-content">
<h3 class="project-title">Название проекта</h3>
<p class="project-description">Краткое описание этого замечательного проекта.</p>
<button class="project-button">Подробнее</button>
</div>
</div>
<div class="project-card">
<img src="https://via.placeholder.com/300x200" alt="Проект 6" class="project-image">
<div class="project-content">
<h3 class="project-title">Название проекта</h3>
<p class="project-description">Краткое описание этого замечательного проекта.</p>
<button class="project-button">Подробнее</button>
</div>
</div>
</div>
</body>
</html>
65 changes: 65 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
.project-gallery{
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 15px;
justify-content: center;
margin: 20px;
}
.project-card {
width: 300px;
height: 400px;
border: 2px solid #e0e0e0;
border-radius: 10px;
box-shadow: 8px 4px 8px rgba(66, 60, 60, 0.233);
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: white;
}

.project-image {
width: 100%;
height: auto;
}

.project-content {
padding: 20px;
text-align: center;
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}

.project-title {
margin: 10px 0;
color: #333;
}

.project-description {
color: #666;
line-height: 1.5;
margin: 10px 0;
}

.project-button {
background-color: #4CAF50;
color: white;
border: none;
padding: 12px 24px;
border-radius: 5px;
font-size: 16px;
transition: transform 0.2s;
box-shadow: 3px 5px 3px rgba(56, 61, 66, 0.527);
margin-top: 10px;
}

.project-button:hover {
transform: scale(1.1) translateY(-3px);
}
.project-button:active {
background-color: darkgreen;
}