Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: align font size and text color with rest of the home page #2968

Merged
merged 3 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/landing/SectionShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default function SectionShowcase({
className={cx("rk-anon-home-section-content", styles.sectionShowcase)}
>
<Row className="rk-pt-m">
<Col md={10}>
<Col className={styles.sectionShowcaseHeader} md={10}>
<h3 className="text-rk-green">{title}</h3>
<LazyRenkuMarkdown markdownText={description} />
</Col>
Expand Down
52 changes: 52 additions & 0 deletions client/src/landing/sectionShowcase.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";

.sectionShowcase {
--swiper-pagination-bullet-size: 16px;
--swiper-pagination-bottom: 1px;
Expand Down Expand Up @@ -31,3 +35,51 @@
--swiper-navigation-sides-offset: 0px;
--swiper-theme-color: #01192d;
}

.sectionShowcaseHeader {
// Match WhatIsRenku/WhatIsRenku.module.scss #featContainer
h3 {
font-size: 40px !important;
margin: 40px 0 !important;
line-height: normal !important;
}

p {
line-height: normal !important;
}

@include media-breakpoint-up(xs) {
h3 {
font-size: 24px !important;
font-weight: bold !important;
}
p {
font-size: 20px !important;
}
}

@include media-breakpoint-up(md) {
h3 {
font-size: 32px !important;
}

p {
font-size: 20px !important;
}
}

@include media-breakpoint-up(lg) {
h3 {
font-size: 40px !important;
}
p {
font-size: 24px !important;
}
}

@include media-breakpoint-down(lg) {
h3 {
padding-top: 0 !important;
}
}
}
4 changes: 2 additions & 2 deletions client/src/styles/components/_renku_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ nav.rk-anon-home .nav-link,
#rk-anon-home-section-showcase {
@extend .section-content;
background-color: var(--bs-rk-background-0);
color: $rk-dark;
color: black;
min-height: 600px;

h3 {
Expand All @@ -231,7 +231,7 @@ nav.rk-anon-home .nav-link,
#rk-anon-home-section-showcase-empty {
@extend .section-content;
background-color: var(--bs-rk-background-0);
color: $rk-dark;
color: black;
height: 200px;
}

Expand Down
Loading