|
33 | 33 | <%= render partial: 'shared/toast' %> |
34 | 34 | <%= render partial: 'shared/topbar' %> |
35 | 35 |
|
36 | | - <!-- |
37 | | - This example requires Tailwind CSS v2.0+ |
38 | | - |
39 | | - This example requires some changes to your config: |
40 | | - |
41 | | - ``` |
42 | | - // tailwind.config.js |
43 | | - module.exports = { |
44 | | - // ... |
45 | | - plugins: [ |
46 | | - // ... |
47 | | - require('@tailwindcss/forms'), |
48 | | - ] |
49 | | - } |
50 | | - ``` |
51 | | - --> |
52 | 36 | <div class="max-w-6xl mx-auto py-4 sm:px-6 lg:px-8"> |
53 | 37 | <div class="min-h-screen bg-gray-100"> |
54 | 38 | <!-- When the mobile menu is open, add `overflow-hidden` to the `body` element to prevent double scrollbars --> |
|
58 | 42 | <main class="lg:col-span-9 xl:col-span-9"> |
59 | 43 | <%= yield %> |
60 | 44 | </main> |
61 | | - <aside class="xl:block xl:col-span-3"> |
62 | | - <div class="sticky position-sticky--topbar space-y-4"> |
63 | | - <% if user_signed_in? %> |
64 | | - <%= |
65 | | - button_tag( |
66 | | - 'NEW SNIPPET', |
67 | | - class: 'w-full button--cta-primary flex justify-center', |
68 | | - data: { |
69 | | - controller: 'modal', |
70 | | - action: 'modal#present', |
71 | | - modal_url_value: new_modals_snippet_path(folder_id: new_snippet_folder_id) |
72 | | - } |
73 | | - ) |
74 | | - %> |
75 | | - <% else %> |
76 | | - <div class="flex justify-center"> |
77 | | - <%= button_tag('LOG IN', type: :button, class: "flex-1 flex justify-center button--cta-tertiary", data: { controller: "modal", modal_url_value: sign_in_modals_users_path, action: "click->modal#present" }) %> |
78 | | - <%= button_tag('SIGN UP', type: :button, class: "flex-1 flex justify-center button--cta-primary ml-2", data: { controller: "modal", modal_url_value: sign_up_modals_users_path, action: "click->modal#present" }) %> |
79 | | - </div> |
80 | | - <% end %> |
81 | | - |
82 | | - <%= render partial: 'shared/connect' %> |
83 | | - |
84 | | - <%# <%= render 'shared/cards/card' do %> |
85 | | - <%# <h4 class="text-center">Popular</h4> %> |
86 | | - <%# <% end %> |
87 | | - |
88 | | - </div> |
89 | | - </aside> |
| 45 | + <%= render partial: 'shared/sidebar' %> |
90 | 46 | </div> |
91 | 47 | </div> |
92 | 48 | </div> |
|
0 commit comments