import NWSLogo from "../static/images/NWS_Logo.png"; import UptimeCard from "./UptimeCard"; import IncidentCard from "./IncidentCard"; import Footer from "./Footer"; import React, {useEffect, useState} from "react"; import {Incident, UptimeResponse} from "../nws-api/types"; import {getIncidents, getUptime} from "../nws-api/calls"; import "../App.css"; export default function StatusPage() { const [uptime, setUptime] = useState({datacenters: [], services: [], lastUpdated: ""}); const [incidents, setIncidents] = useState([]); const fetchUptime = async () => { let resp: UptimeResponse = await getUptime(); setUptime(resp); } const fetchIncidents = async () => { let resp: Incident[] = await getIncidents(); setIncidents(resp); } useEffect(() => { fetchUptime(); fetchIncidents(); }, []); return(
nws-logo

Nick Web Services

Nick Web Services is a hosting service based out of Austin, Texas. It is committed to achieving maximum uptime with better performance and a lower cost than any of the major cloud services.


NWS System Status

Last updated at {new Date(uptime.lastUpdated).toLocaleString()}

Service Status

{uptime.services.map((e) => { return ( ); })}

Datacenter Status

{uptime.datacenters.map((e) => { return ( ); })}

Service Alerts

{incidents !== null && incidents.map((e) => { return ( ); })} {(incidents !== null || incidents.length == 0) &&
No service alerts.
}
); }