Skip to content

Commit c6cef44

Browse files
committed
Dynamic SS Size
1 parent a85e7ff commit c6cef44

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

app_SS1.jpg

22.8 KB
Loading

index.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,25 @@
109109
.app-container {
110110
display: flex;
111111
gap: 40px;
112-
align-items: center;
112+
align-items: stretch;
113113
justify-content: center;
114114
margin: 0 auto;
115+
flex-wrap: wrap;
116+
}
117+
118+
.app-image {
119+
flex: 0 1 auto;
120+
min-width: 0;
121+
display: flex;
122+
align-items: center;
115123
}
116124

117125
.app-image img {
126+
max-width: 100%;
127+
height: auto;
118128
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
119129
transition: transform 0.3s ease;
130+
object-fit: contain;
120131
}
121132

122133
.app-image img:hover {
@@ -236,8 +247,8 @@ <h2>Demo Video</h2>
236247
<section class="app-download">
237248
<h2>Experience AgroSmart Mobile App</h2>
238249
<div class="app-container">
239-
<div class="app-image" style="flex: 0 0 540px;">
240-
<img src="app_SS1.jpg" alt="Application Screenshot" style="width: 540px; height: 1569px; object-fit: contain; border-radius: 15px;">
250+
<div class="app-image">
251+
<img src="app_SS1.jpg" alt="Application Screenshot" style="max-height: 80vh; border-radius: 15px;"
241252
</div>
242253
<div class="app-description" style="flex: 1;">
243254
<h3>AgroSmart Mobile Application</h3>

0 commit comments

Comments
 (0)