Currency Api Dashboard

TypeScript

Modern currency exchange rate dashboard with real-time market data, conversion tools, analytics, historical trends, and responsive admin interface.

Stars
18
Forks
1
Downloads
N/A
Open Issues
0
Files main

Repository Files

Loading file structure...
resources/js/pages/license.tsx
import { Head, Link } from '@inertiajs/react';
import { ArrowLeft, Key } from 'lucide-react';
import React from 'react';
import { Button } from '@/components/ui/button';
import {
    Card,
    CardContent,
    CardDescription,
    CardHeader,
    CardTitle,
} from '@/components/ui/card';

export default function LicensePage() {
    return (
        <>
            <Head title="Developer License Agreement" />
            <div className="flex min-h-screen flex-col items-center bg-background p-6 text-foreground md:p-12">
                <div className="w-full max-w-4xl space-y-8">
                    {/* Navigation Back */}
                    <div className="flex items-center justify-between border-b border-border pb-6">
                        <div className="flex items-center gap-2">
                            <span className="rounded-lg bg-primary/10 p-2 text-primary">
                                <Key className="h-6 w-6" />
                            </span>
                            <div>
                                <h1 className="text-3xl font-extrabold tracking-tight">
                                    API License Agreement
                                </h1>
                                <p className="text-sm text-muted-foreground">
                                    Effective Date: June 1, 2026
                                </p>
                            </div>
                        </div>
                        <Button variant="ghost" asChild>
                            <Link
                                href="/"
                                className="flex items-center gap-2 font-medium"
                            >
                                <ArrowLeft className="h-4 w-4" /> Back to Home
                            </Link>
                        </Button>
                    </div>

                    {/* Main Content */}
                    <Card className="border border-border bg-card text-card-foreground shadow-xs">
                        <CardHeader>
                            <CardTitle className="text-xl font-bold">
                                Developer API License
                            </CardTitle>
                            <CardDescription>
                                Grant and constraints of using rates dataset and
                                conversion methods.
                            </CardDescription>
                        </CardHeader>
                        <CardContent className="space-y-6 text-sm leading-relaxed text-muted-foreground">
                            <section className="space-y-2">
                                <h3 className="text-base font-bold text-foreground">
                                    1. Grant of License
                                </h3>
                                <p>
                                    Subject to compliance with our usage
                                    metrics, we grant you a limited,
                                    non-exclusive, non-transferable, revocable
                                    license to request, download, and utilize
                                    exchange rates data in your software
                                    applications.
                                </p>
                            </section>

                            <section className="space-y-2">
                                <h3 className="text-base font-bold text-foreground">
                                    2. Permitted Uses
                                </h3>
                                <p>
                                    You may integrate the rates in web
                                    platforms, internal systems, mobile
                                    applications, and testing environments. You
                                    are encouraged to cache the data locally to
                                    enhance load times and minimize overall
                                    server dependency.
                                </p>
                            </section>

                            <section className="space-y-2">
                                <h3 className="text-base font-bold text-foreground">
                                    3. Restrictions
                                </h3>
                                <p>You shall not:</p>
                                <ul className="list-disc space-y-1 pl-5">
                                    <li>
                                        Sell, lease, or sub-license the raw
                                        database content as a standalone
                                        service.
                                    </li>
                                    <li>
                                        Use the currency system to facilitate
                                        illegal financial transactions or market
                                        manipulation.
                                    </li>
                                    <li>
                                        Reverse engineer the rate
                                        synchronization cron script or bypass
                                        security features.
                                    </li>
                                </ul>
                            </section>

                            <section className="space-y-2">
                                <h3 className="text-base font-bold text-foreground">
                                    4. Attribution Requirement
                                </h3>
                                <p>
                                    For public-facing applications using this
                                    API, developers must include a clear
                                    attribution note visible on the conversion
                                    screen (e.g., "Exchange rates powered by our
                                    local System API").
                                </p>
                            </section>

                            <section className="space-y-2">
                                <h3 className="text-base font-bold text-foreground">
                                    5. Termination
                                </h3>
                                <p>
                                    We reserve the right to suspend or terminate
                                    developer keys immediately upon breach of
                                    restrictions or failure to adhere to the
                                    terms.
                                </p>
                            </section>
                        </CardContent>
                    </Card>

                    <div className="border-t border-border/50 pt-4 text-center text-xs text-muted-foreground">
                        &copy; 2026 Currency System Corp. All rights reserved.
                        Registered developers must abide by general guidelines.
                    </div>
                </div>
            </div>
        </>
    );
}