template code
template code
HTML
<ion-header>
<ion-toolbar>
<ion-title class="header">
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<div class="car-image-container">
<div class="text-overlay">
</div>
</div>
<div class="car-details">
<div class="text-overlay">
</div>
<div class="price">₱69,678</div>
</div>
<div class="info-card">
<div class="price">₱69,678</div>
<div class="description-text">
The Mercedes-Benz W136 was Mercedes-Benz's main line of inline-four cylinder motorcars from the
mid-1930s into the 1950s. The model 170 V made its public debut as successor to the W15 Typ 170 in
February 1936. Between 1936 and 1939 it was Mercedes' top selling model.
</div>
</div>
<div class="card-section">
<ion-card class="card">
</ion-card>
<ion-card class="card">
</ion-card>
</div>
</ion-content>
Home.page.scss
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); /*
Import custom fonts */
.content {
}
.car-image-container {
position: relative;
width: 100%;
.car-image {
width: 100%;
height: 100%;
.text-overlay {
position: absolute;
left: 50%;
transform: translateX(-50%);
color: rgba(255, 255, 255, 0.7); /* Light white color with lower opacity */
font-weight: bold;
.price {
font-size: 28px;
.description {
margin-top: 10px;
.header {
display: flex;
align-items: center;
.header-title {
.logo {
.side-image {
.card-section {
display: flex;
padding: 16px;
.card {
background: linear-gradient(135deg, #1c1c1c 0%, #000000 100%); /* Gradient from dark gray to black
*/
border-radius: 10px;
overflow: hidden;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Optional shadow for a subtle 3D effect */
.card-image {
width: 100%;
.card-caption {
padding: 8px;
font-weight: bold;
}
.info-card {
background: linear-gradient(135deg, #000000 0%, #333333 100%); /* Gradient from black to dark gray
*/
border-radius: 10px;
text-align: center;
.info-card h2 {
.info-card .price {
font-weight: bold;
.description-text {
color: rgba(255, 255, 255, 0.9); /* Light white color with higher opacity */