fixed some html shit
This commit is contained in:
parent
2a75bf7464
commit
55b8fecddf
9 changed files with 29 additions and 21 deletions
|
|
@ -130,15 +130,14 @@ margin: 0 auto;
|
|||
}
|
||||
section.memberinner {
|
||||
border:1px solid black;
|
||||
width: 250px;
|
||||
width: 243px;
|
||||
height: auto;
|
||||
float: left;
|
||||
padding: 4px;
|
||||
}
|
||||
body {
|
||||
color: #000;
|
||||
font-family: 'Comic Sans MS';
|
||||
|
||||
font-family: Georgia, serif;
|
||||
background: #ff597d;
|
||||
background: linear-gradient(90deg, rgba(255, 89, 125, 1) 0%, rgba(97, 255, 136, 1) 50%, rgba(237, 83, 129, 1) 100%);
|
||||
font-size:17px;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<main><h3>Create your blog!</h3>
|
||||
<section class="articlenew"><h3>Create your blog!</h3>
|
||||
|
||||
<%= form_with model: [@member, @blog] do |form| %>
|
||||
<%= form.label :title %><br />
|
||||
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
<%= form.submit %>
|
||||
<% end %>
|
||||
</main>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,14 @@
|
|||
<section class="blog">
|
||||
|
||||
<%= link_to "Back", blogmap_index_path %>
|
||||
<hr>
|
||||
<% if current_user %>
|
||||
<%= link_to "Edit", edit_member_blog_path %> | <%= link_to "New Post", new_member_blog_post_path(@blog.member, @blog) %> <br><br><br><small><%= button_to "Destroy",
|
||||
member_blog_path(@blog.member, @blog),
|
||||
method: :delete,
|
||||
data: { confirm: "Are you sure?" } %>
|
||||
data: {
|
||||
turbo_method: :delete,
|
||||
turbo_confirm: "Are you sure?"
|
||||
} %>
|
||||
<% end %>
|
||||
</small>
|
||||
|
||||
|
|
@ -14,25 +19,27 @@
|
|||
<%= @blog.description %>
|
||||
<hr>
|
||||
<% @posts.each do |post| %>
|
||||
<section class="posts"><%= post.created_at %> |
|
||||
Title: <%= post.post_title %><br><br>
|
||||
<% if post.icon_image.attached? %>
|
||||
<section class="posts"><%= post.created_at %>
|
||||
<h2> <%= post.post_title %> | <%= link_to 'Read', member_blog_post_path(@member, @blog, post) %> </h2>
|
||||
<center><% if post.icon_image.attached? %>
|
||||
<%= image_tag post.icon_image, width: "100", height: "100" %>
|
||||
<% else %>
|
||||
<p>No avatar image available.</p>
|
||||
<p>No image available.</p></center>
|
||||
<% end %><br>
|
||||
Content:
|
||||
<%= truncate(post.text.to_plain_text, length: 400) %>
|
||||
<%= truncate(post.text.to_plain_text, length: 100) %>
|
||||
<br>
|
||||
<%= link_to 'Show', member_blog_post_path(@member, @blog, post) %>
|
||||
|
||||
<% if current_user %>
|
||||
|
||||
<%= link_to 'Edit', edit_member_blog_post_path(@member, @blog, post) %>
|
||||
<%= link_to 'Destroy', member_blog_post_path(@member, @blog, post), data: {
|
||||
turbo_method: :delete
|
||||
turbo_method: :delete,
|
||||
turbo_confirm: "Are you sure?"
|
||||
} %>
|
||||
<% end %>
|
||||
</section>
|
||||
<br>
|
||||
<% end %>
|
||||
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body data-turbo="false">
|
||||
|
||||
<main><br>
|
||||
<div class="headerall"><h3 class="float"><img src="/kissingcomputer.png" width="80px" alt="An emoji of a computer with kiss marks."> K I S S I N G C O M P U T E R</h3><div class="header"> <a href="/">Home</a> | <a href="/members/1">About Me</a> | <a href="/blogmap">Pages</a> | <a href="https://lesbian.alien.dentist/@feed.atom"><img src="https://file.garden/aJzQmzrHVB4BLKwu/46.png" alt="pink rss feed logo"></a></div></div>
|
||||
|
|
|
|||
|
|
@ -71,5 +71,6 @@
|
|||
<h3><i>about me...</i></h3>
|
||||
<%= @member.bio %>
|
||||
</section>
|
||||
<br><br>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@
|
|||
<p>No avatar image available.</p>
|
||||
<% end %><br>
|
||||
Content:
|
||||
<%= truncate(post.text.to_plain_text, length: 400) %>
|
||||
<%= truncate(post.text.to_plain_text, length: 100) %>
|
||||
<br>
|
||||
<%= link_to 'Show', member_blog_post_path(@member, @blog, post) %>
|
||||
|
||||
<% if current_user %>
|
||||
|
||||
<%= link_to 'Edit', edit_member_blog_post_path(@member, @blog, post) %>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
<section class="main">
|
||||
<section class="articlenew">
|
||||
<h2>New Post</h2>
|
||||
|
||||
<%= form_with model: [@member, @blog, @post] do |f| %>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<a href="/members/1">Back</a><br>
|
||||
<a href="/blogmap">Back</a><br>
|
||||
<%= image_tag @post.icon_image if @post.icon_image.attached? %>
|
||||
<section class="inner"><p>
|
||||
<strong>Title:</strong>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
<section class="latestpost">
|
||||
<h3>Latest Post....</h3>
|
||||
<h3>Latest....</h3>
|
||||
<% if @latest_post %>
|
||||
<h2><%= @latest_post.post_title %></h2> <%=@latest_post.created_at %>
|
||||
<p><%= truncate(@latest_post.text.to_plain_text, length: 200) %></p>
|
||||
<p>By: <%= @latest_post.blog.member.name %> | Blog: <%= @latest_post.blog.title %></p>
|
||||
<p>By: <%= @latest_post.blog.member.name %> | Category: <%= @latest_post.blog.title %></p>
|
||||
<%= link_to 'Read More', member_blog_post_path(@latest_post.blog.member, @latest_post.blog, @latest_post) %>
|
||||
<% else %>
|
||||
<p>No posts yet.</p>
|
||||
|
|
|
|||
Loading…
Reference in a new issue