Skip to content

Commit a21597e

Browse files
authored
Merge pull request #1794 from OWASP/layout-improvements
Improve the layout to make it easier to find the start a game button
2 parents de2be31 + 7f520f3 commit a21597e

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

copi.owasp.org/lib/copi_web/controllers/page_html/home.html.heex

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@
1717
<div class="absolute left-[calc(50%-4rem)] top-10 -z-10 transform-gpu blur-3xl sm:left-[calc(50%-18rem)] lg:left-48 lg:top-[calc(50%-30rem)] xl:left-[calc(50%-24rem)]" aria-hidden="true">
1818
<div class="aspect-[1108/632] w-[69.25rem] bg-gradient-to-r from-[#80caff] to-[#4f46e5] opacity-20" style="clip-path: polygon(73.6% 51.7%, 91.7% 11.8%, 100% 46.4%, 97.4% 82.2%, 92.5% 84.9%, 75.7% 64%, 55.3% 47.5%, 46.5% 49.4%, 45% 62.9%, 50.3% 87.2%, 21.3% 64.1%, 0.1% 100%, 5.4% 51.1%, 21.4% 63.9%, 58.9% 0.2%, 73.6% 51.7%)"></div>
1919
</div>
20-
<div class="mx-auto max-w-7xl px-6 pb-24 pt-10 sm:pb-40 lg:flex lg:px-8 lg:pt-40">
21-
<div class="mx-auto max-w-2xl flex-shrink-0 lg:mx-0 lg:max-w-xl lg:pt-8">
20+
21+
<div class="mx-auto max-w-7xl pb-24 pt-10 sm:pb-40 lg:flex">
22+
23+
24+
<div class="mx-auto max-w-2xl flex-shrink-0 lg:mx-0 lg:max-w-xl lg:pt-2">
2225
<a href="https://cornucopia.owasp.org" target="_blank" title="The OWASP Cornucopia home page" rel="external"><img class="h-40" src="/images/cornucopia_logo_white.svg" alt="OWASP Logo"></a>
23-
<div class="mt-24 sm:mt-32 lg:mt-16">
24-
<a href="#" class="inline-flex space-x-6">
26+
<div>
27+
<a href="http://cornucopia.owasp.org/news" class="inline-flex space-x-6">
2528
<span class="rounded-full bg-indigo-500/10 px-3 py-1 text-sm font-semibold leading-6 text-indigo-400 ring-1 ring-inset ring-indigo-500/20">Latest updates</span>
2629
<span class="inline-flex items-center space-x-2 text-sm font-medium leading-6 text-gray-300">
27-
<span>Cornucopia Mobile deck now available</span>
30+
<span>Cornucopia Website App Edition v2.2 available</span>
2831
<svg class="h-5 w-5 text-gray-500" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
2932
<path fill-rule="evenodd" d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule="evenodd" />
3033
</svg>
@@ -37,8 +40,9 @@
3740
<p class="mt-6 text-lg leading-8 text-gray-300">Now you can also secure your AI models by playing Elevation of MLSec or play OWASP Cumulus to secure your Cloud.</p>
3841
<div class="mt-10 flex items-center gap-x-6">
3942
<a href="/games/new" class="rounded-md bg-indigo-500 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-400">Start a game</a>
40-
<a href="/games/new#howtoplay" class="text-sm font-semibold leading-6 text-white">How do we play? <span aria-hidden="true"></span></a>
43+
<a href="https://cornucopia.owasp.org/how-to-play" class="text-sm font-semibold leading-6 text-white">How do we play? <span aria-hidden="true"></span></a>
4144
</div>
45+
4246
</div>
4347
<div class="mx-auto mt-16 flex max-w-2xl sm:mt-24 lg:ml-10 lg:mr-0 lg:mt-0 lg:max-w-none lg:flex-none xl:ml-32">
4448
<div class="max-w-3xl flex-none sm:max-w-5xl lg:max-w-none">
325 KB
Loading

0 commit comments

Comments
 (0)