Skip to content

Commit

Permalink
deploy: 86ef693
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamar committed Feb 19, 2024
1 parent d1bfdfb commit f4e5ce1
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 11 deletions.
2 changes: 1 addition & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dheereshagrwal/colored-icons@latest/src/app/ci.min.css">
<link rel="stylesheet" href="/static/page.css">
<link rel="stylesheet" href="/static/css/page.css">

<script>/* Adapted from https://stackoverflow.com/a/26230865/21322342 */document.addEventListener("DOMContentLoaded",(e=>Array.from(document.querySelectorAll("pre>code")).forEach((e=>{let t,n=e.textContent.split("\n");""===n[0]&&n.shift();let r=null!==(t=/^[\s\t]+/.exec(n[0]))?t[0]:null;r&&(n=n.map((function(e){return(e=e.replace(r,"")).replace(/\t/g," ")})),e.textContent=n.join("\n").trim())}))));</script>
<!-- I haven't found a way to escape html in code elements-->
Expand Down
2 changes: 1 addition & 1 deletion base.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dheereshagrwal/colored-icons@latest/src/app/ci.min.css">
<link rel="stylesheet" href="/static/page.css">
<link rel="stylesheet" href="/static/css/page.css">

<script>/* Adapted from https://stackoverflow.com/a/26230865/21322342 */document.addEventListener("DOMContentLoaded",(e=>Array.from(document.querySelectorAll("pre>code")).forEach((e=>{let t,n=e.textContent.split("\n");""===n[0]&&n.shift();let r=null!==(t=/^[\s\t]+/.exec(n[0]))?t[0]:null;r&&(n=n.map((function(e){return(e=e.replace(r,"")).replace(/\t/g," ")})),e.textContent=n.join("\n").trim())}))));</script>
<!-- I haven't found a way to escape html in code elements-->
Expand Down
2 changes: 1 addition & 1 deletion blog/hsm.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dheereshagrwal/colored-icons@latest/src/app/ci.min.css">
<link rel="stylesheet" href="/static/page.css">
<link rel="stylesheet" href="/static/css/page.css">

<script>/* Adapted from https://stackoverflow.com/a/26230865/21322342 */document.addEventListener("DOMContentLoaded",(e=>Array.from(document.querySelectorAll("pre>code")).forEach((e=>{let t,n=e.textContent.split("\n");""===n[0]&&n.shift();let r=null!==(t=/^[\s\t]+/.exec(n[0]))?t[0]:null;r&&(n=n.map((function(e){return(e=e.replace(r,"")).replace(/\t/g," ")})),e.textContent=n.join("\n").trim())}))));</script>
<!-- I haven't found a way to escape html in code elements-->
Expand Down
2 changes: 1 addition & 1 deletion blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dheereshagrwal/colored-icons@latest/src/app/ci.min.css">
<link rel="stylesheet" href="/static/page.css">
<link rel="stylesheet" href="/static/css/page.css">

<script>/* Adapted from https://stackoverflow.com/a/26230865/21322342 */document.addEventListener("DOMContentLoaded",(e=>Array.from(document.querySelectorAll("pre>code")).forEach((e=>{let t,n=e.textContent.split("\n");""===n[0]&&n.shift();let r=null!==(t=/^[\s\t]+/.exec(n[0]))?t[0]:null;r&&(n=n.map((function(e){return(e=e.replace(r,"")).replace(/\t/g," ")})),e.textContent=n.join("\n").trim())}))));</script>
<!-- I haven't found a way to escape html in code elements-->
Expand Down
2 changes: 1 addition & 1 deletion editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dheereshagrwal/colored-icons@latest/src/app/ci.min.css">
<link rel="stylesheet" href="/static/page.css">
<link rel="stylesheet" href="/static/css/page.css">

<script>/* Adapted from https://stackoverflow.com/a/26230865/21322342 */document.addEventListener("DOMContentLoaded",(e=>Array.from(document.querySelectorAll("pre>code")).forEach((e=>{let t,n=e.textContent.split("\n");""===n[0]&&n.shift();let r=null!==(t=/^[\s\t]+/.exec(n[0]))?t[0]:null;r&&(n=n.map((function(e){return(e=e.replace(r,"")).replace(/\t/g," ")})),e.textContent=n.join("\n").trim())}))));</script>
<!-- I haven't found a way to escape html in code elements-->
Expand Down
20 changes: 19 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dheereshagrwal/colored-icons@latest/src/app/ci.min.css">
<link rel="stylesheet" href="/static/page.css">
<link rel="stylesheet" href="/static/css/page.css">

<script>/* Adapted from https://stackoverflow.com/a/26230865/21322342 */document.addEventListener("DOMContentLoaded",(e=>Array.from(document.querySelectorAll("pre>code")).forEach((e=>{let t,n=e.textContent.split("\n");""===n[0]&&n.shift();let r=null!==(t=/^[\s\t]+/.exec(n[0]))?t[0]:null;r&&(n=n.map((function(e){return(e=e.replace(r,"")).replace(/\t/g," ")})),e.textContent=n.join("\n").trim())}))));</script>
<!-- I haven't found a way to escape html in code elements-->
Expand Down Expand Up @@ -41,6 +41,24 @@ <h1>Hello World</h1>
<p>Some text... more text... <code>foo()</code> more text</p>
<p>Size comparisons: x<code>x</code></p>
<p>Normal Text <b>Strong text</b></p>
<div class="row">
<div class="card">
<div class="card-contents">
<h3 class="center">Card title</h3>
<img class="img-pretty" src="/static/img/ninjamar.png" width="200px" height="200px">
<p class="center">This is a card</p>
</div>
</div>
<a href="#foo" style="text-decoration: none;">
<div class="card">
<div class="card-contents">
<h3 class="center">Card title</h3>
<img class="img-pretty" src="/static/img/ninjamar.png" width="200px" height="200px">
<p class="center">This is a card with a link</p>
</div>
</div>
</a>
</div>

<footer class="footer">
<hr>
Expand Down
22 changes: 18 additions & 4 deletions projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Nunito:ital,wght@0,400;0,700;1,400;1,700&display=swap">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dheereshagrwal/colored-icons@latest/src/app/ci.min.css">
<link rel="stylesheet" href="/static/page.css">
<link rel="stylesheet" href="/static/css/page.css">

<script>/* Adapted from https://stackoverflow.com/a/26230865/21322342 */document.addEventListener("DOMContentLoaded",(e=>Array.from(document.querySelectorAll("pre>code")).forEach((e=>{let t,n=e.textContent.split("\n");""===n[0]&&n.shift();let r=null!==(t=/^[\s\t]+/.exec(n[0]))?t[0]:null;r&&(n=n.map((function(e){return(e=e.replace(r,"")).replace(/\t/g," ")})),e.textContent=n.join("\n").trim())}))));</script>
<!-- I haven't found a way to escape html in code elements-->
Expand All @@ -26,9 +26,23 @@
</nav>

<h1>Projects</h1>
<ul>
<li><a href="/projects/note.html">Note Taking App</a></li>
</ul>
<!-- Each project is in groups of two, for each row-->


<div class="row">

<a href="/projects/note.html" style="text-decoration: none;">
<div class="card">
<div class="card-contents">
<h3 class="center">Note taking app</h3>
<img class="img-pretty" src="/static/projects/img/note.png" style="width: auto; max-height: 200px;">
<p class="center">An app to take notes</p>
</div>
</div>
</a>

</div>


<footer class="footer">
<hr>
Expand Down
2 changes: 1 addition & 1 deletion projects/note.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Note</title>
<script type="module" src="/static/projects/note.js"></script>
<script type="module" src="/static/projects/js/note.js"></script>
</head>
<body style="background-color: #dbdada;">
<div id="app"></div>
Expand Down
25 changes: 25 additions & 0 deletions static/page.css → static/css/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,33 @@ hr { /* Horizontal rules are defined in semantic terms */
float: right;
margin-left: 1%;
}

/* Icons */
/* Don't want icons to be selectable by default */
.ci {
user-select: none;
}

/* Cards */
.card {
background: var(--light-secondary-color);
border-radius: 10px;
margin: 10px;
}
/* Inner section of cards */
.card-contents {
padding: 10px;
}

/* Rows */
.row {
display: flex;
flex-direction: row;
justify-content: space-evenly;
overflow: wrap;
}

/* Other */
.center {
text-align: center;
}
File renamed without changes
Binary file added static/projects/img/note.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.

0 comments on commit f4e5ce1

Please sign in to comment.