DEV Community

Cover image for Using Aceternity UI to make dynamic and Immersive webpages in Next.js
Sydney Gomes
Sydney Gomes

Posted on

Using Aceternity UI to make dynamic and Immersive webpages in Next.js

Creating a fan site for a beloved band like Tame Impala can be an exciting project, especially when you have the right tools at your disposal. In this blog post, we'll explore how to use Aceternity UI, a powerful UI library, to build a sleek and responsive website using Next.js. We'll discuss the benefits of Aceternity UI and how it integrates seamlessly with Next.js to deliver a top-notch user experience.

Why Choose Aceternity UI?
Aceternity UI is a modern, highly customizable UI library designed to work effortlessly with React-based frameworks like Next.js created by Manu Arora.
https://twitter.com/mannupaaji

Here are some key reasons why Aceternity UI is a great choice:

Aceternity UI allows users to copy paste the most trending components and use them in your websites without having to worry about styling and animations

It provides High Quality Next.js, Tailwind CSS and Framer Motion Templates that stand out

https://ui.aceternity.com/

To Install aceternity in your project do the following:

Create a new project
npx create-next-app@latest
Enter fullscreen mode Exit fullscreen mode

On installation, you'll see the following prompts:

What is your project named? my-app
Would you like to use TypeScript? No / Yes
Would you like to use ESLint? No / Yes
Would you like to use Tailwind CSS? No / Yes
Would you like to use `src/` directory? No / Yes
Would you like to use App Router? (recommended) No / Yes
Would you like to customize the default import alias (@/*)? No / Yes
What import alias would you like configured? @/*

Enter fullscreen mode Exit fullscreen mode

now once your folder is created run the following commands on your console

Start the app
cd my-app
npm run dev
Enter fullscreen mode Exit fullscreen mode

now to successfully run this project you will have to install the following dependencies

npm i framer-motion clsx tailwind-merge

Once the dependency is installed create a Utils folder in your root project under \src\app and add the util file as below

Add util file
utils/cn.ts

import { ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}

Enter fullscreen mode Exit fullscreen mode

Screenshot 2024-06-19 190104

Now you are all set up once your project is created you can add in components directly from the variety of components available on the page and personalize them according to your usage.

for more information check out the repository on GitHub and do favorite it

https://github.com/aerodeval/Tame-Impala-accn

Check the website here on:
https://tameimpalas.netlify.app/

Top comments (0)