using System.Globalization;
using System.Net;
namespace Febe.SitoDiProva;
/// The HTML of the site: plain pages, no branding, no login form. Data is filled in by sito.js.
internal static class Pages
{
public static string Home() => Layout("Inizio", "inizio", string.Empty, """
Inizio
""");
public static string Profile(string username, ProfileTab tab)
{
var u = Encode(username);
var tabName = tab switch { ProfileTab.Reels => "reel", ProfileTab.Tagged => "taggati", _ => "post" };
string Tab(string label, string path, ProfileTab which) =>
$"""{label}""";
return Layout($"Profilo di {username}", "profilo", $"""data-utente="{Html(username)}" data-scheda="{tabName}" """, $"""
""");
}
public static string ProfileNotFound(string username) => Layout("Profilo non trovato", "nessuna", string.Empty, $"""
Profilo non trovato
Il profilo «{Html(username)}» non esiste o non è più disponibile.