Anton Staroverov
Design System Architect
at WONDROUS
Professional Product Manager, UX Designer and Front End Developer, all-in-one.
at Basel, Switzerland
Panel is not Content Entity!
Panel inside Panel:
Paragraphs module utilizes Composite Pattern:
Paragraph is custom Entity:
Atomic Design is about making design, not buidling the content:
but still not enough.
So powerful things...
Why?
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Data type: Text
Data type: Profile
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Color 1
Color 2
Font size 1
Font size 2
Column 1
Column 2
Column 3
h1, h2, h3, h4, h5, h6 {
margin-bottom: 0.5rem;
font-family: inherit;
font-weight: 500;
line-height: 1.1;
color: inherit;
}
<div class="card" style="width: 20rem;">
<img class="card-img-top" src="...">
<div class="card-body">
<h4 class="card-title">Card title</h4>
<p class="card-text">
Some quick example text to build on
the card title and make up the bulk
of the card's content.
</p>
<a href="#" class="btn btn-primary">
Go somewhere
</a>
</div>
</div>
<div class="row">
<div class="col">
Column 1
</div>
<div class="col">
Column 2
</div>
</div>
.bg-primary {
background-color: #007bff;
}
.float-left {
float: left;
}
.m-3 {
margin: 1rem;
}
Stop!
Where is Drupal?
Database
Style Guide
Building
Block
Content Instance
?
<div{{ attributes }}>
{% if label %}
<h2>{{ label }}</h2>
{% endif %}
{% block content %}
{{ content }}
{% endblock %}
</div>
Site Builder
Site Builder
Site Builder
Site Builder
Designer
Site Builder
• • •
(exactly what Paragraphs module does)
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin urna odio, aliquam vulputate faucibus id.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin urna odio, aliquam vulputate faucibus id.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin urna odio, aliquam vulputate faucibus id.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin urna odio, aliquam vulputate faucibus id.
2-column
Paragraph
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
2-column
Paragraph
2-column
Paragraph
Each Paragraph is self-contained => can be viewed, edited separately.
But not of the standalone Paragraphs!
https://drupal.org/project/bricks
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+
=
Can be used for both:
Too atomic structures are hard to maintain in the real life.
=> Keep the balance.
First of all, this is some data model,
not representation.
Please try to keep the border!
Layout Builder is fancy.
But manipulates abstract blocks, not content (ie: Paragraphs).
Drop an email to anton@wondrous.ch:
Submit your feedback: https://events.drupal.org/vienna2017/sessions/how-content-model-drupal-8
Take the survey!
https://www.surveymonkey.com/r/drupalconvienna