Fill in main page and make website usable on phone.

This commit is contained in:
Marcel Plch 2021-08-02 15:32:28 +02:00
parent 53750422ad
commit c56c66cd0e
Signed by untrusted user who does not match committer: dormouse
GPG key ID: C731A783983CB9D9
4 changed files with 127 additions and 29 deletions

View file

@ -1,5 +1,4 @@
body { body {
font-family: 'Comic Sans MS';
color: #377ba8; color: #377ba8;
background: #252525; background: #252525;
font-size: 62.5%; font-size: 62.5%;
@ -7,7 +6,6 @@ body {
} }
h1, h2 { h1, h2 {
font-family: 'Impact', serif;
margin: 0; margin: 0;
text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, text-shadow: -2px -2px 0 #000, 2px -2px 0 #000,
-2px 2px 0 #000, 2px 2px 0 #000; -2px 2px 0 #000, 2px 2px 0 #000;
@ -32,10 +30,6 @@ a {
color: #377ba8; color: #377ba8;
} }
pre {
font-family: 'Comic Sans MS';
}
p { p {
padding-right: 33%; padding-right: 33%;
font-size: 0.95rem; font-size: 0.95rem;
@ -83,35 +77,67 @@ h4 {
} }
.navbar { .navbar {
margin-left: -27%; margin-left: -20.5%;
margin-top: 1%; margin-top: 15%;
width: 21%; width: 21%;
border: 5px solid #ccc; border: 5px solid #ccc;
padding: 0.8%;
padding-left: 5%;
background: #333; background: #333;
float: left; float: left;
position: fixed; position: fixed;
transition: margin-left 0.2s; transition: margin-left 0.2s;
} }
.navbar:hover {
margin-left: -5%; .navbar-active {
} margin-left: 0%;
.navbar:active { margin-top: 15%;
margin-left: -5%; width: 21%;
border: 5px solid #ccc;
background: #333;
float: left;
position: fixed;
transition: margin-left 0.2s;
} }
.navbar-block { .navbar-block {
font-size: 1.13rem; font-size: 1.13rem;
width: 95%; width: 95%;
padding: 5%; padding-top: 5%;
padding-left: 5%; padding-bottom: 5%;
margin: 5.8%; margin-left: 2.5%;
margin-left: -7%;
margin-top: 3%; margin-top: 3%;
margin-bottom: 3%;
float: left; float: left;
color: white; color: white;
background: #454545; background: #454545;
} }
.navbar-button {
margin-left: 20.5%;
margin-top: 7%;
border: 5px solid #ccc;
border-radius: 40px;
background: #333;
float: left;
position: fixed;
transition: margin-left 0.2s;
font-size: 1.2rem;
}
@media only screen and (max-width: 604px) {
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.8rem;
}
.navbar {
width: 80%;
margin-left: -76%;
}
.navbar-active {
width: 80%;
margin-left: 30%:
}
}

View file

@ -0,0 +1,30 @@
function init() {
let nav;
nav = document.getElementById("nav");
nav.state = new Object();
nav.state.open = false;
}
function navbar_click() {
let nav;
let navButton;
nav = document.getElementById("nav");
check = nav.hasOwnProperty("state")
if (!check) {
return;
}
if (!nav.state.open) {
nav.classList.add("navbar-active");
nav.classList.remove("navbar");
nav.children[3].innerHTML = "<"
nav.state.open = true;
}
else {
nav.classList.remove("navbar-active");
nav.classList.add("navbar");
nav.children[3].innerHTML = ">"
nav.state.open = false;
}
}

View file

@ -10,17 +10,51 @@
<p> <p>
I am an open-source enthusiast and love teaching people important stuff I am an open-source enthusiast and love teaching people important stuff
about technology. Currently, I'm trying to start up a small business about technology. Currently, I'm trying to start up a small business
based on web development and software support. There should be a section about this based on web development and software support. There should be a
somewhere around here soon™! section about this somewhere around here soon™!
</p>
<p>
<h3> Open Source </h3> <h3> Open Source </h3>
<h3> Cryptography </h3> <p>
<h3> Ethical software </h3> I contribute to a few projects.
<h3> </h3> </p>
<ul> <ul>
<li> some fucking list </li> <li><a href="https://www.python.org/">Python</a></li>
<li><a href="https://getfedora.org/">Fedora Project</a></li>
<li><a href="https://wiki.cachyos.org/">CachyOS</a></li>
<li><a href="https://www.blender.org/">Blender</a></li>
</ul> </ul>
<p>
You can check out most of my contributions on <a href="https://github.com/Dormouse759/">my GitHub</a>
</p>
<h3> Cryptography </h3>
<p>
Cryptography is what keeps all of our data secure. My solutions don't
take security lightly. In any way you ever communicate with me, there
either already is some kind of cryptography invloved, or you can
request to validate my message using GPG. <b>Never</b> trust any
message from me that looks important, if it's not cryptographically
easy to verify.
</p>
<h3> Ethical software </h3>
<p>
Ethical software are programs that are written and deployed in such a way
that they have no way of containing any malicious code. All of the software
I recomment and/or provide here on my website are open-source programs.
</p>
<p>
Open-source
is the first fundamental stone of ethical software, it makes the source code
available to all programmers around the world so they can download, modify, redistribute
and check what the software is doing.
</p>
<p>
There are more ways to ensure that your software is ethical and even
<i>proprietary</i> software <b>may</b> be ethical. Read some of my
articles on my website (to be added) to learn what ethical software is.
</p>
<h3> </h3>
</div> </div>
{% endblock %} {% endblock %}

View file

@ -18,9 +18,9 @@
{% endblock %} {% endblock %}
</head> </head>
<body> <body onload="init()">
{# NAVBAR #} {# NAVBAR #}
<div class="navbar"> <section class="navbar" id="nav">
<a href="/"> <a href="/">
<div class="navbar-block"> <div class="navbar-block">
@ -39,8 +39,13 @@
Curriculum Vitae Curriculum Vitae
</div> </div>
</a> </a>
<div class="navbar-button"
onclick="navbar_click()"
>
>
</div>
</div> </section>
{# CONTENT #} {# CONTENT #}
{% block content %} {% block content %}
@ -65,5 +70,8 @@
</div> </div>
</div> </div>
</footer> </footer>
<script src="{% static "base_app/js/master.js" %}"></script>
</body> </body>
</html> </html>