-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from rtCamp/feature/adding-grid-layout
Adding grid layout to the home page
- Loading branch information
Showing
2 changed files
with
44 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
<%- include(commonPath + '/header.ejs') %> | ||
|
||
<% const scenarioButton = (title, link) => { %> | ||
<% const renderCard = (title, emoji, link) => { %> | ||
<a href="<%= link %>" | ||
class="block p-4 bg-white shadow rounded hover:bg-blue-500 hover:text-white transition duration-300"> | ||
class="flex flex-col border border-blue justify-center items-center font-bold p-4 bg-white drop-shadow-[8px_8px_0_rgba(32,33,37,.1)] rounded-md hover:bg-blue-500 hover:text-white aspect-square transition duration-300 text-center"> | ||
<span class="block text-5xl mb-4"><%= emoji %></span> | ||
<%= title %> | ||
</a> | ||
<% } %> | ||
|
||
<div class="container-lg mx-auto py-8"> | ||
<section class="text-center mb-4"> | ||
<h2 class="text-3xl font-bold mb-4 text-center">Scenarios</h2> | ||
<div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-8"> | ||
<%= scenarioButton('π Analytics Tracking', '/analytics') %> | ||
<%= scenarioButton('π½οΈ Embedded Content', '/embedded-video') %> | ||
<%= scenarioButton('π E-Commerce', '/ecommerce') %> | ||
<%= scenarioButton('π Single Sign-On', '/single-sign-on') %> | ||
<%= scenarioButton('π³ Payment Gateway', '/payment-gateway') %> | ||
<%= scenarioButton('πͺ CHIPS', '/chips') %> | ||
</div> | ||
</section> | ||
<div class="grid grid-cols-2 md:grid-cols-4 gap-6 mb-8 mt-8"> | ||
<%= renderCard('Analytics Tracking', 'π', '/analytics') %> | ||
<%= renderCard('Embedded Content', 'π½οΈ', '/embedded-video') %> | ||
<%= renderCard('E-Commerce', 'π', '/ecommerce') %> | ||
<%= renderCard('Single Sign-On', 'π', '/single-sign-on') %> | ||
<%= renderCard('Payment Gateway', 'π³', '/payment-gateway') %> | ||
<%= renderCard('CHIPS', 'πͺ', '/chips') %> | ||
</div> | ||
</div> | ||
|
||
<%- include(commonPath + '/footer.ejs') %> |