forked from zinc-collective/convene
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🌸
DesignLibrary
: Layout is responsible for.... Layout... (zinc-coll…
…ective#2281) - zinc-collective#1187 - zinc-collective#2271 - zinc-collective#2253 One of the things we've kept bumping into is that each page has to decide how wide it wants to be. That doesn't really seem sustainable or particularly necessary; so now the Layout takes care of: - Providing a Max-Width on every page - Ensuring the Layout is centered horizontally - Ensuring there is appropriate margin from the top of the screen
- Loading branch information
Showing
9 changed files
with
51 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
<section class="max-w-3xl mx-auto"> | ||
<%= render Journal::NewEntryButtonComponent.new(journal: journal) %> | ||
|
||
<div class="flex flex-wrap"> | ||
<%- @pagy, @entries = pagy(policy_scope(journal.entries.recent)) %> | ||
<%= render Journal::NewEntryButtonComponent.new(journal: journal) %> | ||
|
||
<%= render Journal::EntryComponent.with_collection(@entries) %> | ||
</div> | ||
<div class="flex flex-wrap"> | ||
<%- @pagy, @entries = pagy(policy_scope(journal.entries.recent)) %> | ||
|
||
<%== pagy_nav(@pagy) %> | ||
<%= render Journal::EntryComponent.with_collection(@entries) %> | ||
</div> | ||
|
||
<%= render Journal::NewEntryButtonComponent.new(journal: journal) %> | ||
</section> | ||
<%== pagy_nav(@pagy) %> | ||
|
||
<%= render Journal::NewEntryButtonComponent.new(journal: journal) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
<%- content_for :content do %> | ||
<div class="flex flex-col content-between justify-end mx-auto max-w-7xl sm:px-6 lg:px-8"> | ||
<div class="grow mx-auto w-full"> | ||
<%= turbo_frame_tag(marketplace, data: { turbo_action: :advance }) do %> | ||
<%- if policy(marketplace).edit? %> | ||
<%= render Marketplace::ManagementComponent.new(marketplace: marketplace) do %> | ||
<%= yield %> | ||
<%- end %> | ||
<%- else %> | ||
<section> | ||
<header> | ||
<h2> | ||
<%= t('.header', space: marketplace.space.name, room: marketplace.room.name) %> | ||
</h2> | ||
</header> | ||
<div> | ||
<%= yield %> | ||
</div> | ||
</section> | ||
<div class="grow mx-auto w-full"> | ||
<%= turbo_frame_tag(marketplace, data: { turbo_action: :advance }) do %> | ||
<%- if policy(marketplace).edit? %> | ||
<%= render Marketplace::ManagementComponent.new(marketplace: marketplace) do %> | ||
<%= yield %> | ||
<%- end %> | ||
<%- else %> | ||
<section> | ||
<header> | ||
<h2> | ||
<%= t('.header', space: marketplace.space.name, room: marketplace.room.name) %> | ||
</h2> | ||
</header> | ||
<div> | ||
<%= yield %> | ||
</div> | ||
</section> | ||
<%- end %> | ||
<%- end %> | ||
</div> | ||
<%- end %> | ||
</div> | ||
|
||
<%= render template: "layouts/application" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<%- breadcrumb :marketplace_orders, marketplace %> | ||
<%- @pagy, @records = pagy(orders.paid) %> | ||
<div class="mx-auto w-full max-w-prose"> | ||
<%= render @records %> | ||
<%== pagy_nav(@pagy) if @pagy.pages > 1 %> | ||
</div> | ||
|
||
<%= render @records %> | ||
<%== pagy_nav(@pagy) if @pagy.pages > 1 %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<%- breadcrumb :marketplace_order, order%> | ||
<div class="mx-auto w-full max-w-prose"> | ||
<%= render order %> | ||
</div> | ||
|
||
<%= render order %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
<div class="md:w-4/12 sm:w-auto m-auto mt-8"> | ||
<%= render partial: 'form', locals: { authenticated_session: authenticated_session } %> | ||
</div> | ||
<%= render partial: 'form', locals: { authenticated_session: authenticated_session } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
<%- if room.hero_image&.upload.present? %> | ||
<%= image_tag room.hero_image&.upload&.variant(resize_to_fill: Media::FULL_WIDTH_SHORT), class: "w-full" %> | ||
<%- end %> | ||
<div class="flex flex-col content-between justify-end mx-auto max-w-7xl sm:px-6 lg:px-8"> | ||
<div class="grow mx-auto w-full"> | ||
<section id="furnitures"> | ||
<%= render room.gizmos.rank(:slot) %> | ||
</section> | ||
</div> | ||
|
||
<div class="grow mx-auto w-full"> | ||
<section id="furnitures"> | ||
<%= render room.gizmos.rank(:slot) %> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters