|
42 | 42 | <% end %> |
43 | 43 | </div> |
44 | 44 |
|
45 | | -<div class="lg:hidden mt-4" data-controller="l-ui--modal"> |
46 | | - <button type="button" class="l-ui-button l-ui-button--outline l-ui-button--full" data-action="l-ui--modal#open"> |
| 45 | +<%= l_ui_modal(title: "Socials", id: "modal-socials", container: { class: "lg:hidden mt-4" }) do |m| %> |
| 46 | + <% m.trigger(class: "l-ui-button l-ui-button--outline l-ui-button--full") do %> |
47 | 47 | <div class="flex items-center justify-center gap-2"> |
48 | 48 | <%= image_tag "layered_ui/icon_globe.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
49 | 49 | <span>Socials</span> |
50 | 50 | </div> |
51 | | - </button> |
52 | | - <dialog class="l-ui-modal" data-l-ui--modal-target="dialog" data-action="click->l-ui--modal#closeOnBackdrop" aria-labelledby="modal-socials-heading"> |
53 | | - <div class="l-ui-modal__header"> |
54 | | - <h3 id="modal-socials-heading">Socials</h3> |
55 | | - <button class="l-ui-button l-ui-button--icon" data-action="l-ui--modal#close" aria-label="Close"> |
56 | | - <%= image_tag "layered_ui/icon_close.svg", alt: "", class: "l-ui-icon l-ui-icon--sm", aria: { hidden: true } %> |
57 | | - </button> |
58 | | - </div> |
59 | | - <div class="l-ui-modal__body"> |
60 | | - <div class="flex flex-col gap-4"> |
61 | | - <%= link_to "https://www.layered.ai/", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
62 | | - <div class="flex items-center gap-2"> |
63 | | - <%= image_tag "layered_ui/icon_globe.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
64 | | - <span>Website</span> |
65 | | - </div> |
66 | | - <% end %> |
| 51 | + <% end %> |
| 52 | + <div class="flex flex-col gap-4"> |
| 53 | + <%= link_to "https://www.layered.ai/", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
| 54 | + <div class="flex items-center gap-2"> |
| 55 | + <%= image_tag "layered_ui/icon_globe.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
| 56 | + <span>Website</span> |
| 57 | + </div> |
| 58 | + <% end %> |
67 | 59 |
|
68 | | - <%= link_to "https://github.com/layered-ai-public/layered-ui-rails", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
69 | | - <div class="flex items-center gap-2"> |
70 | | - <%= image_tag "layered_ui/icon_github.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
71 | | - <span>GitHub</span> |
72 | | - </div> |
73 | | - <% end %> |
| 60 | + <%= link_to "https://github.com/layered-ai-public/layered-ui-rails", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
| 61 | + <div class="flex items-center gap-2"> |
| 62 | + <%= image_tag "layered_ui/icon_github.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
| 63 | + <span>GitHub</span> |
| 64 | + </div> |
| 65 | + <% end %> |
74 | 66 |
|
75 | | - <%= link_to "https://www.youtube.com/@UseLayeredAi", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
76 | | - <div class="flex items-center gap-2"> |
77 | | - <%= image_tag "layered_ui/icon_youtube.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
78 | | - <span>YouTube</span> |
79 | | - </div> |
80 | | - <% end %> |
| 67 | + <%= link_to "https://www.youtube.com/@UseLayeredAi", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
| 68 | + <div class="flex items-center gap-2"> |
| 69 | + <%= image_tag "layered_ui/icon_youtube.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
| 70 | + <span>YouTube</span> |
| 71 | + </div> |
| 72 | + <% end %> |
81 | 73 |
|
82 | | - <%= link_to "https://discord.gg/aCGqz9Bx", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
83 | | - <div class="flex items-center gap-2"> |
84 | | - <%= image_tag "layered_ui/icon_discord.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
85 | | - <span>Discord</span> |
86 | | - </div> |
87 | | - <% end %> |
| 74 | + <%= link_to "https://discord.gg/aCGqz9Bx", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
| 75 | + <div class="flex items-center gap-2"> |
| 76 | + <%= image_tag "layered_ui/icon_discord.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
| 77 | + <span>Discord</span> |
| 78 | + </div> |
| 79 | + <% end %> |
88 | 80 |
|
89 | | - <%= link_to "https://x.com/UseLayeredAi", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
90 | | - <div class="flex items-center gap-2"> |
91 | | - <%= image_tag "layered_ui/icon_x.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
92 | | - <span>X</span> |
93 | | - </div> |
94 | | - <% end %> |
| 81 | + <%= link_to "https://x.com/UseLayeredAi", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
| 82 | + <div class="flex items-center gap-2"> |
| 83 | + <%= image_tag "layered_ui/icon_x.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
| 84 | + <span>X</span> |
| 85 | + </div> |
| 86 | + <% end %> |
95 | 87 |
|
96 | | - <%= link_to "https://www.linkedin.com/company/uselayeredai/", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
97 | | - <div class="flex items-center gap-2"> |
98 | | - <%= image_tag "layered_ui/icon_linkedin.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
99 | | - <span>LinkedIn</span> |
100 | | - </div> |
101 | | - <% end %> |
| 88 | + <%= link_to "https://www.linkedin.com/company/uselayeredai/", target: "_blank", rel: "noopener noreferrer", class: "l-ui-button l-ui-button--outline" do %> |
| 89 | + <div class="flex items-center gap-2"> |
| 90 | + <%= image_tag "layered_ui/icon_linkedin.svg", class: "l-ui-icon l-ui-icon--xs", alt: "", aria: { hidden: true } %> |
| 91 | + <span>LinkedIn</span> |
102 | 92 | </div> |
103 | | - </div> |
104 | | - </dialog> |
105 | | -</div> |
| 93 | + <% end %> |
| 94 | + </div> |
| 95 | +<% end %> |
0 commit comments