Skip to content

Commit

Permalink
hardcoded a method to align pictures in accomplishments page, PLEASEE…
Browse files Browse the repository at this point in the history
…E FIXX ITS SO BAD
  • Loading branch information
dominrios committed Sep 27, 2024
1 parent 1bacf11 commit 35e4b1b
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 9 deletions.
39 changes: 38 additions & 1 deletion assets/sass/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,42 @@ $breakpoints: (
}
}

// Handling Accomplishments styles

.AccomplishmentsRight {
flex: 0 0 30%; /* Adjust width as needed */
position: relative;
}

.AccomplishmentsRight .AccomplishmentFig {
position: absolute; /* Easier hard coding */
}

// Accomplishments sidebar with pictures hard coded
#giving-control-to-smbs { top: 4em; }
#getting-intelligent-with-the-grid { top: 22em; }
#supporting-connected-communities { top: 50em}
#connecting-home-appliances { top: 138em; }
#creating-a-buildings-living-laboratory { top: 90em; }

.AccomplishmentFig {
@extend .SidebarFig;
img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;

@media (max-width: 1440px) {
max-width: 90%;
}

@media (max-width: 1024px) {
max-width: 80%;
}
}
}


.SidebarFig h4{
font-size: 1vw;
Expand Down Expand Up @@ -436,7 +472,8 @@ a.imageLink{

header {
p {
color: _palette(fg-light);
// color: _palette(fg-light);
color: rgb(66, 66, 66);
font-size: 1em;
position: relative;
margin-top: -1.25em;
Expand Down
18 changes: 11 additions & 7 deletions layouts/partials/sidebar/AccomplishmentsRight.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
<section>
<figure class="SidebarFig">
<img src='{{absURL "images/AccomplishmentsImages/smb.png"}}' >
<section class="AccomplishmentsRight">
<figure class="AccomplishmentFig" id="giving-control-to-smbs">
<img src='{{absURL "images/AccomplishmentsImages/smb.png"}}' alt="SMB Image">
</figure>

<figure class="SidebarFig">
<figure class="AccomplishmentFig" id="getting-intelligent-with-the-grid">
<img src='{{absURL "images/AccomplishmentsImages/ILC.png"}}' >
</figure>

<figure class="SidebarFig" style="max-width: 90%;">
<img src='{{absURL "images/AccomplishmentsImages/EED_1787_FIG_HomesGraphicRev_v7_1600x1200 (1).png"}}' >
<figure class="AccomplishmentFig" id="supporting-connected-communities">
<img src='{{absURL "images/AccomplishmentsImages/supporting_connected_communites_brandon_jacoby.jpg"}}' >
</figure>

<figure class="SidebarFig" style="max-width: 90%;">
<figure class="AccomplishmentFig" id="connecting-home-appliances" style="max-width: 90%;">
<img src='{{absURL "images/AccomplishmentsImages/EED_1787_FIG_HomesGraphicRev_v7_1600x1200 (1).png"}}' alt="Homes Graphic">
</figure>

<figure class="AccomplishmentFig" id="creating-a-buildings-living-laboratory" style="max-width: 90%;">
<img src='{{absURL "images/AccomplishmentsImages/campus_2.png"}}' >
</figure>
</section>

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 35e4b1b

Please sign in to comment.