Skip to content

Commit

Permalink
Merge pull request #60 from BRACKETS-by-TRIAD/feat/technologies-media…
Browse files Browse the repository at this point in the history
…-intro

✨ feat(introduction): create technologies intro images
  • Loading branch information
strstensky authored Dec 6, 2023
2 parents 8db6b64 + 7d19c26 commit 6b586fe
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 16 deletions.
12 changes: 9 additions & 3 deletions components/image/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
export default function Image({ src, alt, ...props }) {
export default function Image({ src, alt, width, height, short, ...props }) {
return (
<div className="shadow-sm shadow-slate-100 rounded-xl overflow-hidden border border-slate-200">
<img alt={alt} src={src} />
<div
className={`${
!short
? 'shadow-sm shadow-slate-100 rounded-xl overflow-hidden border border-slate-200'
: 'opacity-70'
}`}
>
<img alt={alt} src={src} width={width} height={height} />
</div>
);
}
28 changes: 15 additions & 13 deletions pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Image from "components/image";
import { Card, Cards } from "components/card";
import Image from 'components/image';
import { Card, Cards } from 'components/card';
import {
CommandLineIcon,
SparklesIcon,
PuzzlePieceIcon,
} from "@heroicons/react/24/outline";
} from '@heroicons/react/24/outline';

# Craftable PRO

Expand All @@ -17,19 +17,21 @@ If you have any questions, feel free to contact us on [Github](https://github.co
Dive into the documention using the following cards, or choose the topic of your choice from the sidebar.

<Cards>
<Card
icon={<CommandLineIcon />}
title="Getting Started"
href="/getting-started"
/>
<Card icon={<CommandLineIcon />} title="Getting Started" href="/getting-started" />
<Card icon={<SparklesIcon />} title="Frontend Assets" href="/frontend" />
<Card
icon={<PuzzlePieceIcon />}
title="Basic Features"
href="/basic-features"
/>
<Card icon={<PuzzlePieceIcon />} title="Basic Features" href="/basic-features" />
</Cards>

<br />
<br />
<div className="flex items-center justify-evenly gap-x-4">
<Image alt="typescript" src="/images/vuejs.svg" width={80} height={80} short />
<Image alt="typescript" src="/images/laravel.svg" width={75} height={75} short />
<Image alt="typescript" src="/images/typescript.svg" width={70} height={70} short />
<Image alt="typescript" src="/images/inertia.svg" width={85} height={85} short />
<Image alt="typescript" src="/images/tailwindcss.svg" width={80} height={80} short />
</div>

## Demo

If you want to get the hands-on experience, you can play around in our [demo](https://demo.craftable.pro/).
Expand Down
1 change: 1 addition & 0 deletions public/images/inertia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/laravel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/tailwindcss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/typescript.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/vuejs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6b586fe

Please sign in to comment.