Skip to content

Commit 7b4ac8f

Browse files
committed
New style for Shared domain layer in index
1 parent f02d7da commit 7b4ac8f

4 files changed

Lines changed: 31 additions & 17 deletions

File tree

public/css/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App/assets/scss/components/_custom.scss

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,24 @@ section {
155155
}
156156

157157
.core-band {
158-
display: flex;
159-
flex-direction: column;
160-
gap: 8px;
161158
background: var(--surface-2);
162159
border: 1px solid var(--border-soft);
163160
border-left: 3px solid var(--teal);
164161
border-radius: var(--radius);
165-
padding: 10px 26px;
162+
padding: 32px 40px;
166163
margin-bottom: 40px;
164+
margin-right: 0;
165+
margin-left: 0;
166+
167+
// Bootstrap's border-start divider only reads as a divider once the
168+
// columns sit side by side; stacked on mobile it would just look stray.
169+
.border-start {
170+
@media (max-width: 991.98px) {
171+
border: none !important;
172+
padding-left: 0 !important;
173+
margin-top: 16px;
174+
}
175+
}
167176
}
168177

169178
.core-band-label {
@@ -175,6 +184,7 @@ section {
175184
display: inline-flex;
176185
align-items: center;
177186
gap: 8px;
187+
margin-bottom: 14px !important;
178188

179189
&::before {
180190
content: "";
@@ -193,15 +203,15 @@ section {
193203
background: var(--teal-dim);
194204
border: 1px solid var(--teal);
195205
border-radius: 6px;
196-
padding: 4px 10px;
197-
margin: 0 6px 6px 0;
206+
padding: 5px 12px;
207+
margin: 0 8px 10px 0;
198208
display: inline-block;
199209
}
200210

201211
.core-band p {
202-
font-size: 15px;
203-
line-height: 1.65;
204-
max-width: 780px;
212+
font-size: 15.5px;
213+
line-height: 1.75;
214+
margin: 0;
205215
}
206216

207217
/* ============================================================

src/App/templates/app/index.html.twig

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,16 @@
9393
Three deployables that scale independently and never disagree about the domain.</p>
9494
</div>
9595

96-
<div class="core-band">
97-
<span class="core-band-label">Shared domain layer</span>
98-
<code>Core\App</code> <code>Core\Admin</code> <code>Core\User</code>
99-
<code>Core\Security</code> <code>Core\Setting</code>
100-
<p>One set of entities and repositories. Committed in each repo, so a single-component start just works. Commit it into its own repo and share it as a Git submodule when you add a second.</p>
101-
</div>
96+
<div class="core-band row align-items-center gy-3">
97+
<div class="col-12 col-lg-6">
98+
<span class="core-band-label my-2">Shared domain layer</span><br>
99+
<code>Core\App</code> <code>Core\Admin</code> <code>Core\User</code>
100+
<code>Core\Security</code> <code>Core\Setting</code>
101+
</div>
102+
<div class="col-12 col-lg-6 border-start ps-lg-4">
103+
<p>One set of entities and repositories. Committed in each repo, so a single-component start just works. Commit it into its own repo and share it as a Git submodule when you add a second.</p>
104+
</div>
105+
</div>
102106

103107
<div class="products-grid">
104108

0 commit comments

Comments
 (0)