~mika/www.m1kadev.nl

18b16f1616f2ed25f6fd8cd28aa30876bae631fb — m1kadev 6 months ago f2dff80
add cool side message to lessen negative space
M bricks/base-header.html => bricks/base-header.html +1 -1
@@ 1,4 1,4 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/styles/base.css">
<script src="/scripts/ldbuilddata.js" defer></script>
\ No newline at end of file
<script src="/scripts/loadBuildData.js" defer></script>
\ No newline at end of file

M build.exs => build.exs +1 -1
@@ 90,7 90,7 @@ defmodule Builders do
  def fxg(input_path, template, bricks) do
    own_template =
      input_path
      |> String.replace_prefix("src", "templates/pages")
      |> String.replace_prefix("pages", "templates/pages")
      |> String.replace_suffix("fxg", "html")

    case File.read(own_template) do

R scripts/ldbuilddata.js => scripts/loadBuildData.js +0 -0
A scripts/showMotd.js => scripts/showMotd.js +10 -0
@@ 0,0 1,10 @@
const motdElement = document.getElementById("motd").children[0];

fetch("/static/motds").then(async rres => {
    const res = (await rres.text());
    const motds = res.split("\n").map(motd => motd.split("#", 2));
    let motd = motds[Math.floor(Math.random() * motds.length)];
    console.log(motd);
    motdElement.innerHTML = motd[0].trimEnd();
    motdElement.setAttribute("title", motd[1].trimStart());
});
\ No newline at end of file

A static/motds => static/motds +6 -0
@@ 0,0 1,6 @@
"what do you think success is?", asked the boy <br> "to love", said the mole # from "the boy, the mole, the fox and the horse", by charlie mackesy
let's go down to the bandstand on the pier / watch the drunks and lovers appear # from "sovereign light cafe", by keane, on the album strangeland
just buy cool things, you'll be 30 before you know it # thrift store employee, in spijkenisse, the netherlands
words are very unneccecary / they can only do harm # "enjoy the silence", by depeche mode, on violator
and all the fears you hold so dear / will turn to whisper in your ear # "duvet" by bôa, on twilight
when routine bites hard and ambitions are low # "love will tear us apart" by joy division, on the single of the same name
\ No newline at end of file

M styles/base.css => styles/base.css +11 -6
@@ 11,6 11,10 @@ html {
    margin: 0px;
}

body {
    display: flex;
}

h1 {
    margin: 0px;
}


@@ 39,10 43,9 @@ h1 {
#content {
    font-family: "Gothic A1", sans-serif;
    color: var(--txt-colour);
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100vw;
    width: 50vw;
    margin-left: auto;
    margin-right: auto;
}

main>h2 {


@@ 55,8 58,10 @@ main>p {

main {
    background-color: #00000080;
    width: 50vw;
    margin: auto;
    width: 60vw;
    position: absolute;
    left: 20vw;
    top: 0px;
    padding: 2em;
}


M styles/index.css => styles/index.css +2 -3
@@ 1,15 1,14 @@
#motd {
    position: absolute;
    color: var(--txt-colour);
    width: 100vw;
    font-family: "Space Grotesk", sans-serif;
}

#motd>h2 {
    position: relative;
    float: right;
    writing-mode: vertical-lr;
    writing-mode: vertical-rl;
    text-decoration: none;
    margin: 0;
    padding: .5em;
    height: 67vh;
}
\ No newline at end of file

M templates/base.html => templates/base.html +3 -2
@@ 11,6 11,9 @@
</head>

<body>

    {{ &navbar }}

    <div id="content">
        <main>
            {{ &fxg_content }}


@@ 19,8 22,6 @@
        </main>
    </div>

    {{ &navbar }}

</body>

</html>
\ No newline at end of file

M templates/pages/colophon.html => templates/pages/colophon.html +3 -1
@@ 10,6 10,9 @@
</head>

<body>

    {{ &navbar }}

    <div id="content">
        <main>
            {{ &fxg_content }}


@@ 18,7 21,6 @@
        </main>
    </div>

    {{ &navbar }}
</body>

</html>
\ No newline at end of file

M templates/pages/index.html => templates/pages/index.html +7 -5
@@ 8,15 8,16 @@
    {{ &highlight }}

    <script src="/static/rs.min.js"></script>
    <script src="/scripts/showMotd.js" defer></script>
    <link rel="stylesheet" href="/styles/index.css">

    <title>home - m1kadev</title>
</head>

<body>
    <div id="motd">
        <h2></h2>
    </div>

    {{ &navbar }}

    <div id="content">
        <main>
            {{ &fxg_content }}


@@ 25,8 26,9 @@
        </main>
    </div>

    {{ &navbar }}

    <div id="motd">
        <h2></h2>
    </div>
</body>

</html>
\ No newline at end of file

M templates/paste.html => templates/paste.html +3 -3
@@ 9,6 9,9 @@
</head>

<body>

    {{ &navbar }}

    <div id="content">
        <main>
            <h1>{{ filename }}</h1>


@@ 19,9 22,6 @@
            {{ &footer }}
        </main>
    </div>

    {{ &navbar }}

</body>

</html>
\ No newline at end of file

M templates/thoughts.html => templates/thoughts.html +3 -2
@@ 13,6 13,9 @@
</head>

<body>

    {{ &navbar }}

    <div id="content">
        <main>
            <h1>thoughts :3</h1>


@@ 22,8 25,6 @@
        </main>
    </div>

    {{ &navbar }}

</body>

</html>
\ No newline at end of file