fixed some html shit

This commit is contained in:
root 2026-01-12 17:12:27 +00:00
parent 2a75bf7464
commit 55b8fecddf
9 changed files with 29 additions and 21 deletions

View file

@ -130,15 +130,14 @@ margin: 0 auto;
} }
section.memberinner { section.memberinner {
border:1px solid black; border:1px solid black;
width: 250px; width: 243px;
height: auto; height: auto;
float: left; float: left;
padding: 4px; padding: 4px;
} }
body { body {
color: #000; color: #000;
font-family: 'Comic Sans MS'; font-family: Georgia, serif;
background: #ff597d; background: #ff597d;
background: linear-gradient(90deg, rgba(255, 89, 125, 1) 0%, rgba(97, 255, 136, 1) 50%, rgba(237, 83, 129, 1) 100%); 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; font-size:17px;

View file

@ -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_with model: [@member, @blog] do |form| %>
<%= form.label :title %><br /> <%= form.label :title %><br />
@ -18,6 +18,7 @@
<%= form.submit %> <%= form.submit %>
<% end %> <% end %>
</main> </section>

View file

@ -1,9 +1,14 @@
<section class="blog"> <section class="blog">
<%= link_to "Back", blogmap_index_path %>
<hr>
<% if current_user %> <% 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", <%= 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), member_blog_path(@blog.member, @blog),
method: :delete, data: {
data: { confirm: "Are you sure?" } %> turbo_method: :delete,
turbo_confirm: "Are you sure?"
} %>
<% end %> <% end %>
</small> </small>
@ -14,25 +19,27 @@
<%= @blog.description %> <%= @blog.description %>
<hr> <hr>
<% @posts.each do |post| %> <% @posts.each do |post| %>
<section class="posts"><%= post.created_at %> | <section class="posts"><%= post.created_at %>
Title: <%= post.post_title %><br><br> <h2> <%= post.post_title %> | <%= link_to 'Read', member_blog_post_path(@member, @blog, post) %> </h2>
<% if post.icon_image.attached? %> <center><% if post.icon_image.attached? %>
<%= image_tag post.icon_image, width: "100", height: "100" %> <%= image_tag post.icon_image, width: "100", height: "100" %>
<% else %> <% else %>
<p>No avatar image available.</p> <p>No image available.</p></center>
<% end %><br> <% end %><br>
Content: Content:
<%= truncate(post.text.to_plain_text, length: 400) %> <%= truncate(post.text.to_plain_text, length: 100) %>
<br> <br>
<%= link_to 'Show', member_blog_post_path(@member, @blog, post) %>
<% if current_user %> <% if current_user %>
<%= link_to 'Edit', edit_member_blog_post_path(@member, @blog, post) %> <%= link_to 'Edit', edit_member_blog_post_path(@member, @blog, post) %>
<%= link_to 'Destroy', member_blog_post_path(@member, @blog, post), data: { <%= link_to 'Destroy', member_blog_post_path(@member, @blog, post), data: {
turbo_method: :delete turbo_method: :delete,
turbo_confirm: "Are you sure?"
} %> } %>
<% end %> <% end %>
</section> </section>
<br>
<% end %> <% end %>
</section> </section>

View file

@ -28,7 +28,7 @@
<%= javascript_include_tag "application", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
</head> </head>
<body> <body data-turbo="false">
<main><br> <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> <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>

View file

@ -71,5 +71,6 @@
<h3><i>about me...</i></h3> <h3><i>about me...</i></h3>
<%= @member.bio %> <%= @member.bio %>
</section> </section>
<br><br>
</section> </section>

View file

@ -11,9 +11,9 @@
<p>No avatar image available.</p> <p>No avatar image available.</p>
<% end %><br> <% end %><br>
Content: Content:
<%= truncate(post.text.to_plain_text, length: 400) %> <%= truncate(post.text.to_plain_text, length: 100) %>
<br> <br>
<%= link_to 'Show', member_blog_post_path(@member, @blog, post) %>
<% if current_user %> <% if current_user %>
<%= link_to 'Edit', edit_member_blog_post_path(@member, @blog, post) %> <%= link_to 'Edit', edit_member_blog_post_path(@member, @blog, post) %>

View file

@ -1,5 +1,5 @@
<section class="main"> <section class="articlenew">
<h2>New Post</h2> <h2>New Post</h2>
<%= form_with model: [@member, @blog, @post] do |f| %> <%= form_with model: [@member, @blog, @post] do |f| %>

View file

@ -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? %> <%= image_tag @post.icon_image if @post.icon_image.attached? %>
<section class="inner"><p> <section class="inner"><p>
<strong>Title:</strong> <strong>Title:</strong>

View file

@ -1,10 +1,10 @@
<section class="latestpost"> <section class="latestpost">
<h3>Latest Post....</h3> <h3>Latest....</h3>
<% if @latest_post %> <% if @latest_post %>
<h2><%= @latest_post.post_title %></h2> <%=@latest_post.created_at %> <h2><%= @latest_post.post_title %></h2> <%=@latest_post.created_at %>
<p><%= truncate(@latest_post.text.to_plain_text, length: 200) %></p> <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) %> <%= link_to 'Read More', member_blog_post_path(@latest_post.blog.member, @latest_post.blog, @latest_post) %>
<% else %> <% else %>
<p>No posts yet.</p> <p>No posts yet.</p>