Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 18
feat: updates card design for kits and homepage#1291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
880358fe0043bc40f3868527fce94b8fbafea85eac07daddd8684a28e86d55421ea12284c5da837b70e21bc13e3cc1fe09ff1897bec35e9a3799deecb6d7dc841c880d7acef9599b3d7164955e1fa6fff79daedb77b79e1b7992f7442353f7caaed75abaa36a6cedb5File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,48 +1,17 @@ | ||
| --- | ||
| import { ArrowRightIcon } from '../icons/heroicons'; | ||
| import TechIcon from './TechIcon.astro'; | ||
| import { GitHubIcon } from '../icons/GitHubIcon.tsx'; | ||
| const { kit } = Astro.props; | ||
| const technologyStubsCount = kit.technologies.length < 3 ? (3 - kit.technologies.length) : 0; | ||
| --- | ||
| <div | ||
| class="bg dark:bg-gray-800 border border-gray-400 dark:border-gray-700 rounded-lg group hover:bg-brand-500 hover:dark:bg-brand-500 transition-colors overflow-hidden" | ||
| class="flex flex-col bg dark:bg-gray-800 border border-gray-400 dark:border-gray-700 rounded-lg group group-hover:bg-brand-500 group-hover:dark:bg-brand-500 transition-colors overflow-hidden px-4" | ||
| > | ||
| <div class="px-4 py-6 space-y-4"> | ||
| {kit.technologies.map(({ name, Icon, tags }) => ( | ||
| <div class="flex items-center space-x-6"> | ||
| <h2 class="text-lg font-bold md:ml-3 lg:mx-6 pt-6 h-16 t-dark dark:dark-t group-hover:text-white">{kit.name}</h2> | ||
| <div class="grid grid-cols-fill-20 gap-x-2 gap-y-3 justify-items-center justify-between items-end xl:grid-cols-4 md:grid-rows-4 lg:grid-rows-3 md:gap-y-1 lg:mx-6 pt-4 pb-6 md:space-y-4"> | ||
| {kit.technologies.map(({ Icon }) => ( | ||
| <div> | ||
| { Icon && <TechIcon {Icon} />} | ||
| <div> | ||
| <div class="heading-6 t-dark dark:dark-t-light group-hover:text-white">{name}</div> | ||
| <div class="t-light dark:dark-t text-sm group-hover:text-gray-100">{tags.join(', ')}</div> | ||
| </div> | ||
| </div> | ||
| ))} | ||
| {Array(technologyStubsCount).fill().map(() => ( | ||
| <div class="flex items-center space-x-6"> | ||
| <div class="h-20"></div> | ||
| </div> | ||
| ))} | ||
| </div> | ||
| <div | ||
| class="px-4 py-2.5 flex items-center border-t dark:border-gray-700 border-gray-200 dark:bg-gray-800 group-hover:bg-brand-600 group-hover:border-brand-600" | ||
| > | ||
| <a | ||
| href={`/kits/${kit.name}`} | ||
| class="inline-flex items-center justify-center t-light dark:dark-t group-hover:text-white font-medium" | ||
| > | ||
| View Kit <ArrowRightIcon className="inline w-4 h-4 ml-2" /> | ||
| </a> | ||
| <a | ||
| href={`https://github.com/thisdot/starter.dev/tree/main/starters/${kit.name}`} | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| class="inline-flex items-center ml-auto justify-center py-2.5 px-4 rounded-lg border border-gray-400 dark:border-white group-hover:border-white group-hover:bg-brand-500" | ||
| ><GitHubIcon | ||
| size={22} | ||
| className="t-light dark:text-gray-100 group-hover:text-white" | ||
| /></a | ||
| > | ||
| </div> | ||
| </div> | ||
| </div> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| import ShowcaseLinks from './ShowcaseLinks.astro'; | ||
| const { showcases, hasShowcase } = Astro.props; | ||
| --- | ||
| { | ||
| hasShowcase ? ( | ||
| <div id="showcase-section" class="pt-24 max-w-screen-2xl mx-auto scroll-mt-20"> | ||
| <h1 class="heading-1 font-medium mb-8"> | ||
| See kits in action via our showcases | ||
| </h1> | ||
| <div class="not-prose flex flex-col sm:col-span-1 md:flex-row flex-wrap gap-4"> | ||
| {showcases.map(({ name, repo, app, Icon }) => ( | ||
| <div class="border bg-gray-100 dark:bg-gray-800 group-hover:bg-blue-500 border-gray-400 dark:border-gray-700 rounded-xl items-center t-dark dark:dark-t-light p-4 "> | ||
| <div class="flex items-center pb-4"> | ||
| <div class="justify-center p-1.5 border dark:bg-gray-800 group-hover:bg-blue-500 border-gray-400 dark:border-gray-700 rounded-xl flex items-center font-medium justify-start min-w-[48px] min-h-[48px]"> | ||
| <Icon className="inline w-6 h-6 mb-px" /> | ||
| </div> | ||
| <div class="mx-4"> | ||
| <p class="text-base t-dark dark:dark-t-light group-hover:text-white leading-snug"> | ||
| {name} | ||
| </p> | ||
| </div> | ||
| </div> | ||
| <ShowcaseLinks app={app} repo={repo} /> | ||
| </div> | ||
| ))} | ||
| </div> | ||
| </div> | ||
| ) : null | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| import { ArrowRightIcon } from '../icons/heroicons'; | ||
| const { app, repo, name } = Astro.props; | ||
| let showcase; | ||
| if (app !== undefined) { | ||
lindakatcodes marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| showcase = app; | ||
| } else { | ||
| showcase = repo; | ||
| } | ||
| --- | ||
| <a | ||
| href={showcase} | ||
| class="link text-sm font-light dark:dark-link hover:underline" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| > | ||
| {name} | ||
| <ArrowRightIcon className="inline w-4 h-4 ml-2" /> | ||
| </a> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| import ShowcaseLink from './ShowcaseLink.astro'; | ||
| const { app, repo } = Astro.props; | ||
| --- | ||
| <div class="pb-3"> | ||
| <ShowcaseLink repo={repo} name="Repository" /> | ||
| </div> | ||
| { | ||
| app !== '' ? ( | ||
| <div class="pb-4"> | ||
| <ShowcaseLink repo={app} name="Live Application" /> | ||
| </div> | ||
| ) : null | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.