Skip to content

Commit

Permalink
docs wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanquera committed May 30, 2024
1 parent f355f63 commit 7914a3b
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 38 deletions.
6 changes: 3 additions & 3 deletions packages/temple-web/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ app.engine(
},
);
//set the view engine to temple
app.set('views', path.join(__dirname, 'templates'));
app.set('views', path.join(__dirname, 'pages'));
app.set('view engine', 'html');

//open public folder
Expand All @@ -42,13 +42,13 @@ app.get('/temple/**', (req, res) => {
return res.render('index', props);
}
//try templates/app.html
let template = path.join(__dirname, 'templates', route + '.html');
let template = path.join(__dirname, 'pages', route + '.html');
if (fs.existsSync(template)) {
res.type('text/html');
return res.render(route, props);
}
//try templates/app/index.html
template = path.join(__dirname, 'templates', route, 'index.html');
template = path.join(__dirname, 'pages', route, 'index.html');
if (fs.existsSync(template)) {
res.type('text/html');
return res.render(`${route}/index`, props);
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<link rel="import" href="./components/panel-head.html" />
<link rel="import" href="./components/panel-main.html" />
<link rel="import" href="./components/tui-button.html" />
<link rel="import" href="./components/code-editor.html" />
<link rel="import" type="template" href="@/templates/panel-head.html" />
<link rel="import" type="component" href="@/components/panel-main.html" />
<link rel="import" type="component" href="@/components/tui-button.html" />
<link rel="import" type="component" href="@/components/code-editor.html" />
<style>
.section-hero {
background-color: var(--bg-first);
Expand Down Expand Up @@ -49,12 +49,9 @@
<link rel="shortcut icon" type="image/png" href="/temple/favicon.png" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" />
<link rel="stylesheet" type="text/css" href="/temple/styles/theme.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.34.2/theme-monokai.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.34.2/mode-javascript.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.34.2/ace.js"></script>
</head>
<body class="dark panel panel-head">
<panel-head class="head panel-head"></panel-head>
<panel-head />
<panel-main class="panel-main">
<section class="section-hero">
<img src="/temple/temple-icon.png" alt="Temple Logo" />
Expand All @@ -76,7 +73,7 @@ <h1>Temple</h1>
<code-editor class="editor"></code-editor>
</section>
<section class="section-bullets">
Bullets
Bullets "ok" good
</section>
<section class="section-interactive">
Interactive
Expand Down
26 changes: 0 additions & 26 deletions packages/temple-web/src/templates/components/panel-head.html

This file was deleted.

28 changes: 28 additions & 0 deletions packages/temple-web/src/templates/panel-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<header class="head panel-head">
<img src="/temple/temple-icon.png" alt="Temple Logo" />
<h3>Temple</h3>
<nav>
<a href="/temple/docs">Docs</a>
<a
class="github"
href="https://github.com/ossPhilippines/frui"
target="_blank"
>
<i class="fab fa-github"></i>
</a>
<a
class="npm"
href="https://www.npmjs.com/package/frui"
target="_blank"
>
<i class="fab fa-npm text-white"></i>
</a>
<a
class="discord"
href="https://discord.gg/open-source-software-ph-905496362982981723"
target="_blank"
>
<i class="fab fa-discord text-white"></i>
</a>
</nav>
</header>

0 comments on commit 7914a3b

Please sign in to comment.