Skip to content

Commit

Permalink
Merge branch 'main' of github.com:8kto/ttrpg-lotfp-helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
8kto committed Feb 7, 2024
2 parents 7168728 + e8f3fae commit 55975f4
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 26 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@

<!-- For PROGRESS update, run yarn update-readme-stats -->

Lamentations of the Flame Princess Helpers: an online inventory and equipment tool for the LotFP TTRPG
system.
An online inventory and equipment tool compatible with the LotFP TTRPG system.

The main task this tool aims to solve is to allow playing from a
phone or desktop, quickly create inventory, and easily calculate
encumbrance and movement rate (speed).

## Disclaimer

This product is an independent production by [Igor Okto / undefined](https://github.com/8kto)
and is not affiliated with Lamentations of the Flame Princess.
Lamentations of the Flame Princess is a registered trademark owned
by James Edward Raggi IV.

The content utilized in this project has been sourced from publicly available materials, including but not limited to the [LotFP Rules & Magic Free Version](https://preview.drivethrurpg.com/en/product/115059/LotFP-Rules--Magic-Free-Version) and resources from [Basic Fantasy RPG](https://www.basicfantasy.org/downloads.html).

## Demo

https://lotfp.vercel.app
Expand Down Expand Up @@ -72,9 +80,3 @@ yarn dev # Start the development server
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## Disclaimer

This project is created just for fun and is not officially affiliated with or endorsed by the publishers of ["Lamentations of the Flame Princess" (LotFP)](https://www.lotfp.com/RPG/) or any other related entities.

The content utilized in this project has been sourced from publicly available materials, including but not limited to the [LotFP Rules & Magic Free Version](https://preview.drivethrurpg.com/en/product/115059/LotFP-Rules--Magic-Free-Version) and resources from [Basic Fantasy RPG](https://www.basicfantasy.org/downloads.html).
4 changes: 2 additions & 2 deletions src/components/InventoryPageTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const InventoryPageTabs = ({

if (!isMounted) {
return (
<>
<div className='min-h-screen'>
<Spinner />
</>
</div>
)
}

Expand Down
5 changes: 4 additions & 1 deletion src/components/Spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import React from 'react'

const Spinner = () => {
return (
<div role='status' className='flex h-1/3 items-center justify-center'>
<div
role='status'
className='flex min-h-screen items-center justify-center'
>
<svg
aria-hidden='true'
className='h-20 w-20 animate-spin fill-red-400 text-gray-200'
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Header = () => {
<nav className='ph-header-wrapper fixed z-30 w-full border-2 border-b border-gray-400 px-4 py-4 text-white'>
<div className='mx-auto flex w-full max-w-screen-2xl items-center justify-between px-0 sm:px-4 lg:px-4 xl:px-8'>
<div className='flex items-center'>
<Link href='/' className='flex items-center'>
<Link href='/inventory' className='flex items-center'>
<h1
className={`${cursiveFont.className} whitespace-nowrap text-3xl font-semibold`}
>
Expand Down
2 changes: 1 addition & 1 deletion src/config/AppMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { t } from '@lingui/macro'
import type { Metadata } from 'next'

export const APP_URL = 'https://lotfp.vercel.app'
export const APP_URL = 'https://princess-helpers.vercel.app'

export const AppMetadata: Metadata = {
get description() {
Expand Down
19 changes: 14 additions & 5 deletions src/pages/disclaimer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,25 @@ export default function DisclaimerPage() {
<h2>Disclaimer</h2>
</header>
<p>
This project is created just for fun and is not officially
affiliated with or endorsed by the publishers of{' '}
This product is an independent production by{' '}
<a
target='_blank'
rel='noopener noreferrer'
href='https://www.lotfp.com/RPG/'
href='https://github.com/8kto'
>
&quot;Lamentations of the Flame Princess&quot; (LotFP)
Igor Okto / undefined
</a>{' '}
or any other related entities.
and is not affiliated with Lamentations of the Flame Princess.
Lamentations of the Flame Princess is a registered trademark owned
by James Edward Raggi IV.
<br />
<a
target='_blank'
rel='noopener noreferrer'
href='https://www.lotfp.com/RPG/3rd-party-support'
>
LotFP Compatibility License Terms 1.4
</a>
</p>

<p>
Expand Down
6 changes: 4 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useRouter } from 'next/router'
import { useEffect } from 'react'
import React, { useEffect } from 'react'

import Spinner from '@/components/Spinner'

const IndexPage = () => {
const router = useRouter()
Expand All @@ -12,7 +14,7 @@ const IndexPage = () => {
})
}, [router])

return null // Render nothing or a loader while redirecting
return <Spinner />
}

export default IndexPage
2 changes: 1 addition & 1 deletion src/translations/locales/cz.po
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ msgid "Sling bullets, rocks (10)"
msgstr "Prakové střely, kameny (10)"

msgid "page.title.suffix"
msgstr " — Princess Helpers, LotFP tools"
msgstr " — Princess Helpers"

msgid "Blowgun"
msgstr "Foukačka"
Expand Down
2 changes: 1 addition & 1 deletion src/translations/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ msgid "Sling bullets, rocks (10)"
msgstr "Sling bullets, rocks (10)"

msgid "page.title.suffix"
msgstr " — Princess Helpers, LotFP tools"
msgstr " — Princess Helpers"

msgid "Blowgun"
msgstr "Blowgun"
Expand Down
2 changes: 1 addition & 1 deletion src/translations/locales/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ msgid "Sling bullets, rocks (10)"
msgstr "Снаряды для пращи, камни (10)"

msgid "page.title.suffix"
msgstr " — Princess Helpers, LotFP tools"
msgstr " — Princess Helpers, генератор инвентаря, расчёт нагрузки"

msgid "Blowgun"
msgstr "Духовая трубка"
Expand Down
5 changes: 3 additions & 2 deletions src/translations/pages/en/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ const About = () => {
<h2>About</h2>
</header>
<p>
This is an online inventory and equipment tool for the LotFP TTRPG
system. It allows tracking of encumbrance and movement speed.
This is an online inventory and equipment tool compatible with the
LotFP TTRPG system. It allows tracking of encumbrance and movement
speed.
</p>
<p>
I created the Princess Helper to provide a convenient way to play from
Expand Down
3 changes: 2 additions & 1 deletion src/translations/pages/ru/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const About = () => {
<h2>О проекте</h2>
</header>
<p>
Учёт инвентаря и снаряжения, нагрузки и скорости в НРИ-системе LotFP.
Учёт инвентаря и снаряжения, нагрузки и скорости, совместимый с
НРИ-системой LotFP.
</p>
<p>
Я написал Princess Helpers, чтобы был удобный способ играть с телефона
Expand Down

0 comments on commit 55975f4

Please sign in to comment.