-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from veselosky/v2dev
Version 2: Significant refactor of the models
- Loading branch information
Showing
37 changed files
with
2,820 additions
and
758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
<!DOCTYPE html> | ||
<html | ||
prefix="og: https://ogp.me/ns# | ||
article: https://ogp.me/ns/article# | ||
book: https://ogp.me/ns/book# | ||
profile: https://ogp.me/ns/profile# | ||
video: https://ogp.me/ns/video# | ||
" | ||
lang="en" | ||
> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Site Manager Mock Up</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<style> | ||
:root { | ||
/* Default variable for "light mode" */ | ||
--border-color: #ccc; | ||
--color: black; | ||
--color-muted: dimgray; | ||
--color-inverse: white; | ||
--background-color-muted: ghostwhite; | ||
--background-color-inverse: darkslategray; | ||
--border-radius: 0.25rem; | ||
--link-color: darkgreen; | ||
--link-color-inverse: greenyellow; | ||
--symbol-button-size: 1.5em; | ||
--max-list-column-width: 25%; | ||
} | ||
*, | ||
*:before, | ||
*:after { | ||
box-sizing: border-box; | ||
} | ||
body { | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, | ||
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; | ||
} | ||
main { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: start; | ||
align-items: flex-start; | ||
gap: 1rem; | ||
} | ||
.page-tree { | ||
flex: 1 1 20%; | ||
background-color: var(--background-color-muted); | ||
color: var(--color-muted); | ||
} | ||
.page-tree p { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.page-tree p.add-page { | ||
display: list-item; | ||
list-style: inside "+"; | ||
} | ||
.page-tree details p.add-page { | ||
margin-left: 1rem; | ||
} | ||
details details { | ||
margin-left: 1rem; | ||
} | ||
details details details { | ||
margin-left: 2rem; | ||
} | ||
details details details details { | ||
margin-left: 3rem; | ||
} | ||
details details details details details { | ||
margin-left: 4rem; | ||
} | ||
details details details details details details { | ||
margin-left: 5rem; | ||
} | ||
details details details details details details details { | ||
margin-left: 6rem; | ||
} | ||
.page-content { | ||
flex: 1 1 80%; | ||
} | ||
.go-button { | ||
background-color: greenyellow; | ||
color: darkgreen; | ||
transition: box-shadow 0.25s ease-in-out; | ||
display: flex; | ||
align-items: center; | ||
} | ||
/* .go-button:hover, | ||
.go-button:focus { | ||
box-shadow: 0 0 1em 0.5em greenyellow; | ||
} */ | ||
.symbol-button { | ||
border: 1px solid green; | ||
width: var(--symbol-button-size); | ||
height: var(--symbol-button-size); | ||
border-radius: 50%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-decoration: none; | ||
} | ||
i.bi-plus { | ||
width: var(--symbol-button-size); | ||
height: var(--symbol-button-size); | ||
} | ||
i.bi-plus::before { | ||
content: ""; | ||
color: darkgreen; | ||
display: inline-block; | ||
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='currentColor' class='bi bi-plus' viewBox='0 0 16 16'> <path d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4'/></svg>"); | ||
background-repeat: no-repeat; | ||
width: var(--symbol-button-size); | ||
height: var(--symbol-button-size); | ||
} | ||
</style> | ||
</head> | ||
<body class=""> | ||
<header class="page_header"> | ||
<h1>Site Manager Mock Up</h1> | ||
</header> | ||
<div class="precontent"></div> | ||
<main class=""> | ||
<section class="page-tree"> | ||
<h2>Page Tree</h2> | ||
<p class="add-page"> | ||
<a href="#">Add Page</a> | ||
</p> | ||
<details> | ||
<summary>Home</summary> | ||
<p class="add-page"> | ||
<a href="#">Add Child Page</a> | ||
</p> | ||
</details> | ||
<details> | ||
<summary>About</summary> | ||
<details> | ||
<summary>Contact</summary> | ||
<p class="add-page"> | ||
<a href="#">Add Child Page</a> | ||
</p> | ||
</details> | ||
<details> | ||
<summary>Media Kit</summary> | ||
<p class="add-page"> | ||
<a href="#">Add Child Page</a> | ||
</p> | ||
</details> | ||
<p class="add-page"> | ||
<a href="#">Add Child Page</a> | ||
</p> | ||
</details> | ||
</section> | ||
<section class="page-content"> | ||
<h2 id="page-title">Page Content Here</h2> | ||
<div class="page-content"> | ||
<p>This is where the page content will go.</p> | ||
</div> | ||
</section> | ||
</main> | ||
<div class="postcontent"></div> | ||
<footer class="page_footer"></footer> | ||
<script> | ||
const pageTitle = document.getElementById("page-title"); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import http.server | ||
import socketserver | ||
|
||
PORT = 8001 | ||
|
||
Handler = http.server.SimpleHTTPRequestHandler | ||
|
||
with socketserver.TCPServer(("", PORT), Handler) as httpd: | ||
print("serving at port", PORT) | ||
httpd.serve_forever() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,15 @@ | |
name = "django-genericsite" | ||
dynamic = ["version"] | ||
authors = [{ name = "Vince Veselosky", email = "[email protected]" }] | ||
description = "basic templates for Django's generic views to produce a decent-looking website with minimal effort" | ||
description = "basic data model and templates for Django's generic views to produce a decent-looking website with minimal effort" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"django-bootstrap-icons>=0.7.8", | ||
"django-taggit>=3.0.0", | ||
"django-tinymce>=3.4.0", | ||
"django<5.1,>=3.2", | ||
"docutils>=0.19", | ||
"easy-thumbnails>=2.8.4", | ||
"pillow>=2.3.0", | ||
"pydantic<2.0,>=1.9.1", | ||
"django-imagekit>=5.0.0", | ||
"django-taggit>=5.0.0", | ||
"django<5.3,>=4.2", | ||
"pillow>=10.1.0", | ||
] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
|
@@ -23,14 +20,13 @@ classifiers = [ | |
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black", | ||
"django-allauth>=0.51.0", | ||
"django-debug-toolbar", | ||
"django-environ", | ||
"django-extensions", | ||
"isort", | ||
"pip-tools", | ||
"pycodestyle", | ||
"django-tinymce", | ||
"djlint", | ||
"docutils>=0.19", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-django", | ||
|
Oops, something went wrong.