Skip to content

Commit

Permalink
made responsive Map section and investments
Browse files Browse the repository at this point in the history
  • Loading branch information
Marat200118 committed Jan 19, 2024
1 parent daae92a commit 477fedc
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 9 deletions.
55 changes: 55 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,44 @@ section {
padding: 1rem;
}

.investment-img {
max-width: 80vw;
}

.investments {
background-color: var(--dark-color);
color: var(--light-color);
}

.investment-item {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 3rem;
margin-bottom: 3rem;
}

.investment-item p {
max-width: 40ch;
}


.test-yourself {
display: none;
}

.map {
width: 50vw;
height: 30vw;
}

.map-content {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;

}

@media (min-width: 768px) {
.ahead-animation {
Expand Down Expand Up @@ -459,6 +494,26 @@ section {
margin: 10px;
box-sizing: border-box;
} */

.investment-item {
flex-direction: row;
justify-content: space-around;
align-items: center;
}

.investment-img {
max-width: 40vw;
}

.test-yourself {
display: block;
color: var(--dark-color);
}

.information-block p {
color: var(--orange);
}

}

@media (min-width: 1024px) {
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ <h4>NMBS/SNCB and Infrabel continue to invest in new rolling stock and in modern

<div class="investment-item">
<div class="investment-text">
<h3>2011</h3>
<h3 class="accent-year">2011</h3>
<p>NMBS/SNCB brought a new range of electric units into service for local and regional passenger transport. This
consists
of 305 three-part electric units of the ‘Desiro Main Line’ type. These are light-weight trains with a
Expand All @@ -340,20 +340,20 @@ <h3>2011</h3>
</div>

<div class="investment-img">
<img src="/desiro.jpg" alt="desiro">
<img src="assets/images/desiro.jpg" alt="desiro" class="investment-img">
</div>
</div>

<div class="investment-item right-alligned-item">
<div class="investment-text">
<h3>2012</h3>
<h3 class="accent-year">2012</h3>
<p>This project, providing northern access to Zaventem (Brussels Airport), involved constructing a new railway line between
Mechelen and Schaerbeek, running largely along the E19 motorway and connecting to the airport through a railway
triangle.</p>
</div>

<div class="investment-img">
<img src="/diabolo.jpg" alt="desiro">
<img src="assets/images/diabolo.jpg" alt="diabolo" class="investment-img">
</div>
</div>
</section>
Expand Down
13 changes: 8 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,16 @@ const map = () => {
weight: 4,
},
},
},
edit: {
featureGroup: editableLayers,
remove: false,
},
polygon: false,
circle: false,
rectangle: false,
marker: false,
circlemarker: false,
}
};



const drawControl = new L.Control.Draw(drawPluginOptions);
map.addControl(drawControl);

Expand Down

0 comments on commit 477fedc

Please sign in to comment.