Skip to content

Commit

Permalink
Meta (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
satelllte authored Nov 11, 2023
1 parent de74765 commit dc1b144
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 7 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Displacement X
# Displacement X

🚧🚧🚧 **under construction** 🚧🚧🚧
Procedural displacement sci-fi maps generator. Web-based alternative to [JSplacement](https://www.google.com/search?q=JSplacement).

Procedural displacement sci-fi maps generator.
Live at ▶ **[displacementx.vercel.app](https://displacementx.vercel.app/)**

<img src="./docs/screenshot.png" alt="Displacement X application screenshot"/>

## Status

The application is still in development, but it's already usable to some extent.

## Development

Developers guide is available in [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md).
Binary file modified bun.lockb
Binary file not shown.
23 changes: 23 additions & 0 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Development

The repository uses [Next.js](https://nextjs.org/) framework, so once you have some familiarity with it, it should be easy to work with this repository in general.

## Pre-requisites

- [Bun](https://bun.sh/) v1

## Quick start

Install dependencies:

```sh
bun i
```

Start local development server:

```sh
bun run dev
```

Open [http://localhost:3000](http://localhost:3000) in the browser.
Binary file added docs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "displacementx",
"version": "0.0.1-alpha.0",
"version": "0.0.1-alpha.1",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand All @@ -11,6 +11,7 @@
"format": "prettier . --write"
},
"dependencies": {
"@radix-ui/react-icons": "1.3.0",
"@radix-ui/react-slider": "1.1.2",
"@radix-ui/react-switch": "1.0.3",
"clsx": "2.0.0",
Expand Down
Binary file added public/og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/app/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/app/favicon.ico
Binary file not shown.
Binary file added src/app/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 25 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,32 @@ import type {Metadata} from 'next';
import {GeistSans} from 'geist/font';
import './style.css';

const title = 'Displacement X';
const description = 'Procedural displacement sci-fi maps generator';
const images = [
{
url: '/og.png',
alt: description,
width: 1200,
height: 630,
},
];

export const metadata: Metadata = {
title: 'Displacement X',
description: 'Procedural displacement sci-fi maps generator',
title,
description,
openGraph: {
title,
description,
siteName: title,
images,
},
twitter: {
card: 'summary_large_image',
title,
description,
images,
},
};

export default function RootLayout({
Expand Down
15 changes: 14 additions & 1 deletion src/components/pages/Generator/Generator.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
import Link from 'next/link';
import {GitHubLogoIcon} from '@radix-ui/react-icons';
import {CanvasSection} from './CanvasSection';
import {SettingsSection} from './SettingsSection';

export function Generator() {
return (
<div className='mx-auto max-w-screen-2xl'>
<header className='p-4'>
<header className='flex flex-row items-center justify-between p-4'>
<h1 className='select-none text-2xl sm:text-3xl'>Displacement X</h1>
<Link
className='focus-visible:outline focus-visible:outline-2 focus-visible:outline-red-700'
href='https://github.com/satelllte/displacementx'
target='_blank'
>
<GitHubLogoIcon
aria-label='GitHub repository'
width={20}
height={20}
/>
</Link>
</header>
<main className='flex flex-col gap-8 px-4 pb-4 md:flex-row md:gap-4'>
<div className='relative flex-[3]'>
Expand Down

0 comments on commit dc1b144

Please sign in to comment.