data external in js

This commit is contained in:
Yatima committed 2020-07-22 01:11:52 +02:00
1 parent e4e38135aa
commit 5e7977f2cf
2 files changed
+172 -154

No files matched your search

+65
View File
@@ -0,0 +1,65 @@
window.onload = function () {
projects = [
{
title: "Match 3",
image: "https://raw.githubusercontent.com/yatima1460/Match3/master/docs/demo.gif",
url: "https://github.com/yatima1460/Match3",
text: "I shoved inside a game demo written in modern C++17 and SDL2 as much functional programming as possible as a proof of concept"
},
{
title: "CGLMath",
image: "quaternion.webp",
url: "https://github.com/yatima1460/CGLMath",
text: "I hate glm with a passion so I wrote a simpler C11 library for OpenGL math: Quaternions, Matrices, Vectors..."
},
{
title: "A*",
image: "https://raw.githubusercontent.com/yatima1460/AStar/master/docs/astar.png",
url: "https://github.com/yatima1460/AStar",
text: "When devs develop A* they don't consider cache-misses and CPU branch prediction, this instead does, also has better heuristics"
},
{
title: "Table And Chairs",
image: "https://github.com/yatima1460/TableAndChairs/raw/master/docs/tableandchairs.webm?sanitize=true",
url: "https://github.com/yatima1460/TableAndChairs",
text: "A dynamically resizable table with chairs in C++ running on Unreal Engine 4.22, useful for Archviz I think"
},
{
title: "Drill",
image: "https://raw.githubusercontent.com/yatima1460/Drill/master/Assets/icon.svg?sanitize=true",
url: "https://drill.software",
text: "Search files and apps in file systems without using indexing, but optimized crawling"
},
{
title: "Gestalt Engine",
image: "gestalt_engine.jpg",
url: "",
text: "My own engine written in C11 and C++17, SDL2, OpenGL 4.x with forward rendering and shadow mapping. Not complete yet."
},
{
title: "Mandelbrot",
image: "mandelbrot.png",
url: "",
text: "C++17 and SDL2 to draw Mandelbrot. Not complete yet."
}
];
let projects_div = document.getElementById("projects");
projects.forEach(project => {
projects_div.innerHTML +="<a class=\"project\" href=\"" + project.url + "\" target=\"_blank\" rel=\"noopener\">\
<h2>"+ project.title + "</h2>\
<div class=\"project-description\">\
<img src=\""+ project.image + "\">\
<div class=\"project-text\">"+ project.text + "\
<p class=\"fakelink\">"+ project.url + "</p>\
</div>\
</div>\
</a>"
});
}
+107 -154
View File
@@ -1,164 +1,117 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Federico Santamorena @yatima1460</title>
<!-- Meta information -->
<meta charset="utf-8">
<link rel="canonical" href="https://yatima1460.me/">
<meta name="description" content="Passionate C/C++ developer with a diverse IT skillset">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ee4bb5">
<!-- Open Graph Meta Info -->
<meta property="og:title" content="Federico Santamorena (yatima1460)">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_GB">
<meta property="og:image" content="avatar.webp">
<!-- Roboto Font -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap" rel="stylesheet">
<!-- Favicon -->
<link rel="icon" href="favicon.png">
<!-- Global CSS style -->
<link rel="stylesheet" href="main.css">
</head>
<body>
<div class="content">
<div class="introduction">
<div class="presentation">
<h1>Hello everyone!</h1>
<p>
My name is Federico Santamorena, I'm a
<head>
<title>Federico Santamorena @yatima1460</title>
<!-- Meta information -->
<meta charset="utf-8">
<link rel="canonical" href="https://yatima1460.me/">
<meta name="description" content="Passionate C/C++ developer with a diverse IT skillset">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ee4bb5">
<!-- Open Graph Meta Info -->
<meta property="og:title" content="Federico Santamorena (yatima1460)">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_GB">
<meta property="og:image" content="avatar.webp">
<!-- Roboto Font -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap" rel="stylesheet">
<!-- Favicon -->
<link rel="icon" href="favicon.png">
<!-- Global CSS style -->
<link rel="stylesheet" href="main.css">
</head>
<script src="data.js"></script>
<body>
<div class="content">
<div class="introduction">
<div class="presentation">
<h1>Hello everyone!</h1>
<p>
My name is Federico Santamorena, I'm a
C/C++ developer and a
<a href="https://twitter.com/hashtag/ProgrammingSocks" target="_blank" rel="noopener">#programmingsocks🧦</a> wearer.
</p>
<p>
I work in Activision-Blizzard @
<a href="https://king.com" target="_blank" rel="noopener">King.com</a> in
<a href="https://www.google.com/maps/place/Malm%C3%B6,+Sweden" target="_blank" rel="noopener">
Malmö
<a href="https://twitter.com/hashtag/ProgrammingSocks" target="_blank"
rel="noopener">#programmingsocks🧦</a> wearer.
</p>
<p>
I work in Activision-Blizzard @
<a href="https://king.com" target="_blank" rel="noopener">King.com</a> in
<a href="https://www.google.com/maps/place/Malm%C3%B6,+Sweden" target="_blank" rel="noopener">
Malmö
🇸🇪
</a>
and then I waste my free time for some open source thingies and projects, here is the
</a>
and then I waste my free time for some open source thingies and projects, here is the
most relevant stuff:
</p>
</div>
<div class="avatar-zone">
<div class="avatar-square">
<img class="avatar-real" src="avatar.webp">
<img class="avatar-trans-flag" src="trans-flag.webp">
</div>
<div class="social-icons">
<a href="https://github.com/yatima1460" target="_blank" rel="noopener">
<img src="social-icons/github.png" alt="github">
</a>
<a href="https://www.linkedin.com/in/yatima1460/" target="_blank" rel="noopener">
<img src="social-icons/linkedin.png" alt="linkedin">
</a>
<a href="https://twitter.com/yatima1460" target="_blank" rel="noopener">
<img src="social-icons/twitter.png" alt="twitter">
</a>
<a href="https://www.instagram.com/yatima1460/" target="_blank" rel="noopener">
<img src="social-icons/instagram.png" alt="instagram">
</a>
<a href="skype:live:yatima1460?chat">
<img src="social-icons/skype.png" alt="skype:live:yatima1460">
</a>
<a href="mailto:contact@yatima1460.me">
<img src="social-icons/email.png" alt="contact@yatima1460.me">
</a>
</div>
</div>
</p>
</div>
<div class="stuff">
<a
class="project"
href="https://github.com/yatima1460/Match3"
target="_blank"
rel="noopener"
>
<h2>Match 3</h2>
<div class="project-description">
<img src="https://raw.githubusercontent.com/yatima1460/Match3/master/docs/demo.gif">
<div class="project-text">
I shoved inside a game demo written in modern C++17 and SDL2 as much functional programming
as
possible
as a proof of concept
<p class="fakelink">https://github.com/yatima1460/Match3</p>
</div>
</div>
</a>
<a class="project" href="https://github.com/yatima1460/CGLMath" target="_blank" rel="noopener">
<h2>CGLMath</h2>
<div class="project-description">
<img src="quaternion.webp">
<div class="project-text">
I hate glm with a passion so I wrote a simpler C11 library for OpenGL math: Quaternions,
Matrices,
Vectors...
<p class="fakelink">https://github.com/yatima1460/CGLMath</p>
</div>
</div>
</a>
<div class="project">
<h2>A*</h2>
<div class="project-description">
<img src="https://raw.githubusercontent.com/yatima1460/AStar/master/docs/astar.png">
<p>
When devs develop A* they don't consider cache-misses and CPU branch prediction, this instead
does, also has better heuristics
<a href="https://github.com/yatima1460/AStar" target="_blank" rel="noopener">https://github.com/yatima1460/AStar</a>
</p>
</div>
<div class="avatar-zone">
<div class="avatar-square">
<img class="avatar-real" src="avatar.webp">
<img class="avatar-trans-flag" src="trans-flag.webp">
</div>
<div class="project">
<h2>
Table And Chairs
</h2>
<div class="project-description">
<img src="https://github.com/yatima1460/TableAndChairs/raw/master/docs/tableandchairs.webm?sanitize=true">
<p>
A dynamically resizable table with chairs in C++ running on Unreal Engine 4.22, useful for
Archviz I think
<a href="https://github.com/yatima1460/TableAndChairs" target="_blank" rel="noopener">https://github.com/yatima1460/TableAndChairs</a>
</p>
</div>
</div>
<div class="project">
<h2>Drill</h2>
<div class="project-description">
<img src="https://raw.githubusercontent.com/yatima1460/Drill/master/Assets/icon.svg?sanitize=true">
<p>
Search files and apps in file systems without using indexing, but optimized crawling
<a href="https://drill.software" target="_blank" rel="noopener">https://drill.software</a>
<a href="https://github.com/yatima1460/Drill" target="_blank" rel="noopener">https://github.com/yatima1460/Drill</a>
</p>
</div>
</div>
<div class="project">
<h2>Gestalt Engine</h2>
<div class="project-description">
<img src="gestalt_engine.jpg">
<p>
My own engine written in C11 and C++17, SDL2, OpenGL 4.x with forward rendering and shadow
mapping.
Not complete yet.
</p>
</div>
</div>
<div class="project">
<h2>Mandelbrot</h2>
<div class="project-description">
<img src="mandelbrot.png">
<p>
C++17 and SDL2 to draw Mandelbrot. Not complete yet.
<!-- <a href="https://github.com/yatima1460/Mandelbrot" target="_blank"
rel="noopener">https://github.com/yatima1460/Mandelbrot</a> -->
</p>
</div>
<div class="social-icons">
<a href="https://github.com/yatima1460" target="_blank" rel="noopener">
<img src="social-icons/github.png" alt="github">
</a>
<a href="https://www.linkedin.com/in/yatima1460/" target="_blank" rel="noopener">
<img src="social-icons/linkedin.png" alt="linkedin">
</a>
<a href="https://twitter.com/yatima1460" target="_blank" rel="noopener">
<img src="social-icons/twitter.png" alt="twitter">
</a>
<a href="https://www.instagram.com/yatima1460/" target="_blank" rel="noopener">
<img src="social-icons/instagram.png" alt="instagram">
</a>
<a href="skype:live:yatima1460?chat">
<img src="social-icons/skype.png" alt="skype:live:yatima1460">
</a>
<a href="mailto:contact@yatima1460.me">
<img src="social-icons/email.png" alt="contact@yatima1460.me">
</a>
</div>
</div>
</div>
</body>
</html>
<div id="projects" class="stuff">
<div class="project">
<h2></h2>
<div class="project-description">
<img src="">
<p>
<a href="" target="_blank" rel="noopener">https://drill.software</a>
<a href="https://github.com/yatima1460/Drill" target="_blank"
rel="noopener">https://github.com/yatima1460/Drill</a>
</p>
</div>
</div>
<div class="project">
<h2></h2>
<div class="project-description">
<img src="">
<p>
</p>
</div>
</div>
<div class="project">
<h2></h2>
<div class="project-description">
<img src="">
<p>
<!-- <a href="https://github.com/yatima1460/Mandelbrot" target="_blank"
rel="noopener">https://github.com/yatima1460/Mandelbrot</a> -->
</p>
</div>
</div> -->
</div>
</div>
</body>
</html>