Skip to content

Generates a "not found domain" compact responsive page for hosting providers when a domain or website is suspended, deleted or unavailable.

License

Notifications You must be signed in to change notification settings

walitoff/website-not-found

Repository files navigation

Codacy Badge Codacy Badge ESLint CodeQL Codacy Security Scan Node.js CI Deploy Hugo site to Pages GitHub

404 Page for Missing Website (Domain)

If you offer hosting service then you need to have some page that shows if a website does not exist on your hosting. It was deleted, suspended, expired or because of invalid DNS configuration. It's like a 404 page, but for the whole domain.

DEMO IS HERE

Sample Screenshots

White theme: cover-fox

Dark theme: cover-black

Features

This projects allows to generate a simple page for that with the following features.

  • single page only, just use resulting index.html. All styles and JS are integrated in page.
  • multilingual support with automatic preferred user language detection. Can correctly handle cases when user has complex set of preferred languages with different locales such as "en-GB", "en-US", etc.
  • responsive design
  • tests cover all major JS code

Technical details

The project is made with Hugo for website generation, UIkit for UI, Jest for testing.

How to compile

  1. Configure the website options in /src/config.toml.
  2. Adjust texts to your needs or add translations in /src/data/. To order the languages use the weight parameter.
  3. Optionally add your own CSS in /src/layours/partials/styles.css
  4. Optionally run tests with Jest if you modify the JS code: npm test
  5. Build the page with Hugo, run hugo --minify in /src/ directory. The generated page will be in /src/public/index.html.

Contributions

All contributions are welcome. If you have something to add or share, please open an issue or a PR. Code contribution guide is here.

About

Generates a "not found domain" compact responsive page for hosting providers when a domain or website is suspended, deleted or unavailable.

Topics

Resources

License

Stars

Watchers

Forks