From 7ef30c0398e34a5c48483e83ed4797edf8119bc7 Mon Sep 17 00:00:00 2001 From: Biraj Pantha <100142251+bp289@users.noreply.github.com> Date: Thu, 27 Jul 2023 16:31:47 +0100 Subject: [PATCH] Feat/homepage events (#83) * html * hero * hero button * hero section * page content added * flex on the content section * added svgs * set margins for headings * finished responsive design * finished responsive design * finished with events section * events section done * linitng * hiding scrollbar * liner fixes * linter changes * Update bioconductor-v2.css --- assets/style/bioconductor-v2.css | 5 +- assets/style/buttons.css | 39 ++++++++- assets/style/home.css | 65 +++++++++++++++ content/index.html | 134 ++++++++++++++++++++----------- 4 files changed, 193 insertions(+), 50 deletions(-) diff --git a/assets/style/bioconductor-v2.css b/assets/style/bioconductor-v2.css index e283d197c..779258220 100644 --- a/assets/style/bioconductor-v2.css +++ b/assets/style/bioconductor-v2.css @@ -1,10 +1,13 @@ body { font-family: "Atkinson Hyperlegible", sans-serif; margin: 0; - background: var(--neutral-n50); color: #070707; } +main { + background: var(--neutral-n50); +} + .container { margin: 0 auto; width: calc(100% - 3rem); diff --git a/assets/style/buttons.css b/assets/style/buttons.css index 70b7ed709..4362c0a1f 100644 --- a/assets/style/buttons.css +++ b/assets/style/buttons.css @@ -1,3 +1,37 @@ +.white-button { + background: var(--neutral-n50); + color: var(--primary-p400); + min-height: 20px; + max-height: 20px; + cursor: pointer; + display: block; + width: fit-content; + transition: 0.3s; + padding: 0.6rem 0.8rem; + border-radius: 8rem; +} + +.white-button:hover { + background: var(--primary-p50); +} + +.white-button:active { + background: var(--primary-p200); +} + +.white-button * { + vertical-align: middle; +} + +.white-button svg { + margin-bottom: 1px; +} + +.white-button svg:hover { + background: var(--primary-p50); + stroke: black; +} + .button-hero { padding: 1rem 1.625rem; border-radius: 16rem; @@ -64,10 +98,11 @@ } @media (prefers-reduced-motion: reduce) { + .button-hero, + .white-button, .brand-border-button, .brand-border-button svg path, - .brand-border-button span, - .button-hero { + .brand-border-button span { transition: none; } } diff --git a/assets/style/home.css b/assets/style/home.css index 366d87ef8..7a4b141c3 100644 --- a/assets/style/home.css +++ b/assets/style/home.css @@ -1,3 +1,64 @@ +.events-header { + display: flex; + justify-content: space-between; + margin-right: 6.25rem; + margin-bottom: 1rem; +} + +.events-header h3 { + margin-left: 1rem; +} + +.events-container { + display: flex; + overflow-x: scroll; + gap: 1.56rem; + margin-bottom: 1.5rem; + -ms-overflow-style: none; /* disable scrollbar for IE and Edge */ + scrollbar-width: none; /* disable scrollbar for Firefox */ +} + +.events-container::-webkit-scrollbar { + display: none; /* disable scrollbar for chrome */ +} + +.event-card-container { + display: inline-block; + background-color: white; + padding: 0.875rem; + min-width: 17.5rem; + max-width: 17.5rem; + max-height: 12.25rem; +} + +.event-card { + height: 100%; + width: 100%; +} + +.event-card .format-bold { + margin-top: 0; + margin-bottom: 1.5rem; + width: 100%; + flex: 1 0 0; + align-self: stretch; + height: 4.75rem; + color: var(--primary-p500); + max-width: 12.8rem; +} + +.event-date-location { + padding-top: 1rem; + border-top: 1px solid; + border-color: var(--primary-p-50, #ebf4f7); +} + +.event-date-location * { + margin-block-start: 0; + margin-block-end: 0; + color: var(--neutral-n400); +} + .information-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); @@ -133,6 +194,10 @@ width: 60%; } + .events-header { + margin: auto; + } + .information-container { display: flex; flex-direction: column; diff --git a/content/index.html b/content/index.html index 3de668adc..729d45fc6 100644 --- a/content/index.html +++ b/content/index.html @@ -351,62 +351,102 @@
CSHL course: Statistical Analysis of Genome Scale Data
-+ CSHL course: Statistical Analysis of Genome Scale Data +
+New York, USA
+- ISMB/ECCB 2023 tutorial: Orchestrating Large-Scale Single-Cell - Analysis with Bioconductor -
-Lyon, France
++ ISMB/ECCB 2023 tutorial: Orchestrating Large-Scale Single-Cell + Analysis with Bioconductor +
+Lyon, France
+RNA-seq analysis with Bioconductor
-Boston, USA
+RNA-seq analysis with Bioconductor
+Boston, USA
+BioC2023: Where Software and Biology Connect
-Boston, USA and Virtual Conference
++ BioC2023: Where Software and Biology Connect +
+Boston, USA and Virtual Conference
+EuroBioC2023: European Bioconductor cONFERENCE
-Ghent, Belgium
++ EuroBioC2023: European Bioconductor Conference +
+Ghent, Belgium
+