Skip to content

Commit

Permalink
Merge pull request #19 from rtCamp/feature/merging-scenarios-and-api-…
Browse files Browse the repository at this point in the history
…demos

Merging Scenarios and APIs demos on the home page
  • Loading branch information
fellyph committed Jan 23, 2024
2 parents 6011d98 + 008de2a commit d6cbb10
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 27 deletions.
20 changes: 20 additions & 0 deletions public/assets/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,11 @@ video {
border-width: 8px;
}

.bg-blue-100 {
--tw-bg-opacity: 1;
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
}

.bg-blue-500 {
--tw-bg-opacity: 1;
background-color: rgb(59 130 246 / var(--tw-bg-opacity));
Expand All @@ -767,10 +772,25 @@ video {
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
}

.bg-green-100 {
--tw-bg-opacity: 1;
background-color: rgb(220 252 231 / var(--tw-bg-opacity));
}

.bg-inherit {
background-color: inherit;
}

.bg-red-100 {
--tw-bg-opacity: 1;
background-color: rgb(254 226 226 / var(--tw-bg-opacity));
}

.bg-sky-50 {
--tw-bg-opacity: 1;
background-color: rgb(240 249 255 / var(--tw-bg-opacity));
}

.bg-white {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
Expand Down
40 changes: 13 additions & 27 deletions src/common/index.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<%- include(commonPath + '/header.ejs') %>

<% const scenarioButton = (title, link) => { %>
<a href="<%= link %>"
class="block p-4 bg-white shadow rounded hover:bg-blue-500 hover:text-white transition duration-300">
<%= title %>
</a>
<% } %>

<div class="container-lg mx-auto py-8">
<div class="flex justify-center">
<img src="/assets/imgs/PS_Logo.svg" class="mx-auto w-24 h-24 mb-4" alt="Logo">
Expand All @@ -8,35 +15,14 @@
<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">
<a href="/analytics"
class="block p-4 bg-white shadow rounded hover:bg-blue-500 hover:text-white transition duration-300">
🔎 Analytics Tracking
</a>
<a href="/embedded-video"
class="block p-4 bg-white shadow rounded hover:bg-blue-500 hover:text-white transition duration-300">
📽️ Embedded Content
</a>
<a href="/ecommerce"
class="block p-4 bg-white shadow rounded hover:bg-blue-500 hover:text-white transition duration-300">
🛒 E-Commerce
</a>
<a href="/single-sign-on"
class="block p-4 bg-white shadow rounded hover:bg-blue-500 hover:text-white transition duration-300">
🔐 Single Sign-On
</a>
<a href="/payment-gateway"
class="block p-4 bg-white shadow rounded hover:bg-blue-500 hover:text-white transition duration-300">
💳 Payment Gateway
</a>
<%= 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>
<h2 class="text-3xl font-bold mb-4 text-center mt-4">API Demos</h2>
<div class="grid grid-cols-1 md:grid-cols-4 gap-4">
<a href="/chips"
class="block p-4 bg-white shadow rounded hover:bg-blue-500 hover:text-white transition duration-300">
🍪 CHIPS
</a>
</div>
</div>

<%- include(commonPath + '/footer.ejs') %>

0 comments on commit d6cbb10

Please sign in to comment.