Skip to content

Commit

Permalink
improved margin consistency on landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverHeffernan committed Oct 5, 2024
1 parent d666f8c commit f1235e3
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 13 deletions.
22 changes: 20 additions & 2 deletions landingPage/css/featureContainer.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,35 @@
box-sizing: border-box;
flex: 1 1 200px;
} */
/* @media (min-width: 1101px) {
featureContainer {
width: 250px;
margin: 25px;
}
}
@media (max-width: 1100px) {
featureContainer {
width: calc(100vw - 40px);
}
} */

featureContainer {
background-color: #151d29;
padding: 15px;
border-radius: 12px;
width: min(250px, calc(100% - 40px));
margin: 25px;
/* width: min(250px, calc(100% - 40px)); */
/* margin-top: 25px;
margin-bottom: 25px; */
text-align: left;
color: white;
text-decoration: none;
transition: all 0.4s;

flex: 1 1 calc(33.333% - 10px);
box-sizing: border-box;

min-width: 250px;
}

featureContainer h2 {
Expand Down
12 changes: 5 additions & 7 deletions landingPage/css/featuresSection.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#featuresSection {
padding: 20px;
}

#featureWrap {
background: none;
width: 100%;
/* width: 100%; */
display: flex;
flex-wrap: wrap;
justify-content: center;
justify-content: space-between;
gap: 10px;
}
#featuresSection h1 {
text-align: center;
}
margin: 50px 0;
}
6 changes: 4 additions & 2 deletions landingPage/css/landingSpread.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#landingSpread {
width: calc(100vw - 60px);
/* width: calc(100vw - 60px); */
background-color: #151d29;
display: flex;
margin: 20px;
/* margin: 20px; */
margin-top: 20px;
border-radius: 20px;
text-decoration: none;
}
Expand Down Expand Up @@ -45,6 +46,7 @@

#landingSpread #rightSide {
width: calc(100% - 40px);
margin-left: 20px;
}
}

Expand Down
18 changes: 18 additions & 0 deletions landingPage/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,22 @@
body {
background-color: #0C1118;
overflow-x: hidden;
}

@media (min-width: 1101px) {
.consistentMargin {
width: 1000px;
margin-left: auto;
margin-right: auto;
}
}

@media (max-width: 1100px) {
.consistentMargin {
width: calc(100% - 40px);
margin-left: 20px;
margin-right: 20px;
}


}
2 changes: 1 addition & 1 deletion landingPage/imports/featuresSection.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<block class="featuresSection">
<div id="featuresSection">
<div id="featuresSection" class="consistentMargin">
<h1>Features</h1>
<div id="featureWrap">
<featureContainer
Expand Down
2 changes: 1 addition & 1 deletion landingPage/imports/landingSpread.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<block class="landingSpread">
<a id="landingSpread" href="https://oliverheffernan.github.io/vue-calculator/dist/" target="_blank">
<a id="landingSpread" class="consistentMargin" href="https://oliverheffernan.github.io/vue-calculator/dist/" target="_blank">
<div id="leftSide">
<h1>Calc</h1>
<p id="first">Short for Calculator</p>
Expand Down

0 comments on commit f1235e3

Please sign in to comment.