Skip to content

Commit cd5dc7f

Browse files
authored
feat: improve README layout (codse#267)
1 parent b0de6d6 commit cd5dc7f

File tree

1 file changed

+126
-20
lines changed

1 file changed

+126
-20
lines changed

README.md

Lines changed: 126 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,140 @@
1-
## Documentation
1+
<section id="logo" align="center">
2+
<a href="https://animata.design/">
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/user-attachments/assets/8d3da830-d1b0-4327-8695-edcea3534743">
5+
<source media="(prefers-color-scheme: light)" srcset="https://github.com/user-attachments/assets/44be7a44-2e1f-4b90-a238-5cd10a376748">
6+
<img alt="Animata Logo" src="https://user-images.githubusercontent.com/25423296/163456779-a8556205-d0a5-45e2-ac17-42d089e3c3f8.png" width="512">
7+
</picture>
8+
</a>
9+
<section>
10+
<a href="https://discord.gg/STYEh3UW">
11+
<img src="https://img.shields.io/badge/discord-join-7289DA.svg?logo=discord&longCache=true&style=flat" />
12+
</a>
13+
</section>
14+
<p>Handcrafted ✍️ interaction animations and visual effects sourced from across the internet 🛜, ready for you to copy and paste into your project seamlessly.</p>
15+
<section id="padges" margin="50">
16+
<h3>Built with</h3>
17+
<a href="https://nextjs.org/?ref=animata.design">
18+
<img alt="Next.js" src="https://img.shields.io/badge/Next.js-000?logo=nextdotjs&logoColor=fff&style=for-the-badge"/>
19+
</a>
20+
<a href="https://reactjs.org/?ref=animata.design">
21+
<img alt="React.js" src="https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB"/>
22+
</a>
23+
<a href="https://tailwindcss.com/?ref=animata.design">
24+
<img alt="Tailwind" src="https://img.shields.io/badge/Tailwind_CSS-0b1120?style=for-the-badge&logo=tailwind-css&logoColor=38bdf8"/>
25+
</a>
26+
<a href="https://www.framer.com/motion/?ref=animata.design">
27+
<img alt="Framer Motion" src="https://img.shields.io/badge/Framer-1a1a1a?style=for-the-badge&logo=framer&logoColor=white"/>
28+
</a>
29+
<a href="https://www.typescriptlang.org/?ref=animata.design">
30+
<img alt="Typescript" src="https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white"/>
31+
</a>
32+
<a href="https://vercel.com/?ref=animata.design">
33+
<img alt="Vercel" src="https://img.shields.io/badge/Vercel-000000?style=for-the-badge&logo=vercel&logoColor=white"/>
34+
</a>
35+
</section>
36+
</section>
37+
<br>
238

3-
Visit https://animata.design/docs to view the documentation.
39+
### Table of Contents
40+
1. [Introduction](#introduction)
41+
- [What is Animata?](#what-is-animata)
42+
- [What is not Animata?](#what-is-not-animata)
43+
2. [Getting Started](#getting-started)
44+
- [Requirements](#requirements)
45+
- [Setup Instructions](#setup-instructions)
46+
- [Folder Structure (Recommended)](#folder-structure-recommended)
47+
- [Install Dependencies](#install-dependencies)
48+
- [Create Utility Functions](#create-utility-functions)
49+
3. [Contributing](#contributing)
50+
4. [Authors](#authors)
51+
5. [License](#license)
52+
53+
## Introduction
454

5-
## Contributing
55+
### What is Animata?
56+
Welcome to Animata, a free and open-source collection of hand-crafted animations, effects, and interactions that you can seamlessly integrate into your project with a simple copy and paste. The animations are built using TailwindCSS and React.js, so they can be easily customized to fit your project's design.
657

7-
Visit our [contributing guide](https://animata.design/docs/contributing) to learn how to contribute. _So easy_ that you just run a command to get started.
58+
### What is not Animata?
59+
Animata is not a full-fledged UI library like Material-UI or Chakra-UI. It is a collection of animations and effects that you can use to enhance your project's design. You can also use Animata alongside other UI libraries or design systems (you will need to set up TailwindCSS for this).
860

9-
### Built With
61+
## Getting Started
62+
You don't need to install it as a dependency instead you can simply copy and paste the code, as shadcn/ui, into your project. However, you still need to install the other dependency that the code needs.
1063

11-
- [Next.js](https://nextjs.org/?ref=animata.design)
12-
- [React.js](https://reactjs.org/?ref=animata.design)
13-
- [Tailwind CSS](https://tailwindcss.com/?ref=animata.design)
14-
- [Framer Motion](https://www.framer.com/motion/?ref=animata.design)
15-
- [TypeScript](https://www.typescriptlang.org/?ref=animata.design)
16-
- [Vercel](https://vercel.com/?ref=animata.design)
64+
### Requirements
65+
- [TailwindCSS](https://tailwindcss.com/docs/installation): For styling.
66+
- [Framer Motion](https://www.framer.com/motion/) (Optional): For complex animations.
67+
- [Lucide Icons](https://lucide.dev/) or [Radix Icons](https://www.radix-ui.com/icons) (Optional): Use for icons, or replace with any other icon library or SVGs.
1768

18-
## Authors
69+
### Setup Instructions
70+
#### Folder Structure (Recommended)
71+
72+
```bash
73+
/
74+
/components
75+
/ui
76+
```
77+
78+
where `/` is the root of your project, `/components` is where you keep your components and the project has been set up using paths in the `tsconfig.json` file.
79+
80+
```json
81+
{
82+
"compilerOptions": {
83+
"baseUrl": ".",
84+
"paths": {
85+
"@/*": ["./*"]
86+
}
87+
}
88+
}
89+
```
90+
#### Install Dependencies
91+
Install the required dependencies, if you haven't already:
92+
93+
```sh
94+
npm install tailwind-merge clsx lucide-react tailwindcss-animate
95+
```
96+
97+
Add `tailwindcss-animate` to plugins in `tailwind.config.js` file:
1998

20-
<a href="https://github.com/codse/animata/graphs/contributors">
21-
<img src="https://contrib.rocks/image?repo=codse/animata&max=100" />
22-
</a>
99+
```js
100+
module.exports = {
101+
plugins: [require("tailwindcss-animate")],
102+
};
103+
```
23104

24-
## Activity
105+
### Create Utility Functions
106+
Create utils.ts file in the libs folder and paste the following code:
25107

26-
![Alt](https://repobeats.axiom.co/api/embed/d9e51a39c4a87d16c8f685e5f6d84d700eba0e85.svg "Repobeats analytics image")
108+
```ts
109+
import { type ClassValue, clsx } from "clsx";
110+
import { twMerge } from "tailwind-merge";
111+
112+
export function cn(...inputs: ClassValue[]) {
113+
return twMerge(clsx(inputs));
114+
}
115+
```
27116

28-
## Deploy
117+
#### NOTE
118+
1. If you see something that has been imported but not mentioned in the documentation, then it is a dependency you need to install. If it starts with @/ then it is Animata's component else it is an external dependency. In such a case, you can submit a PR to update the documentation.
119+
2. If something is not working, the docs probably miss the tailwind.config.js updates. You can look for the entries that have been added to the tailwind.config.js in Animata's source code. You can create an issue or submit a PR to update the documentation.
120+
121+
## Contributing
122+
123+
Contributions to Animata are always welcome!
124+
125+
- 📥 Pull requests and 🌟 Stars are always welcome.
126+
- Read our [contributing guide](https://animata.design/docs/contributing) to get started,
127+
or find us on [Discord](https://discord.gg/STYEh3UW), we will take the time to guide you.
128+
129+
## Authors
130+
Heartfelt gratitude goes to each of you for your amazing contributions to this project. Your hard work, creativity, and dedication have been nothing short of incredible. Whether it was coding, debugging, testing, or sharing ideas, every effort made a significant difference.
29131

30-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fcodse%2Fanimata)
132+
<section id="#Authors"
133+
<a href="https://github.com/codse/animata/graphs/contributors">
134+
<img src="https://contrib.rocks/image?repo=codse/animata&max=100"/>
135+
</a>
136+
</section>
31137

32138
## License
33139

34-
Licensed under the [MIT license](https://github.com/codse/animata/blob/main/LICENSE.md).
140+
This project is licensed under the MIT License. see the [LICENSE](https://github.com/codse/animata/blob/main/LICENSE.md) file for details.

0 commit comments

Comments
 (0)