Skip to content

Commit

Permalink
Update home view
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoparsec committed Nov 24, 2023
1 parent 56b6c64 commit 5c81c96
Show file tree
Hide file tree
Showing 6 changed files with 181 additions and 151 deletions.
1 change: 1 addition & 0 deletions lib/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Application specific code
@import "../../components/rating/rating";
@import "../../components/table/table";
@import "../../components/status/status";
@import "../../components/stripe/stripe";
@import "../../components/teaser/teaser";
@import "../../components/text/text";

Expand Down
36 changes: 36 additions & 0 deletions lib/blueprints/container-layouts/container/_container.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.container,
%container {
@include for-tablet-landscape-up {
align-items: baseline;
padding: 0 $spacer-base;
}

Expand Down Expand Up @@ -34,6 +35,41 @@
align-items: center;
}

// Vertical Spacing
.container-vertical-spacing-2xl,
%container-vertical-spacing-2xl {
@include for-tablet-landscape-up {
padding-top: $spacer-2xl;
padding-bottom: $spacer-2xl;
}

padding-top: $spacer-xl;
padding-bottom: $spacer-xl;
}

.container-vertical-spacing-xl,
%container-vertical-spacing-xl {
@include for-tablet-landscape-up {
padding-top: $spacer-xl;
padding-bottom: $spacer-xl;
}

padding-top: $spacer-lg;
padding-bottom: $spacer-lg;
}

.container-vertical-spacing-lg,
%container-vertical-spacing-lg {
@include for-tablet-landscape-up {
padding-top: $spacer-lg;
padding-bottom: $spacer-lg;
}

padding-top: $spacer-base;
padding-bottom: $spacer-base;
}

// Deprecated Class TODO Replace everywhere
.container__fullwidth {
@include for-tablet-landscape-up {
padding: 0 $spacer-base;
Expand Down
4 changes: 2 additions & 2 deletions lib/components/buttons/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
&:hover,
&:focus {
color: $brand-text;
background-color: $brand-primary-light;
background-color: $brand-primary;
}
}

Expand All @@ -58,7 +58,7 @@

&:hover,
&:focus {
background-color: $brand-secondary-light;
background-color: $brand-secondary;
}
}

Expand Down
13 changes: 7 additions & 6 deletions lib/components/hero/_hero.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.hero {
@include for-tablet-landscape-up {
grid-template-columns: 1fr 1fr;
gap: $spacer-xl;
padding: $spacer-xl $spacer-base $spacer-xl $spacer-base;
grid-template-columns: 1.3fr 1fr;
gap: $spacer-sm;
padding: $spacer-2xl $spacer-base 0 $spacer-base;
}

display: grid;
Expand All @@ -11,7 +11,7 @@
width: 100%;
max-width: $desktop-xl;
margin: 0 auto;
padding: $spacer-lg $spacer-xs $spacer-lg $spacer-xs;
padding: $spacer-lg $spacer-xs 0 $spacer-xs;
}

.hero_grid-wrapper {
Expand Down Expand Up @@ -50,15 +50,16 @@
.hero__image {
@include for-tablet-landscape-up {
display: block;
align-self: flex-start;
width: 70%;
align-self: flex-end;
width: 75%;
}

display: none;
}

.hero__logos {
@include for-tablet-landscape-up {
align-self: flex-end;
margin-top: $spacer-md;
}

Expand Down
28 changes: 28 additions & 0 deletions lib/components/stripe/_stripe.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.stripe {
overflow: hidden;
width: 100%;
}

.stripe--primary {
background-color: $brand-primary;
}

.stripe--primary-light {
background-color: $brand-primary-light;
}

.stripe--secondary {
background-color: $brand-secondary;
}

.stripe--secondary-light {
background-color: $brand-secondary-light;
}

.stripe--white-1 {
background-color: $brand-white-1;
}

.stripe--black {
background-color: $brand-gray;
}
Loading

0 comments on commit 5c81c96

Please sign in to comment.