Skip to content

Commit

Permalink
Add a separate index file for use in npm-package configuration so tha…
Browse files Browse the repository at this point in the history
…t we can easily test out dark mode
  • Loading branch information
mgriffin-scottlogic committed Jun 21, 2024
1 parent f0890a8 commit 9de79bc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"baseHref": "/sl-tech-carbon-estimator/"
},
"npm-package": {
"index": {"input": "src/package-index.html", "output": "index.html"},
"assets": [],
"styles": ["src/styles.css"]
},
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>tech-carbon-estimator</title>
<title>Technology Carbon Estimator</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet" />
Expand Down
16 changes: 16 additions & 0 deletions src/package-index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Technology Carbon Estimator</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet" />
</head>
<body class="dark:tce-bg-slate-800 dark:tce-text-slate-50">
<noscript
>Javascript appears to be disabled - unfortunately the estimator requires it to be enabled to function.</noscript
>
<tech-carbon-estimator></tech-carbon-estimator>
</body>
</html>

0 comments on commit 9de79bc

Please sign in to comment.