Top Banner
BOOTSTRAP FRAMEWORK AND DRUPAL PARAGRAPHS Created by Jim Birch jimbir.ch/bsp @thejimbirch Xeno Media, Inc.
23

Bootstrap framework and drupal paragraphs

Jan 07, 2017

Download

Technology

Jim Birch
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Bootstrap framework and drupal paragraphs

BOOTSTRAPFRAMEWORK ANDDRUPALPARAGRAPHSCreated by Jim Birchjimbir.ch/bsp@thejimbirchXeno Media, Inc.

Page 2: Bootstrap framework and drupal paragraphs

BOOTSTRAPPARAGRAPHSMODULEA suite of content and layoutParagraph bundles made with theBootstrap framework and Entityreference fields.

Page 3: Bootstrap framework and drupal paragraphs

BOOTSTRAPFRAMEWORKBootstrap is the most popularHTML, CSS, and JS framework fordeveloping responsive, mobile firstprojects on the web.

Page 4: Bootstrap framework and drupal paragraphs

WHY WE USE BOOTSTRAPCore functionality

Responsive Grid Markup and CSSThemable Content and Javascript ComponentsReadable Typography base

DocumentationStandardization helps teams become more productiveOnboarding new developers is quicker

CustomizableCompletely customizable for large projectsMixins for adding existing styles to semantic html

Best practices for small/low budget projectsOpen Source - MIT License

Page 5: Bootstrap framework and drupal paragraphs

DRUPAL PARAGRAPHSParagraphs is a contrib module forDrupal that allows creation,administration, and display ofcustomizable content components.

Page 6: Bootstrap framework and drupal paragraphs

WHY WE USE PARAGRAPHSDifferent widths for different content elements

Better typography - Best readability at 60 to 70characters wideBut wanting Images and Videos wider

Structured contentFrustrated with Rich Text Editors since '97WYSIWYG integration with Media, was buggy at bestAbility to add semantic markup, Schema.org, JSON-LD

Page 7: Bootstrap framework and drupal paragraphs

LET'S MAKE SOMEPARAGRAPHS!Thanks to a great

, I waspresented the idea of separatingContent and Layout paragraphbundles.

presentation I sawat Twin Cities Drupal Camp by LesLim and David Needham

Page 8: Bootstrap framework and drupal paragraphs

CONTENT BUNDLESCommon semantically organized fields, and reference fields

to common entities.

Simple HTMLImageBlock (Drupal and Custom)Contact FormsViewsMedia

Page 9: Bootstrap framework and drupal paragraphs

LAYOUT BUNDLESBootstrap functionality, with Entity Reference fields to allow

any content bundles.

Columns - Multi-value Paragraphs reference field, thatprints Bootstrap grid.Carousel - Multi-value Paragraphs reference field, thatprints Bootstrap carousel. Also has slide interval field.Accordion, Tabs, Modal...

Page 10: Bootstrap framework and drupal paragraphs

WIDTHSEvery paragraph, whether contentor layout has the option to set oneof five widths, from narrow to fullscreen using a List/Text field.

Page 11: Bootstrap framework and drupal paragraphs

WIDTHS - TWIG

Page 12: Bootstrap framework and drupal paragraphs

WIDTHS - LESS

Page 13: Bootstrap framework and drupal paragraphs

CAROUSEL - TWIG

Page 14: Bootstrap framework and drupal paragraphs

COLUMNS FIELD TEMPLATE

Page 15: Bootstrap framework and drupal paragraphs

COLUMNS - LESS

Page 16: Bootstrap framework and drupal paragraphs
Page 17: Bootstrap framework and drupal paragraphs

COLORSSimilar to widths, we have a list fieldwith colors from

and five ready to stylebootstrap-like classes (Primary,Secondary, Info, Warning, etc...)

Material Design forBootstrap

Page 18: Bootstrap framework and drupal paragraphs

COLORS

ADDING CLASSES

Page 19: Bootstrap framework and drupal paragraphs

ADDING CLASSES

Page 20: Bootstrap framework and drupal paragraphs

RENDERING CONTENT WITHOUTFIELDS

Page 21: Bootstrap framework and drupal paragraphs

MANAGE DISPLAY

Page 22: Bootstrap framework and drupal paragraphs

MANY THANKS TO:, , for supporting the

.Les Lim and David Needham's presentation

Morten, Danny Englander, Greg Boggs, Mark Conroy, andeveryone else in the So many people in Stack Overflow/Drupal Answers!

Jeroen Bobbeldijk .VDMi/ MD SystemsParagraphs module

UsingParagraphs to Weave a Beautiful Content Tapestry

Drupal Twig Slack

Page 23: Bootstrap framework and drupal paragraphs

THE ENDCONTINUING THE CONVERSATION:

Created by Jim Birchjimbir.ch/bsp@thejimbirchXeno Media, Inc.