adding teacher profiles
This commit is contained in:
16
app/views/teachers/index.html.haml
Normal file
16
app/views/teachers/index.html.haml
Normal file
@ -0,0 +1,16 @@
|
||||
= paginate @teachers
|
||||
.flex.justify-center
|
||||
|
||||
.grid.grid-cols-4
|
||||
- @teachers.each do |teacher|
|
||||
.fex.flex-col.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm.m-10
|
||||
=link_to teacher do
|
||||
= image_for( teacher , class: "h-60 w-full object-cover")
|
||||
%h3.pt-5.text-2xl.bg-gray-100.text-black.font-bold.text-center
|
||||
= teacher.name
|
||||
.p-2.text-xs.bg-gray-50.text-black.font-bold.text-center
|
||||
= stayed teacher
|
||||
%div.h-full
|
||||
.p-5.text-center
|
||||
.m-2.text-sm.leading-relaxed.line-clamp-3{ prose_classes }
|
||||
= shorten markdown(teacher.bio)
|
Reference in New Issue
Block a user