Skip to content

Commit

Permalink
styñes for articles
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Oct 13, 2023
1 parent 9224809 commit 444b631
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
15 changes: 15 additions & 0 deletions app/assets/stylesheets/application.tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@
margin-bottom: 0px;
}

.post-wrapper .graf--layoutInsetLeft, .post-wrapper .graf--layoutOutsetLeft {
float: left;
margin-right: 30px;
padding-top: 10px;
padding-bottom: 10px;
}

.post-wrapper .graf--layoutOutsetLeft {
width: 75%;
}

.post-wrapper .graf--layoutOutsetLeft {
margin-left: -160px;
}

.aaa {
@apply bg-white;
}
Expand Down
24 changes: 15 additions & 9 deletions app/views/articles/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
</div>
</div>
<div class="mt-1">
<p class="text-sm text-brand-300"> Comienza rellenando la siguiente información para crear tu nuevo artículo. </p>
<p class="text-sm text-brand-300">
Comienza rellenando la siguiente información para crear tu nuevo artículo.
</p>
</div>
</div>

Expand All @@ -50,24 +52,28 @@
<%= form.text_area :excerpt %>
</div>
<fieldset>
<legend class="text-sm font-medium text-gray-900 dark:text-gray-100"> Privacy </legend>

<div class="mt-2 space-y-5">
<%= form.label :privacy%>
<div class="flex-col space-y-3">

<div class="flex space-x-2 flex-col">
<%= form.label "Publicado en la plataforma" %>
<%= form.select :state, ["published", "draft"],
label: "Private"
%>
<p class="text-gray-500 text-xs py-2">
El artículo será publicado en la lista de artículos.
</p>
</div>

<div class="flex space-x-2 items-center">
<%= form.radio_button :private, false, label: "Acceso público", hint: "Todo el mundo con el enlace verá este artículo." %>
</div>
<div class="flex space-x-2 items-center">
<%= form.radio_button :private, true, label: "Miembros privados al artículo", hint: "Sólo los miembros de este artículo podrían acceder." %>
</div>

<div class="flex space-x-2 items-center">
<%= form.check_box :state, label: "Private",
checked_value: 'published',
unchecked_value: 'draft',
label: "Publicado en la plataforma",
hint: "El artículo será publicado en la lista de artículos." %>
</div>
</div>
</div>
</fieldset>
Expand Down

0 comments on commit 444b631

Please sign in to comment.