redid all the css almost
This commit is contained in:
parent
af956d09d1
commit
ec2a6a7a6d
@ -21,7 +21,12 @@ DEV = int(config['NETWORK']['DEV'])
|
|||||||
|
|
||||||
def get_posts(category_filter : str | None = None) -> list[Post]:
|
def get_posts(category_filter : str | None = None) -> list[Post]:
|
||||||
post_files = glob.glob(f'{POSTS_FOLDER}/*')
|
post_files = glob.glob(f'{POSTS_FOLDER}/*')
|
||||||
|
try:
|
||||||
post_files.remove(f'{POSTS_FOLDER}/POST_TEMPLATE.md')
|
post_files.remove(f'{POSTS_FOLDER}/POST_TEMPLATE.md')
|
||||||
|
except ValueError as e:
|
||||||
|
print(e)
|
||||||
|
print(f'Couldn\'t remove the template file probably; {post_files}')
|
||||||
|
exit()
|
||||||
|
|
||||||
posts: list[Post] = []
|
posts: list[Post] = []
|
||||||
for post_file in post_files:
|
for post_file in post_files:
|
||||||
|
|||||||
@ -6,3 +6,4 @@ status_file=./resources/status.text
|
|||||||
|
|
||||||
[NETWORK]
|
[NETWORK]
|
||||||
PORT=1111
|
PORT=1111
|
||||||
|
DEV=1
|
||||||
|
|||||||
@ -1,21 +1,45 @@
|
|||||||
/* Global Settings */
|
/* Global Stuff */
|
||||||
@font-face {
|
@import url('https://fonts.googleapis.com/css?family=PT%20Mono:700|PT%20Mono:400');
|
||||||
font-family: ibmplexmono;
|
|
||||||
src: url(./IBMPlexMono-Regular.woff) format('woff');
|
body {
|
||||||
|
font-family: 'PT Mono';
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5 {
|
||||||
|
font-family: 'PT Mono';
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
--text: hsl(224, 83%, 91%);
|
||||||
|
--background: hsl(224, 31%, 23%);
|
||||||
|
--primary: hsl(229, 81%, 73%);
|
||||||
|
--primary10: hsla(209, 61%, 71%, 10%);
|
||||||
|
--primary20: hsla(209, 61%, 71%, 20%);
|
||||||
|
--primary40: hsla(209, 61%, 71%, 40%);
|
||||||
|
--secondary: hsl(277, 81%, 33%);
|
||||||
|
--accent: hsl(291, 81%, 60%);
|
||||||
|
--accent75: hsla(291, 81%, 60%, 75%);
|
||||||
|
--accent50: hsla(291, 81%, 60%, 50%);
|
||||||
|
|
||||||
|
--main-background: var(--primary10);
|
||||||
|
--borders-style: hidden;
|
||||||
|
--border-radius: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
/* font-family: 'Courier New', Courier, monospace; */
|
color: var(--text);
|
||||||
font-family: ibmplexmono;
|
background-color: var(--background);
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: black;
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: hotpink;
|
color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -26,21 +50,18 @@ a:hover {
|
|||||||
.header {
|
.header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
margin: 10pt;
|
margin: 0 30%;
|
||||||
|
padding: 2em;
|
||||||
|
|
||||||
border-style: solid;
|
border-style: var(--borders-style);
|
||||||
border-color: #1E2022;
|
border-color: #1E2022;
|
||||||
background-color: #F0F5F9;
|
background-color: var(--background);
|
||||||
border-radius: 20px;
|
border-radius: var(--border-radius);
|
||||||
}
|
|
||||||
|
|
||||||
.header h1 {
|
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header a {
|
.header a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #703be7;
|
color: var(--primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
@ -48,10 +69,12 @@ a:hover {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
||||||
border-style: solid;
|
margin: 0px 20%;
|
||||||
|
|
||||||
|
border-style: var(--borders-style);
|
||||||
border-color: #1E2022;
|
border-color: #1E2022;
|
||||||
background-color: #F0F5F9;
|
background-color: var(--main-background);
|
||||||
border-radius: 20px;
|
border-radius: var(--border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
@ -60,14 +83,14 @@ a:hover {
|
|||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
padding: 20pt;
|
padding: 20pt;
|
||||||
padding-bottom: 5em;
|
|
||||||
|
|
||||||
margin: 15pt;
|
margin: 5em 0;
|
||||||
|
margin-left: 2em;
|
||||||
|
|
||||||
border-style: solid;
|
border-style: var(--borders-style);
|
||||||
border-radius: 10px;
|
border-radius: var(--border-radius);
|
||||||
border-color: #1E2022;
|
border-color: #1E2022;
|
||||||
background-color: #C9D6DF;
|
background-color: var(--main-background);
|
||||||
|
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
|
|
||||||
@ -90,35 +113,40 @@ a:hover {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
padding: 10pt;
|
padding: 10pt;
|
||||||
margin: 15pt;
|
margin: 0 5%;
|
||||||
margin-left: 15%;
|
margin-left: 0;
|
||||||
margin-right: 15%;
|
|
||||||
|
|
||||||
border-style: solid;
|
border-style: var(--borders-style);
|
||||||
border-radius: 20px;
|
border-radius: var(--border-radius);
|
||||||
border-color: #1E2022;
|
border-color: #1E2022;
|
||||||
background-color: #C9D6DF;
|
/* background-color: var(--main-background); */
|
||||||
}
|
}
|
||||||
|
|
||||||
.post {
|
.post {
|
||||||
/* opacity: 0.9; */
|
|
||||||
|
|
||||||
border: 2px solid #52616B;
|
border-style: var(--borders-style);
|
||||||
border-radius: 10px;
|
border-radius: var(--border-radius);
|
||||||
|
|
||||||
padding: 10pt;
|
padding: 1.5em 2em;
|
||||||
padding-left: 20pt;
|
margin: 1em 2em;
|
||||||
padding-right: 20pt;
|
|
||||||
|
|
||||||
margin: 10pt;
|
/* background-color: var(--main-background); */
|
||||||
margin-left: 20pt;
|
}
|
||||||
margin-right: 20pt;
|
|
||||||
|
|
||||||
background-color: #C9D6DF;
|
.post h2 {
|
||||||
|
text-decoration: underline;
|
||||||
|
text-decoration-style: solid;
|
||||||
|
text-decoration-thickness: 0.25em;
|
||||||
|
text-underline-offset: 6px;
|
||||||
|
text-decoration-color: var(--accent75);
|
||||||
|
}
|
||||||
|
|
||||||
line-height: 1.25em;
|
.post h3 {
|
||||||
|
font-weight: 300;
|
||||||
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post p {
|
.post p {
|
||||||
|
line-height: 2.25;
|
||||||
text-indent: 3em;
|
text-indent: 3em;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>0x01fe.net</h1>
|
<h1>0x01fe.net</h1>
|
||||||
<h4>{{ status|safe }}</h4>
|
{{ status|safe }}
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- Sidebar -->
|
<!-- Sidebar -->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user