update Readme and minor css changes

This commit is contained in:
Philipp Traber
2025-02-19 11:56:20 +01:00
parent 65a75080a4
commit 87478c9a55
9 changed files with 37 additions and 9 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

+2 -1
View File
@@ -4,4 +4,5 @@ node_modules
npm-debug.log npm-debug.log
README.md README.md
.next .next
.git .git
.assets
+32 -4
View File
@@ -1,11 +1,39 @@
# Short # Short
This tool is intended to provide simple url shorting and link aggregation functionality. This tool is intended to provide simple url shorting and link aggregation functionality.
Users should be able to create short links for example to generate smaller QR codes with the builtin QR code generator.
It is powered by nextjs and postgres. The admin panel is a PWA for easy access and management of the links even on mobile devices.
It is powered by nextjs and postgres.
Authentication is outsourced via OAuth2.
# Example Page
- optimized for mobile view
- simple and clean design
![example page](.assets/screenshot_home.png)
# Easy to use Admin Interface
## Overview Page
- get an overview of all links and their views
![admin landing page](.assets/admin01.png)
## Redirect Pages
- a simple redirect to a target url
![custom pages](.assets/admin03.png)
# Custom Pages
- an aggregation of multiple redirect pages
- (future work - text blocks; image blocks)
![redirect pages](.assets/admin02.png)
#### Info
The tool is in a early stage of development.
Integration of IDP is planned.
+1 -2
View File
@@ -1,9 +1,8 @@
"use server" "use server"
import { set, z } from "zod"; import { z } from "zod";
import prisma from "../../prisma/prisma"; import prisma from "../../prisma/prisma";
import { revalidatePath } from "next/cache"; import { revalidatePath } from "next/cache";
import toast from "react-hot-toast";
export async function createLinkBlock(prevState: any, formData: FormData) { export async function createLinkBlock(prevState: any, formData: FormData) {
+2 -2
View File
@@ -28,7 +28,7 @@ export default async function CustomPageComponent(params: { customPage: CustomPa
className="rounded-full zoom-animated" className="rounded-full zoom-animated"
/> />
<h1 className="mt-5 text-center zoom-animated">{customPage.title}</h1> <h1 className="my-10 text-center zoom-animated">{customPage.title}</h1>
<div className="w-full max-w-96 p-2"> <div className="w-full max-w-96 p-2">
{linkBlocks.map((block, index) => ( {linkBlocks.map((block, index) => (
@@ -39,7 +39,7 @@ export default async function CustomPageComponent(params: { customPage: CustomPa
> >
<a href={`/${block.redirectPage.page.shortcode}`}> <a href={`/${block.redirectPage.page.shortcode}`}>
<div className="relative flex items-center"> <div className="relative flex items-center">
<div className="flex-shrink-0"><LinkFavicon url={block.redirectPage.dest} /></div> <div className="flex-shrink-0 w-8 h-8"><LinkFavicon url={block.redirectPage.dest} /></div>
<div className="absolute left-1/2 transform -translate-x-1/2 text-center font-bold">{block.title}</div> <div className="absolute left-1/2 transform -translate-x-1/2 text-center font-bold">{block.title}</div>
</div> </div>
</a> </a>