Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/taedonn/alding

A simple animated landing page
https://github.com/taedonn/alding

nextjs web web-app

Last synced: 25 days ago
JSON representation

A simple animated landing page

Awesome Lists containing this project

README

        



Alding



Node version badge
Release badge
Release date badge
License badge

`alding` is a simple animated landing page using [Next.js](https://github.com/vercel/next.js) and [TypeScript](https://github.com/microsoft/TypeScript).

- [Alding](#alding)
- [Getting started](#getting-started)
- [Before installing](#before-installing)
- [Deploying your app](#deploying-your-app)
- [Components](#components)
- [``](#header)
- [``](#logo)
- [``](#menu)
- [``](#menulink)
- [``](#menulist)
- [``](#menuoption)
- [License](#license)

-----

## Getting started

`fork`, or `git clone` this repo by running the following command.

```bash
git clone --depth 1 https://github.com/taedonn/alding.git
```

-----

## Before installing

Make sure `node.js` version over 18 is installed on your machine.

```bash
node -v
```

> if node version is below 18, you can run one of the following commands to upgrade or change node version.

`Homebrew`

```bash
# Install node version using homebrew.
brew install node@18

# Unlink previously used node version.
brew unlink node

# Link newly installed node version.
brew link node@18
```

`nvm`

```bash
# Install node version using nvm.
nvm install v18.12.0

# Choose newly installed node version.
nvm use v18.12.0
```

`sudo`

```bash
# Install node version using sudo.
sudo n 18.12.0

# Choose newly installed node version on drop-down menu.
sudo n
```

-----

## Deploying your app

Most hosting platforms allow you to define `build` command and `output` folder:

- Build command: `npm run build` or `next build`
- Output folder: `.next`

> If you are using [Vercel](https://vercel.com), you don't need to configure any options since vercel will automatically detect output directory.

-----

## Components

`alding` requires a precise component structure in `/app/layout.tsx`:

- [``](#header)
- [``](#logo)
- [``](#menu)
- [``](#menulink)
- [``](#menulist)
- [``](#menuoption)

### ``

`` is a wrapper component of all the other header components.

| name | type | default | description |
| ---------- | ------- | ------- | ------------------------------- |
| height | integer | 5 | Height of ``. |
| heightUnit | string | rem | Unit of height. ex) px, rem, % |

```jsx

{/* Children */}

```

### ``

`` displays logo inside ``.

| name | type | default | description |
| ----------- | ------- | ------- | --------------------------------- |
| src | string | | Image path of the logo. |
| name | string | | Name of the company/project/team. |
| hoverEffect | boolean | true | Enable/disable hover effect. |

```jsx

```

### ``

`` displays menu inside ``.

```jsx



{/* Children */}

```

### ``

`` displays menu with link inside ``

| name | type | default | description |
| ------ | ------ | ---------------- | -------------------------- |
| href | string | | Anchor `href` attribute. |
| target | string | _self | Anchor `target` attribute. |

```jsx


LINK

```

### ``

`` is a wrapper component of the popup list that will be displayed underneath when the menu hovered.

| name | type | default | description |
| ----------- | ------- | ------- | ----------------------------- |
| name | string | | Name of the menu. |
| width | number | 100 | Width of the menu. |
| widthUnit | string | % | Unit of width. ex) px, rem, % |
| hoverEffect | boolean | true | Enable/disable hover effect. |

```jsx


{/* Children */}

```

### ``

`` is a component that will be displayed inside popup list of ``.

| name | type | default | description |
| ------ | ------ | ---------------- | ----------------------------- |
| href | string | | Anchor `href` attribute. |
| target | string | _self | Anchor `target` attribute. |
| icon | string | fa-solid fa-bolt | Font Awesome icon class name. |
| image | string | | Image path. |

```jsx


External link

```

-----

## License

MIT License © 2023-PRESENT, Alding.