Skip to content

Commit

Permalink
Merge pull request #99 from 1chooo/ho-dev
Browse files Browse the repository at this point in the history
separate Head, Navbar
  • Loading branch information
1chooo authored Sep 7, 2023
2 parents b0db0c5 + 1c2f678 commit bd228e3
Show file tree
Hide file tree
Showing 8 changed files with 1,403 additions and 8 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ $ rmdir /s venv # remove the venv
```
### Build Docs
```shell
$ pip install mkdocs
$ pip install mkdocs-material
$ pip install pymdown-extensions
$ pip install mkdocstrings
$ pip install mkdocs-git-revision-date-plugin
$ pip install mkdocs-jupyter
$ mkdocs server
$ mkdocs build
```

### Run web app
Expand Down
2 changes: 1 addition & 1 deletion Refinaid/gui/Information.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PageContent:
def __init__(self, *args: Any, **kwargs: Any) -> None:

self.home_header = """\
# Simple AI - Bridging the Gap with AI For Everyone
# SIMPLE AI - Bridging the Gap with AI For Everyone
Enabling everyone unfamiliar with programming languages \
to easily engage with AI and open the doors to the world \
Expand Down
12 changes: 12 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,15 @@ async def page_settings(request: Request, ):
return templates.TemplateResponse(
f"settings.html", {"request": request}
)

@app.get("/orders", response_class=HTMLResponse)
async def page_orders(request: Request, ):
return templates.TemplateResponse(
f"orders.html", {"request": request}
)

@app.get("/playgrounds", response_class=HTMLResponse)
async def page_orders(request: Request, ):
return templates.TemplateResponse(
f"playgrounds.html", {"request": request}
)
Empty file added templates/footer.html
Empty file.
24 changes: 24 additions & 0 deletions templates/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>SIMPLE AI - Bridging the Gap with AI For Everyone</title>

<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta name="description" content="SIMPLE AI - Bridging the Gap with AI For Everyone">
<meta name="author" content="Hugo ChunHo Lin">
<link rel="shortcut icon" href="/static/favicon.png">

<!-- FontAwesome JS-->
<script defer src="/static/plugins/fontawesome/js/all.min.js"></script>

<!-- App CSS -->
<link id="theme-style" rel="stylesheet" href="/static/css/portal.css">

</head>

</html>
35 changes: 34 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,42 @@ <h5 class="dropdown-menu-title mb-0">Notifications</h5>
<span class="nav-link-text">Docs</span>
</a><!--//nav-link-->
</li><!--//nav-item-->

<li class="nav-item">
<!--//Bootstrap Icons: https://icons.getbootstrap.com/ -->
<a class="nav-link" href="/playgrounds/">
<span class="nav-icon">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-folder"
fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path
d="M9.828 4a3 3 0 0 1-2.12-.879l-.83-.828A1 1 0 0 0 6.173 2H2.5a1 1 0 0 0-1 .981L1.546 4h-1L.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3v1z" />
<path fill-rule="evenodd"
d="M13.81 4H2.19a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91h10.348a1 1 0 0 0 .995-.91l.637-7A1 1 0 0 0 13.81 4zM2.19 3A2 2 0 0 0 .198 5.181l.637 7A2 2 0 0 0 2.826 14h10.348a2 2 0 0 0 1.991-1.819l.637-7A2 2 0 0 0 13.81 3H2.19z" />
</svg>
</span>
<span class="nav-link-text">Playgrounds</span>
</a><!--//nav-link-->
</li><!--//nav-item-->

<li class="nav-item">
<!--//Bootstrap Icons: https://icons.getbootstrap.com/ -->
<a class="nav-link" href="/login/">
<span class="nav-icon">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-folder"
fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path
d="M9.828 4a3 3 0 0 1-2.12-.879l-.83-.828A1 1 0 0 0 6.173 2H2.5a1 1 0 0 0-1 .981L1.546 4h-1L.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3v1z" />
<path fill-rule="evenodd"
d="M13.81 4H2.19a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91h10.348a1 1 0 0 0 .995-.91l.637-7A1 1 0 0 0 13.81 4zM2.19 3A2 2 0 0 0 .198 5.181l.637 7A2 2 0 0 0 2.826 14h10.348a2 2 0 0 0 1.991-1.819l.637-7A2 2 0 0 0 13.81 3H2.19z" />
</svg>
</span>
<span class="nav-link-text">Login</span>
</a><!--//nav-link-->
</li><!--//nav-item-->

<li class="nav-item">
<!--//Bootstrap Icons: https://icons.getbootstrap.com/ -->
<a class="nav-link" href="orders.html">
<a class="nav-link" href="/orders/">
<span class="nav-icon">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-card-list"
fill="currentColor" xmlns="http://www.w3.org/2000/svg">
Expand Down
Loading

0 comments on commit bd228e3

Please sign in to comment.