Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,14 @@ async def index_page():
return JSONResponse({"error": "index.html not found"}, status_code=404)


@app.get("/favicon.svg")
async def favicon():
path = os.path.join(WEB_DIR, "favicon.svg")
if os.path.exists(path):
return FileResponse(path, media_type="image/svg+xml")
raise HTTPException(404, "favicon not found")


@app.get("/dashboard")
async def dashboard_page():
path = os.path.join(WEB_DIR, "dashboard.html")
Expand Down
1 change: 1 addition & 0 deletions web/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>AgriTrust — Protocol Dashboard</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
Expand Down
1 change: 1 addition & 0 deletions web/farmer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>AgriTrust — Farmer Portal</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
Expand Down
21 changes: 21 additions & 0 deletions web/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>AgriTrust — Autonomous Trade-Finance for Emerging-Market Farmers</title>
<meta name="description" content="An AI underwriting agent that finances a farmer's harvest against a tokenized RWA invoice, paying for off-chain data checks via x402 micropayments. Built on Casper Network.">
<meta property="og:title" content="AgriTrust — Autonomous Trade-Finance on Casper">
Expand Down
1 change: 1 addition & 0 deletions web/lp.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<title>AgriTrust — LP Portal</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
Expand Down
Loading