From eb6bd62d9029d6302bf358171d06f106483a6071 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Thu, 16 Jul 2020 07:05:22 -0400 Subject: [PATCH] Add splash image to docs --- docs/assets/images/undraw-content-team.svg | 1 + docs/assets/styles/docs.css | 50 ++++++++++++++++++++-- docs/getting-started/overview.md | 27 +++++++----- 3 files changed, 64 insertions(+), 14 deletions(-) create mode 100644 docs/assets/images/undraw-content-team.svg diff --git a/docs/assets/images/undraw-content-team.svg b/docs/assets/images/undraw-content-team.svg new file mode 100644 index 00000000..08bc7482 --- /dev/null +++ b/docs/assets/images/undraw-content-team.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/assets/styles/docs.css b/docs/assets/styles/docs.css index b27f7c9f..76d1e5d8 100644 --- a/docs/assets/styles/docs.css +++ b/docs/assets/styles/docs.css @@ -163,6 +163,52 @@ a { margin-left: 1.5rem; } +/* Splash */ +.splash { + display: flex; + margin-bottom: 2rem; +} + +.splash-start { + min-width: 420px; +} + +.splash-end { + display: flex; + align-items: flex-end; + width: auto; + padding-left: 1rem; +} + +.splash-image { + width: 100%; + height: auto; +} + +.splash-logo { + max-width: 22rem; +} + +@media screen and (max-width: 1040px) { + .splash { + display: block; + } + + .splash-start { + min-width: 0; + padding-bottom: 1rem; + } + + .splash-end { + padding: 0; + } + + .splash-image { + display: block; + max-width: 400px; + } +} + /* Content */ .content { padding-top: 0; @@ -172,10 +218,6 @@ a { max-width: 860px; } -.markdown-section .logo { - max-width: 24rem; -} - .markdown-section ul { padding: 0 0 0 1.5rem; margin: 0; diff --git a/docs/getting-started/overview.md b/docs/getting-started/overview.md index 36526f32..1480e36c 100644 --- a/docs/getting-started/overview.md +++ b/docs/getting-started/overview.md @@ -1,13 +1,19 @@ - - -A forward-thinking library of web components. - -- Works with all frameworks 🧩 -- Works with CDNs 🚛 -- Fully customizable with CSS 🎨 -- Open source 😸 - -Designed in New Hampshire by [Cory LaViska](https://twitter.com/claviska). +
+
+ +

A forward-thinking library of web components.

+
    +
  • Works with all frameworks 🧩
  • +
  • Works with CDNs 🚛
  • +
  • Fully customizable with CSS 🎨
  • +
  • Open source 😸
  • +
+

Designed in New Hampshire by Cory LaViska.

+
+
+ Cartoon of people assembling components while standing on a giant laptop. +
+
## Quick Start @@ -102,6 +108,7 @@ Special thanks to the following projects and individuals that helped make Shoela - Documentation is powered by [Docsify](https://docsify.js.org/) - Theme colors and form controls are inspired by [Element](element.eleme.io) - Icons are courtesy of [Bootstrap Icons](https://icons.getbootstrap.com/) +- Illustrations are courtesy of [unDraw](https://undraw.co/) - Positioning of menus, tooltips, et al is handled by [Popper.js](https://popper.js.org/) - CDN services are provided by [unpkg](https://unpkg.com/) - The Shoelace logo was designed with a single shoelace by [Adam K Olson](https://twitter.com/adamkolson)