I tried to decorate the simple calendar a little

Introduction

I will introduce the simple_calendar that I introduced yesterday, as I added some decorations.

Easy calendar

I want to change the way it is displayed


<%= month_calendar do |date| %>
  <%= date.strftime("%d") %>
<% end %>

You can change the display with strftim ("% d "). By the way, with this description, you can display only the date.

I want to color the day of the week

calendar.css


.wday-0 {
  color: red;
}
.wday-6 {
  color: blue;
}

Change before

After change

I think it looks a little like a calendar ...

Recommended Posts

I tried to decorate the simple calendar a little
java I tried to break a simple block
[Small story] I tried to make the java ArrayList a little more convenient
I tried a little digdag docker.run_options
I tried to explain the method
I tried to build the environment little by little using docker
I tried a calendar problem in Ruby
I tried to create a simple map app in Android Studio
I tried to summarize the methods used
I tried to illuminate the Christmas tree in a life game
I tried to implement the Iterator pattern
I tried playing with BottomNavigationView a little ①
I tried to build a simple application using Dockder + Rails Scaffold
I tried to summarize the Stream API
[Java] I tried to make a maze by the digging method ♪
I tried to display the calendar on the Eclipse console using Java.
I tried to make a simple face recognition Android application using OpenCV
[Rails] I tried to raise the Rails version from 5.0 to 5.2
I tried to organize the session in Rails
I tried to develop a man-hour management tool
I tried to develop a DUO3.0 study website.
I tried to create a LINE clone app
I tried to set tomcat to run the Servlet.
I tried to develop a website to record expenses.
I tried to implement a server using Netty
I tried to break a block with java (1)
What I tried when I wanted to get all the fields of a bean
I tried to make a simple game with Javafx ① "Let's find happiness game" (unfinished)
I was a little addicted to the S3 Checksum comparison, so I made a note.
[Beginner] I tried to decorate the bar after displaying the details of the hamburger menu
I tried to organize the cases used in programming
I tried to develop a ramen shop sharing website.
I tried to summarize the state transition of docker
05. I tried to stub the source of Spring Boot
I want to use a little icon in Rails
I tried to reduce the capacity of Spring Boot
I tried to create a Clova skill in Java
I tried to make a login function in Java
I tried to implement the Euclidean algorithm in Java
I want to add a delete function to the comment function
I tried to make a simple game with Javafx ① "Let's find happiness game" (unfinished version ②)
I tried to create a log reproduction script at the time of apt install
I tried to operate home appliances by holding a smartphone over the NFC tag
I tried the Docker tutorial!
I tried the VueJS tutorial!
I tried the FizzBuzz problem
I tried to verify yum-cron
I tried to implement the like function by asynchronous communication
I tried to create a java8 development environment with Chocolatey
I tried adding a separator line to TabLayout on Android
I tried to modernize a Java EE application with OpenShift.
I tried to increase the processing speed with spiritual engineering
[JDBC] I tried to access the SQLite3 database from Java.
I tried to summarize the basics of kotlin and java
[Rails] I tried to create a mini app with FullCalendar
How to create a form to select a date from the calendar
[Swift] I tried to implement the function of the vending machine
I want to call a method and count the number
I tried JAX-RS and made a note of the procedure
I tried using Hotwire to make Rails 6.1 scaffold a SPA
I want to create a form to select the [Rails] category