Skip to content

ozzy1136/movie-listings

 
 

Repository files navigation

What is Next.js?

⚠️ Warning - This project requires Node version 18.7 or greater.

From nextjs.org/:

Next.js is a React framework for building full-stack web applications. You use React Components to build user interfaces, and Next.js for additional features and optimizations.

Under the hood, Next.js also abstracts and automatically configures tooling needed for React, like bundling, compiling, and more. This allows you to focus on building your application instead of spending time with configuration.

Whether you're an individual developer or part of a larger team, Next.js can help you build interactive, dynamic, and fast React applications.

Project file structure

  • You'll spend most of your time in the pages/movies and the components dir which will contain your movie listings react code.
  • You're also going to use the Nextjs Image component. There's an example of it in the movies file. Here's a https://nextjs.org/docs/pages/api-reference/components/image to the documentation for it as well.

How Next.js routing works

  • Right now we'll focus on how pages are created in Next.js How tailwind works

    This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

 

Tailwindcss

Here's a short explanation on how tailwindcss works.

  • In short, tailwindcss creates utility classes that you can write right into your html.

With tailwindcss:

<div
  class="text-base sm:text-lg md:text-base lg:text-lg xl:text-xl 2xl:text-2xl"
>
  This is a small font text that changes size with the screen width.
</div>

CSS only:

.large-font {
  font-size: 40px;
}
.small-font {
  font-size: 20px;
}

/* Larger screens (e.g., desktops or laptops) */
@media screen and (min-width: 1200px) {
  .large-font {
    font-size: 48px; /* Slightly larger font size for larger screens */
  }
  .small-font {
    font-size: 24px; /* Slightly larger font size for larger screens */
  }
}
<h1 className="large-font">Text</h1>
<p className="small-font">Text</p>

Heroicons

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

How to clone the repository using codespaces

Click the "Code" dropdown button (usually green, located near the top right of the repository page). In the dropdown, you'll see an option for "Open with Codespaces." Click on it. Create a New Codespace:

If no Codespaces have been created for this repository in your account, you'll have the option to create a new one. Click on “New codespace” at the bottom of the panel. This will start the process of creating a cloud-based development environment for that repository. Configure the Codespace (if necessary):

Depending on the repository, you might have options to configure the Codespace, like selecting the branch, machine type, or configuration settings. After configuration, GitHub will set up the environment, which can take a few moments. Access the Codespace:

Once set up, you'll be taken to a VS Code-like environment in your browser, loaded with the repository's code. You can now edit, run, and commit changes to the repository directly from this environment. Working with the Repository:

You can work with the repository as if it was cloned on your local machine. Any changes you make can be committed and pushed back to the repository on GitHub.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.1%
  • TypeScript 13.9%
  • CSS 10.0%