Skip to content

Commit 246355c

Browse files
Merge pull request #1975 from yassmittal/design-fix
design fix in UI of zomato app
2 parents 1434a32 + b8845f2 commit 246355c

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

Projects/Zomato-Landing-Page/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ <h1>Get the Zomato App</h1>
162162
</div>
163163
</div>
164164
<div class="input-container">
165-
<input type="text" placeholder="Email">
165+
<input type="email" placeholder="Email">
166166
<button>Share App Link</button>
167167
</div>
168168
<div class="download-app-container">

Projects/Zomato-Landing-Page/styles.css

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
}
9797

9898
.we-offer{
99-
display: flex;
99+
display: grid;
100+
grid-template-columns: repeat(3, minmax(0, 1fr));
100101
flex-wrap: wrap;
101102
gap: 0.5rem;
102103
align-items: center;
@@ -105,9 +106,10 @@
105106

106107
.we-offer-card{
107108
border-radius: 10px;
108-
overflow: hidden;
109+
/* overflow: hidden; */
109110
border: 1px solid #e0e0e0;
110-
transition: all 0.3sec ease;
111+
transition: all 0.3s ease;
112+
cursor: pointer;
111113
}
112114

113115
.we-offer-card:hover{
@@ -116,11 +118,21 @@
116118

117119
.we-offer-card img{
118120
width: 100%;
121+
border-radius: 10px 10px 0 0;
119122
height: 160px;
120123
object-fit: cover;
121124
object-position: center;
122125
}
126+
.we-offer-card .we-offer-content{
127+
padding: 0.5rem;
128+
}
123129

130+
.we-offer-card .we-offer-content p:last-child{
131+
overflow: hidden;
132+
text-overflow: ellipsis;
133+
max-width: 100%;
134+
white-space: nowrap;
135+
}
124136
.we-offer-container{
125137
padding: 10px;
126138
}
@@ -451,6 +463,9 @@
451463
grid-template-columns: repeat(3,1fr);
452464
}
453465

466+
.we-offer{
467+
grid-template-columns: repeat(2, minmax(0, 1fr));
468+
}
454469

455470

456471
}
@@ -468,8 +483,9 @@
468483
grid-template-columns: repeat(1,1fr);
469484
}
470485

471-
472-
486+
.we-offer{
487+
grid-template-columns: repeat(1, minmax(0, 1fr));
488+
}
473489
}
474490

475491

0 commit comments

Comments
 (0)