Skip to content

Commit

Permalink
feat: added about me page
Browse files Browse the repository at this point in the history
  • Loading branch information
peterprototypes committed Oct 5, 2023
1 parent ff21eba commit e5043e8
Show file tree
Hide file tree
Showing 83 changed files with 782 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/about-me/3d-brd-viewer/after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/about-me/global-warning/1.Open feint.png
Binary file added content/about-me/global-warning/11.Gameplay.png
Binary file added content/about-me/global-warning/13.Gameplay.png
Binary file added content/about-me/global-warning/2.Main menu.png
Binary file added content/about-me/global-warning/3.Options.png
256 changes: 256 additions & 0 deletions content/about-me/index.md

Large diffs are not rendered by default.

Binary file added content/about-me/novella-clinic-peachtree/1.png
Binary file added content/about-me/novella-clinic-peachtree/2.png
Binary file added content/about-me/novella-clinic-peachtree/5.png
Binary file added content/about-me/novella-clinic-peachtree/8.png
Binary file added content/about-me/scene-speak/1.Home screen.png
Binary file added content/about-me/scene-speak/13.Info screen.png
Binary file added content/about-me/scene-speak/2.VSD library.png
Binary file added content/about-me/scene-speak/3.New VSD.png
Binary file added content/about-me/scene-speak/4.Edit VSD.png
Binary file added content/about-me/scene-speak/5.Photo sources.png
Binary file added content/about-me/scene-speak/8.Books.png
Binary file added content/about-me/scene-speak/9.New book.png
Binary file added content/about-me/stampii-ios/1.jpg
Binary file added content/about-me/stampii-ios/2.jpg
Binary file added content/about-me/stampii-ios/3.jpg
Binary file added content/about-me/stampii-ios/4.jpg
Binary file added content/about-me/stampii-ios/5.jpg
Binary file added content/about-me/stampii-ios/6.jpg
420 changes: 420 additions & 0 deletions static/css/photoswipe.css

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions static/style.css → static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,51 @@ main {
order: 1
}

/* About Me Page */

.about-page {
font-size: smaller;
}

.about-page ul,
.about-page ul ul {
padding-left: 15px;
margin: 0 0 1.5em 0;
}

.about-page h1 {
border-bottom: thin solid #cccccc;
}

.about-page h2 {
font-family: 'Roboto';
font-style: normal;
font-weight: bold;
color: white;
background-color: #bababa;
padding: 5px 15px;
display: flex;
justify-content: space-between;
align-items: center;
margin: 1.5em 0 0 0;
}

.about-page h2 em {
font-weight: normal;
font-size: smaller;
}

.about-page p {
margin-top: 1.5em;
}

.about-page code {
display: inline-block;
padding: 0px 6px;
border: thin solid #cccccc;
border-radius: 5px;
}

/* 404 */

.fof {
Expand Down
5 changes: 5 additions & 0 deletions static/js/photoswipe.umd.min.js

Large diffs are not rendered by default.

File renamed without changes.
49 changes: 49 additions & 0 deletions templates/about-me.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% extends "base.html" %}

{% block content %}
<div class="about-page">
{{ page.content | safe }}
</div>
{% endblock content %}

{% block scripts %}
<script src="/js/photoswipe.umd.min.js"></script>

{% set asset_metadata = [] %}
{% for asset in page.assets %}
{% if asset is matching("[.](jpg|png)$") %}
{% set meta = get_image_metadata(path=asset) %}
{% set_global asset_metadata = asset_metadata | concat(with=meta) %}
{% endif %}
{% endfor %}

<script type="text/javascript">
const assets = JSON.parse('{{ page.assets | json_encode() | safe }}');
const asset_metadata = JSON.parse('{{ asset_metadata | json_encode() | safe }}');

window.onload = function () {
let elements = document.getElementsByClassName("gallery");

for (let i = 0; i < elements.length; i++) {
elements[i].onclick = function (e) {
const id = e.target.dataset.id;

const pswp = new PhotoSwipe({
dataSource: assets.map((src, index) => ({
src: src,
...asset_metadata[index]
})).filter(({ src }) => src.startsWith("/about-me/" + id))
});

pswp.init();

return false;
}
}
};
</script>
{% endblock scripts %}

{% block stylesheets %}
<link rel="stylesheet" href="/css/photoswipe.css">
{% endblock stylesheets %}
10 changes: 7 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@
%}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}">
{% endif %}

<link rel="stylesheet" type="text/css" href="/style.css">
<link rel="stylesheet" type="text/css" href="/css/style.css">
{% block stylesheets %} {% endblock %}
</head>


<body>
<main class="{% if not current_path or current_path == '/' %}index-page{% endif %}">
<main class="{% if not current_path or current_path == '/' or current_path == '/about-me/' %}index-page{% endif %}">
<aside class="me">
<div class="profile-photo-wrapper">
<img src="/img/ProfilePhoto-400.jpg" alt="Peter Todorov Profile Picture" class="profile-photo" />
Expand Down Expand Up @@ -65,6 +67,7 @@ <h1><a href="/">Peter Todorov</a></h1>
inaccuracies
or wish to contribute, don't hesitate to open a PR on GitHub or drop me an email.
</p>
<a href="/about-me">About Me</a>
</div>
</aside>
<div class="border"></div>
Expand All @@ -75,7 +78,8 @@ <h1><a href="/">Peter Todorov</a></h1>

{% include "partials/github-corner.html" %}

<script src="/script.js"></script>
{% block scripts %} {% endblock %}
<script src="/js/script.js"></script>
</body>

</html>

0 comments on commit e5043e8

Please sign in to comment.