From acf667a5a02ac231d704f603623225467b13c678 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 21 Feb 2026 06:49:36 +0000 Subject: [PATCH] adding comments. hope this works --- .gitignore | 2 +- app/views/posts/show.html.erb | 3 + public/bow-bg.gif | Bin 0 -> 177 bytes public/comment-widget-pink.css | 183 +++++++++++++++++++++++++++++++++ 4 files changed, 187 insertions(+), 1 deletion(-) create mode 100644 public/bow-bg.gif create mode 100644 public/comment-widget-pink.css diff --git a/.gitignore b/.gitignore index c73cc8b..fdb6826 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ # Ignore all environment files. /.env* - +/public/comment-widget.js # Ignore all logfiles and tempfiles. /log/* /tmp/* diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index deefefe..590e4ff 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -8,6 +8,7 @@

<%= @post.text %> +

@@ -22,6 +23,8 @@ <%= @post.mood %>

<% end %>
+
+ diff --git a/public/bow-bg.gif b/public/bow-bg.gif new file mode 100644 index 0000000000000000000000000000000000000000..ec9880917c93d31c4e38ced16b09d98ea6a57883 GIT binary patch literal 177 zcmZ?wbhEHbRAx|OSj52ad()%aTYo>k`04k}_vdE({ypu+e;~N_QSm1W0|@AV2#{I^ z=CX=ichdDv-Bj3n{gJNefBqK&N1UwWJUE+vwKxdX|OYWP6lfLi5*U+ literal 0 HcmV?d00001 diff --git a/public/comment-widget-pink.css b/public/comment-widget-pink.css new file mode 100644 index 0000000..8415ffe --- /dev/null +++ b/public/comment-widget-pink.css @@ -0,0 +1,183 @@ +/* + Below you will be able to freely customize every aspect of the comment widget. + Most aspects of the widget are 100% able to be customized in CSS, but for strong structural changes, + you may have to edit the JavaScript file. + + These are all the classes and IDs at your disposal! + Classes have a c- at the start and IDs have a c_ + You don't need every single one for a good theme, but I tried to give as many options as possible! +*/ +/* + Containers: + #c_widget - The container
for the entire widget + #c_inputArea - The wrapper
around the form + #c_container - The wrapper
around all the comments + + The input form: + #c_form - The whole input
+ #c_widgetTitle - The

title at the top of the form + + .c-inputWrapper- All
wrappers for each label/input pair + .c-label - All