Skip to content

Commit

Permalink
исправлены размеры изображений
Browse files Browse the repository at this point in the history
  • Loading branch information
ardnaxelas committed Dec 9, 2024
1 parent da5e17e commit 23d48e9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion citywalls2/public/stylesheets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ th, td {
th {
background-color: #f4f4f4;
}
img {

.house-photo {
max-width: 100px;
height: auto;
}
2 changes: 1 addition & 1 deletion citywalls2/views/house.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<body>
<div class="house-container">
<h2>Адрес дома: <%= house.street %>, <%= house.house_number %></h2>
<img src="<%= house.photo %>" alt="Фото дома">
<img src="<%= house.photo %>" alt="Фото дома" class="house-photo">
<p><strong>Год постройки:</strong> <%= house.construction_year %></p>
<p><strong>Количество этажей:</strong> <%= house.floors %></p>
<p><strong>Количество квартир:</strong> <%= house.apartments %></p>
Expand Down
2 changes: 1 addition & 1 deletion citywalls2/views/houses.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<tbody>
<% houses.forEach(function(house) { %>
<tr>
<td><img src="<%= house.photo %>" alt="Фото дома"></td>
<td><img src="<%= house.photo %>" alt="Фото дома" class="house-photo"></td>
<td>
<a href="/main/streets/<%= encodeURIComponent(house.street) %>/houses/<%= house._key %>">
<%= house.street %>, <%= house.house_number %>
Expand Down
4 changes: 1 addition & 3 deletions citywalls2/views/main.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
<a href="/main/houses">Дома</a>
</div>

<div class="image-container">
<img src="/images/SPb.png" alt="Санкт-Петербург">
</div>
<img src="/images/SPb.png" alt="Санкт-Петербург">
</body>
</html>

0 comments on commit 23d48e9

Please sign in to comment.