mirror of
https://github.com/Dvorinka/Bookra.git
synced 2026-10-29 16:04:45 +00:00
cleanup
This commit is contained in:
1 parent
48c3e15a38
commit
cf3315e8fc
155 files changed
+70334
-19015
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { A, useParams, useSearchParams } from "@solidjs/router";
|
||||
import { createSignal, createResource, Show, Match, Switch } from "solid-js";
|
||||
import { useParams, useSearchParams } from "@solidjs/router";
|
||||
import { createSignal, createResource, Show } from "solid-js";
|
||||
import { apiClient } from "../lib/api-client";
|
||||
import { useI18n } from "../providers/i18n-provider";
|
||||
import { BookraCharacter } from "../components/bookra-character";
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
import { Show, createSignal } from "solid-js";
|
||||
import { useI18n } from "../providers/i18n-provider";
|
||||
import { BookraCharacter } from "../components/bookra-character";
|
||||
import { Button, Card, CardContent, CardHeader, CardTitle, Input, Textarea } from "../components/ui";
|
||||
import {
|
||||
Button,
|
||||
Card,
|
||||
CardContent,
|
||||
CardTitle,
|
||||
Input,
|
||||
Textarea
|
||||
} from "../components/ui";
|
||||
|
||||
export function ContactRoute() {
|
||||
const i18n = useI18n();
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
import { For, Show, createResource, createSignal, createMemo, createEffect, onMount } from "solid-js";
|
||||
import {
|
||||
Show,
|
||||
createResource,
|
||||
createSignal,
|
||||
createMemo,
|
||||
createEffect
|
||||
} from "solid-js";
|
||||
import { A, useSearchParams } from "@solidjs/router";
|
||||
import { apiClient } from "../lib/api-client";
|
||||
import { getPaddle, paddleConfigured } from "../lib/paddle";
|
||||
@@ -731,7 +737,12 @@ export function DashboardRoute() {
|
||||
setBillingError(i18n.locale() === "cs" ? "Paddle portál není připraven." : "Paddle portal is not ready.");
|
||||
return;
|
||||
}
|
||||
window.location.href = response.data.url;
|
||||
const portalUrl = response.data.url;
|
||||
if (!portalUrl.startsWith("https://")) {
|
||||
setBillingError(i18n.locale() === "cs" ? "Neplatný portál URL." : "Invalid portal URL.");
|
||||
return;
|
||||
}
|
||||
window.location.href = portalUrl;
|
||||
};
|
||||
|
||||
createEffect(() => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { A } from "@solidjs/router";
|
||||
import { createSignal, onMount, JSX, createMemo } from "solid-js";
|
||||
import { createSignal, onMount, createMemo } from "solid-js";
|
||||
import { useI18n } from "../providers/i18n-provider";
|
||||
import { BookraCharacter } from "../components/bookra-character";
|
||||
|
||||
@@ -637,11 +637,8 @@ export function HomeRoute() {
|
||||
</section>
|
||||
|
||||
{/* CTA Section */}
|
||||
<section class="py-20 lg:py-32 relative overflow-hidden">
|
||||
<div class="absolute inset-0 pointer-events-none">
|
||||
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-accent/5 rounded-full blur-3xl" />
|
||||
</div>
|
||||
<div class="section-container relative">
|
||||
<section class="py-20 lg:py-32">
|
||||
<div class="section-container">
|
||||
<div class="max-w-3xl mx-auto text-center">
|
||||
{/* Celebratory mascot */}
|
||||
<div class="flex justify-center mb-6">
|
||||
|
||||
Reference in new issue
Block a user