Skip to content

Commit

Permalink
Created a 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesVanWaza committed Jun 5, 2024
1 parent 35483ce commit 9c2d69c
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
61 changes: 61 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Algolia Demos Tutorial</title>
<link rel="icon" href="assets/favicon.png"><script defer src="vendors-node_modules_fortawesome_fontawesome-free_js_all_js-node_modules_bootstrap_dist_js_bo-1f4929.bundle.js"></script><script defer src="index.bundle.js"></script><script defer src="vendors-node_modules_algoliasearch_dist_algoliasearch-lite_umd_js-node_modules_instantsearch_-50985f.bundle.js"></script><script defer src="vendors-node_modules_instantsearch_js_es_widgets_stats_stats_js.bundle.js"></script><script defer src="vendors-node_modules_instantsearch_js_es_widgets_powered-by_powered-by_js.bundle.js"></script><script defer src="airline.bundle.js"></script><script defer src="app.bundle.js"></script><script defer src="vendors-node_modules_instantsearch_js_es_widgets_refinement-list_refinement-list_js.bundle.js"></script><script defer src="cars.bundle.js"></script><script defer src="vendors-node_modules_instantsearch_js_es_widgets_hits-per-page_hits-per-page_js.bundle.js"></script><script defer src="contacts.bundle.js"></script><script defer src="ecommerce.bundle.js"></script><script defer src="vendors-node_modules_instantsearch_js_es_widgets_pagination_pagination_js.bundle.js"></script><script defer src="stocks.bundle.js"></script><script defer src="onethousandq.bundle.js"></script></head>

<body>
<nav class="navbar navbar-expand-lg bg-primary">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">Algolia InstantSearch Demo</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="contacts.html">Contacts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="airlines.html">Airlines</a>
</li>
<li class="nav-item">
<a class="nav-link" href="onethousandquestions.html">1KQ?</a>
</li>
<li class="nav-item">
<a class="nav-link" href="stocks.html">Stocks</a>
</li>
<li class="nav-item">
<a class="nav-link" href="cars.html">Cars</a>
</li>
<li class="nav-item">
<a class="nav-link" href="bills.html">Bills</a>
</li>
<li class="nav-item">
<a class="nav-link" href="usofficeske.html">KE Offices</a>
</li>
<li class="nav-item">
<a class="nav-link" href="usofficesus.html">US Offices</a>
</li>
</ul>
</div>
</div>
</nav>

<section class="container-fluid">
<div class="row">
<div class="col mt-1">
<div class="d-flex justify-content-center">
<h1>Getting started with Algolia InstantSearch</h1>
</div>
</div>
</div>
</section>
</body>

</html>
61 changes: 61 additions & 0 deletions src/html-templates/404-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Algolia Demos Tutorial</title>
</head>

<body>
<nav class="navbar navbar-expand-lg bg-primary">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">Algolia InstantSearch Demo</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="contacts.html">Contacts</a>
</li>
<li class="nav-item">
<a class="nav-link" href="airlines.html">Airlines</a>
</li>
<li class="nav-item">
<a class="nav-link" href="onethousandquestions.html">1KQ?</a>
</li>
<li class="nav-item">
<a class="nav-link" href="stocks.html">Stocks</a>
</li>
<li class="nav-item">
<a class="nav-link" href="cars.html">Cars</a>
</li>
<li class="nav-item">
<a class="nav-link" href="bills.html">Bills</a>
</li>
<li class="nav-item">
<a class="nav-link" href="usofficeske.html">KE Offices</a>
</li>
<li class="nav-item">
<a class="nav-link" href="usofficesus.html">US Offices</a>
</li>
</ul>
</div>
</div>
</nav>

<section class="container-fluid">
<div class="row">
<div class="col mt-1">
<div class="d-flex justify-content-center">
<h1>Getting started with Algolia InstantSearch</h1>
</div>
</div>
</div>
</section>
</body>

</html>
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ module.exports = {
filename: 'signin.html',
template: './src/html-templates/signin-template.html'
}),
new HtmlWebpackPlugin({
filename: '404.html',
template: './src/html-templates/404-template.html'
}),
new FaviconsWebpackPlugin({
logo: './src/images/[email protected]'
}),
Expand Down

0 comments on commit 9c2d69c

Please sign in to comment.