87 lines
5.3 KiB
PHP
87 lines
5.3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<title>{{ config('app.name', 'Parsa Aghayi') }} | API</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
background: #0a0a0f;
|
|
color: #e1e1e6;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-image: radial-gradient(ellipse at 50% 0%, #1a1a2e 0%, #0a0a0f 60%);
|
|
}
|
|
.container { max-width: 800px; margin: 0 auto; padding: 2rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
|
|
header { text-align: center; margin-bottom: 3rem; }
|
|
.logo { width: 72px; height: 72px; background: linear-gradient(135deg, #6c5ce7, #a29bfe); border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 1.8rem; font-weight: 700; color: #fff; }
|
|
h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(135deg, #e1e1e6, #a29bfe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
|
|
.subtitle { font-size: 1rem; color: #8888a0; margin-top: 0.5rem; font-weight: 400; }
|
|
.badge { display: inline-block; padding: 0.35rem 1rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(108, 92, 231, 0.15); color: #a29bfe; border: 1px solid rgba(108, 92, 231, 0.25); margin-top: 1rem; }
|
|
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
|
|
.card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 1.5rem; transition: all 0.2s; }
|
|
.card:hover { background: rgba(255,255,255,0.06); border-color: rgba(108, 92, 231, 0.3); transform: translateY(-2px); }
|
|
.card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
|
|
.card h3 { font-size: 0.9rem; font-weight: 600; color: #c4c4d4; margin-bottom: 0.35rem; }
|
|
.card p { font-size: 0.8rem; color: #72728a; line-height: 1.5; }
|
|
.card a { color: #a29bfe; text-decoration: none; }
|
|
.card a:hover { text-decoration: underline; }
|
|
.status-section { text-align: center; margin-top: 3rem; padding: 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; }
|
|
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #00d68f; margin-right: 0.5rem; animation: pulse 2s infinite; }
|
|
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
|
|
.status-text { font-size: 0.85rem; color: #8888a0; }
|
|
.footer { text-align: center; padding: 2rem; font-size: 0.75rem; color: #52526a; }
|
|
.footer a { color: #72728a; text-decoration: none; }
|
|
.footer a:hover { color: #a29bfe; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<div class="logo">P</div>
|
|
<h1>{{ config('app.name', 'Parsa Aghayi') }}</h1>
|
|
<p class="subtitle">RESTful API — Portfolio & Blog Platform</p>
|
|
<span class="badge">● API v1</span>
|
|
</header>
|
|
|
|
<div class="cards">
|
|
<div class="card">
|
|
<div class="card-icon">🚀</div>
|
|
<h3>API Documentation</h3>
|
|
<p>Explore endpoints via <a href="{{ url('/api/documentation') }}">Swagger UI</a> or download the <a href="{{ url('/docs/api-docs.json') }}">OpenAPI spec</a>.</p>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-icon">📝</div>
|
|
<h3>Website API</h3>
|
|
<p>Portfolio content, services, skills, and projects accessible under <code>GET /api/website/*</code>.</p>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-icon">💬</div>
|
|
<h3>Blog API</h3>
|
|
<p>Posts, categories, and tags with full CRUD via <code>GET /api/blog/*</code>.</p>
|
|
</div>
|
|
<div class="card">
|
|
<div class="card-icon">⚙️</div>
|
|
<h3>Tech Stack</h3>
|
|
<p>Laravel {{ Illuminate\Foundation\Application::VERSION }} · PHP {{ PHP_VERSION }} · MySQL · Spatie Translatable · Swagger</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="status-section">
|
|
<span class="status-dot"></span>
|
|
<span class="status-text">Service is operational — all systems running normally</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<a href="https://parsaaghayi.ir" target="_blank">© {{ date('Y') }} Parsa Aghayi</a> · Built with Laravel
|
|
</div>
|
|
</body>
|
|
</html> |