From 6b680cdc5e2e218d5ebdd01a39504d0f9b244753 Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Wed, 7 Jul 2021 16:32:21 -0700 Subject: [PATCH] static implementation of carousel --- assets/css/home.css | 55 ++++++++++++++++-- index.html | 133 ++++++++++++++++++++++++++------------------ 2 files changed, 130 insertions(+), 58 deletions(-) diff --git a/assets/css/home.css b/assets/css/home.css index 248d7ca4a1..803ab8cf09 100644 --- a/assets/css/home.css +++ b/assets/css/home.css @@ -228,7 +228,7 @@ } .button { - width: 10em; + min-width: 10em; } .container { @@ -273,7 +273,10 @@ display: flex; } -.col-4 { +/* TODO: completely refactor this */ +/* we shouldn't be overriding the default .col-4 styles */ + +.why-column-padder { width: 30.5%; text-align:center; vertical-align:top; @@ -283,12 +286,12 @@ margin-right: 0.5em; } -.col-4 p { +.why-column-padder p { margin-top: 1em; font-size: 1.2em; } -.col-4 h2 { +.why-column-padder h2 { font-size: 1.6em; } @@ -316,3 +319,47 @@ margin-right: auto; } } + +/* code for the carousel plugin */ + +.plugin-card { + border: 1px solid rgba(0,0,0,.125); + border-radius: .25rem; +} + +.plugin-card-header { + background-color: rgba(0,0,0,.03); + border-bottom: 1px solid rgba(0,0,0,.125); + padding: .5rem 1rem; +} + +.plugin-card-body { + padding: 1rem 1rem; +} + +.plugin-nav-tabs { + display: flex; + flex-wrap: wrap; + list-style: none; + margin: 0 -0.5rem; + padding-left: 0; +} + +.carousel-item { + display: none; +} + +.carousel-item-show { + display: block; +} + +.img-fluid { + display: block; + max-width: 100%; + height: auto; + margin: 0 auto; +} + +.img-plugin { + max-width: 50%; +} diff --git a/index.html b/index.html index 713a49705d..bb8595ee86 100644 --- a/index.html +++ b/index.html @@ -85,7 +85,7 @@

Why ImageJ?

-
+
@@ -102,7 +102,7 @@

Powerful

and much more.

-
+
@@ -112,7 +112,7 @@

Extensible

hundreds of plugins to assist with any of your imaging needs.

-
+
@@ -132,68 +132,93 @@

Free & Open Source

-
-
-
- -
-
-
- +
+
+
+
+

Plugins

+

+ Fiji features thousands of plugins that aid in scientific image processing and analysis. Here are a few featured plugins hand-picked by the Fiji community - refresh the page to see different plugins! +

+ + Explore Extensions + +
+
+
+
+
    + +
+
+
+
+ +
+
+
-
+ - - -