Skip to content

Commit

Permalink
Merge pull request #540 from creativetimofficial/feat/new-updates
Browse files Browse the repository at this point in the history
Feat/new updates
  • Loading branch information
sajadevo authored Dec 20, 2023
2 parents 02c5e6b + a7f3d54 commit 1f5bf29
Show file tree
Hide file tree
Showing 141 changed files with 12,508 additions and 951 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<img src="https://img.shields.io/npm/dt/@material-tailwind/react.svg" alt="Total Downloads">
</a>
<a href="https://github.com/creativetimofficial/material-tailwind/releases">
<img src="https://img.shields.io/badge/version-2.1.7-blue.svg" alt="Version" />
<img src="https://img.shields.io/badge/version-2.1.8-blue.svg" alt="Version" />
</a>
</p>
<p align="center">
Expand All @@ -22,7 +22,7 @@
<img src="https://img.shields.io/npm/dt/@material-tailwind/html.svg" alt="Total Downloads">
</a>
<a href="https://github.com/creativetimofficial/material-tailwind/releases">
<img src="https://img.shields.io/badge/version-2.1.1-blue.svg" alt="Version" />
<img src="https://img.shields.io/badge/version-2.1.2-blue.svg" alt="Version" />
</a>
</p>

Expand Down
69 changes: 69 additions & 0 deletions docs-content/html/gallery/default-gallery.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
export function DefaultGallery() {
return (
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3">
<div>
<img
className="h-40 w-full max-w-full rounded-lg object-cover object-center"
src="https://images.unsplash.com/photo-1499696010180-025ef6e1a8f9?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=1470&amp;q=80"
alt="gallery-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg object-cover object-center"
src="https://images.unsplash.com/photo-1432462770865-65b70566d673?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=1950&amp;q=80"
alt="gallery-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg object-cover object-center"
src="https://images.unsplash.com/photo-1497436072909-60f360e1d4b1?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2560&amp;q=80"
alt="gallery-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg object-cover object-center"
src="https://images.unsplash.com/photo-1493246507139-91e8fad9978e?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2940&amp;q=80"
alt="gallery-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg object-cover object-center"
src="https://images.unsplash.com/photo-1518623489648-a173ef7824f3?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2762&amp;q=80"
alt="gallery-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg object-cover object-center"
src="https://images.unsplash.com/photo-1682407186023-12c70a4a35e0?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2832&amp;q=80"
alt="gallery-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg object-cover object-center"
src="https://demos.creative-tim.com/material-kit-pro/assets/img/examples/blog5.jpg"
alt="gallery-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg object-cover object-center"
src="https://material-taillwind-pro-ct-tailwind-team.vercel.app/img/content2.jpg"
alt="gallery-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg object-cover object-center"
src="https://images.unsplash.com/photo-1620064916958-605375619af8?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=1493&amp;q=80"
alt="gallery-photo"
/>
</div>
</div>
);
}
51 changes: 51 additions & 0 deletions docs-content/html/gallery/featured-image-gallery.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import React from "react";
export function FeaturedImageGallery() {
return (
<div className="grid gap-4">
<div>
<img
className="h-auto w-full max-w-full rounded-lg object-cover object-center md:h-[480px]"
src="https://images.unsplash.com/photo-1499696010180-025ef6e1a8f9?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=1470&amp;q=80"
alt=""
/>
</div>
<div className="grid grid-cols-5 gap-4">
<div>
<img
src="https://images.unsplash.com/photo-1499696010180-025ef6e1a8f9?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=1470&amp;q=80"
className="h-20 max-w-full cursor-pointer rounded-lg object-cover object-center"
alt="gallery-image"
/>
</div>
<div>
<img
src="https://images.unsplash.com/photo-1432462770865-65b70566d673?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=1950&amp;q=80"
className="h-20 max-w-full cursor-pointer rounded-lg object-cover object-center"
alt="gallery-image"
/>
</div>
<div>
<img
src="https://images.unsplash.com/photo-1493246507139-91e8fad9978e?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2940&amp;q=80"
className="h-20 max-w-full cursor-pointer rounded-lg object-cover object-center"
alt="gallery-image"
/>
</div>
<div>
<img
src="https://images.unsplash.com/photo-1518623489648-a173ef7824f3?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2762&amp;q=80"
className="h-20 max-w-full cursor-pointer rounded-lg object-cover object-center"
alt="gallery-image"
/>
</div>
<div>
<img
src="https://images.unsplash.com/photo-1682407186023-12c70a4a35e0?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2832&amp;q=80"
className="h-20 max-w-full cursor-pointer rounded-lg object-cover object-center"
alt="gallery-image"
/>
</div>
</div>
</div>
);
}
200 changes: 200 additions & 0 deletions docs-content/html/gallery/gallery-with-tab.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
export function GalleryWithTab() {
return (
<div className="w-full">
<div className="relative right-0">
<ul
className="relative flex list-none flex-wrap rounded-xl bg-blue-gray-50/60 p-1"
data-tabs="tabs"
role="list"
>
<li className="z-30 flex-auto text-center">
<a
className="text-slate-700 z-30 mb-0 flex w-full cursor-pointer items-center justify-center rounded-lg border-0 bg-inherit px-0 py-1 transition-all ease-in-out"
data-tab-target=""
role="tab"
aria-selected="true"
aria-controls="app"
>
<span className="ml-1">App</span>
</a>
</li>
<li className="z-30 flex-auto text-center">
<a
className="text-slate-700 z-30 mb-0 flex w-full cursor-pointer items-center justify-center rounded-lg border-0 bg-inherit px-0 py-1 transition-all ease-in-out"
data-tab-target=""
role="tab"
aria-selected="false"
aria-controls="message"
>
<span className="ml-1">Messages</span>
</a>
</li>
<li className="z-30 flex-auto text-center">
<a
className="text-slate-700 z-30 mb-0 flex w-full cursor-pointer items-center justify-center rounded-lg border-0 bg-inherit px-0 py-1 transition-all ease-in-out"
data-tab-target=""
role="tab"
aria-selected="false"
aria-controls="settings"
>
<span className="ml-1">Settings</span>
</a>
</li>
</ul>
<div data-tab-content="" className="p-5">
<div className="block opacity-100" id="app" role="tabpanel">
<div
role="tabpanel"
className="grid h-max w-full grid-cols-3 gap-4 p-4 font-sans text-base font-light leading-relaxed text-gray-700 antialiased"
data-value="html"
>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1493246507139-91e8fad9978e?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2940&amp;q=80"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1518623489648-a173ef7824f3?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2762&amp;q=80"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1682407186023-12c70a4a35e0?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2832&amp;q=80"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://demos.creative-tim.com/material-kit-pro/assets/img/examples/blog5.jpg"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://material-taillwind-pro-ct-tailwind-team.vercel.app/img/content2.jpg"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1620064916958-605375619af8?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=1493&amp;q=80"
alt="image-photo"
/>
</div>
</div>
</div>
<div className="hidden opacity-0" id="message" role="tabpanel">
<div
role="tabpanel"
className="grid h-max w-full grid-cols-3 gap-4 p-4 font-sans text-base font-light leading-relaxed text-gray-700 antialiased"
data-value="html"
>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://demos.creative-tim.com/material-kit-pro/assets/img/examples/blog5.jpg"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://material-taillwind-pro-ct-tailwind-team.vercel.app/img/content2.jpg"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1620064916958-605375619af8?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=1493&amp;q=80"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1493246507139-91e8fad9978e?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2940&amp;q=80"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1518623489648-a173ef7824f3?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2762&amp;q=80"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1682407186023-12c70a4a35e0?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2832&amp;q=80"
alt="image-photo"
/>
</div>
</div>
</div>
<div className="hidden opacity-0" id="settings" role="tabpanel">
<div
role="tabpanel"
className="grid h-max w-full grid-cols-3 gap-4 p-4 font-sans text-base font-light leading-relaxed text-gray-700 antialiased"
data-value="html"
>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1493246507139-91e8fad9978e?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2940&amp;q=80"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1518623489648-a173ef7824f3?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2762&amp;q=80"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://demos.creative-tim.com/material-kit-pro/assets/img/examples/blog5.jpg"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://material-taillwind-pro-ct-tailwind-team.vercel.app/img/content2.jpg"
alt="image-photo"
/>
</div>
<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1620064916958-605375619af8?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;ixlib=rb-1.2.1&amp;auto=format&amp;fit=crop&amp;w=1493&amp;q=80"
alt="image-photo"
/>
</div>

<div>
<img
className="h-40 w-full max-w-full rounded-lg"
src="https://images.unsplash.com/photo-1682407186023-12c70a4a35e0?ixlib=rb-4.0.3&amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;auto=format&amp;fit=crop&amp;w=2832&amp;q=80"
alt="image-photo"
/>
</div>
</div>
</div>
</div>
</div>
</div>
);
}
5 changes: 5 additions & 0 deletions docs-content/html/gallery/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from "./default-gallery";
export * from "./masonry-grid-gallery";
export * from "./featured-image-gallery";
export * from "./quad-gallery";
export * from "./gallery-with-tab";
Loading

0 comments on commit 1f5bf29

Please sign in to comment.