Here is the HTML block for the design
<div class="week-wrap">
<div class="week">
<h2>Week <span class="badge">1</span></h2>
</div>
<div class="content-wrap bx-shadow">
<div class="content-week">
<div class="week-header">Aliquam velit ex, tempor nec metus a, dignissim fringilla tellus.</div>
<p>Aliquam velit ex, tempor nec metus a, dignissim fringilla tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Pellentesque placerat, sem efficitur vestibulum molestie, purus nisi maximus elit, scelerisque finibus dolor turpis sed neque.</p>
<span class="unlock hidden">Unlock: 02/16/20</span></div>
<div class="lock"><span class="icon-arrow-right"> </span></div>
</div>
</div>
<div class="week-wrap">
<div class="week">
<h2>Week <span class="badge">2</span></h2>
</div>
<div class="content-wrap bx-shadow">
<div class="content-week">
<div class="week-header">Aliquam velit ex, tempor nec metus a, dignissim fringilla tellus.</div>
<p>Aliquam velit ex, tempor nec metus a, dignissim fringilla tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Pellentesque placerat, sem efficitur vestibulum molestie, purus nisi maximus elit, scelerisque finibus dolor turpis sed neque.</p>
<span class="unlock">Unlock: 02/16/20</span></div>
<div id="week_2" class="lock"><span class="icon-lock"> </span></div>
</div>
</div>
We have developed a custom CSS to design this.
These are going on the course homepage? Anywhere else?
[Right now we are using these in the course homepage. We might use these inside modules in future.]
What is the course home page set to? Syllabus, page?
[Course home page is set to a syllabus page.]
Are you using module prerequisites besides unlock_at?
[As I'm new to canvas, I'm not sure about module prerequisites, that's why thought of trying to achieve this using unlock_at. I thought it will be easy to fetch the module unlock_at and then compare the same with today's date nd change the icon accordingly.]
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.