|
@@ -13,9 +13,11 @@ import pastwork from "../assets/apps/pastWork.png";
|
|
|
import projects from "../assets/apps/projects.png";
|
|
import projects from "../assets/apps/projects.png";
|
|
|
import blog from "../assets/apps/blog.png";
|
|
import blog from "../assets/apps/blog.png";
|
|
|
import contact from "../assets/apps/contact.png";
|
|
import contact from "../assets/apps/contact.png";
|
|
|
|
|
+
|
|
|
import Redirect from "../components/redirect.astro";
|
|
import Redirect from "../components/redirect.astro";
|
|
|
|
|
+import Contact from "../components/contact.astro"
|
|
|
|
|
+import Projects from "../components/projects.astro"
|
|
|
|
|
|
|
|
-import Contact from "../components/contact.astro";
|
|
|
|
|
|
|
|
|
|
function dragElement(elmnt) {
|
|
function dragElement(elmnt) {
|
|
|
var pos1 = 0,
|
|
var pos1 = 0,
|
|
@@ -108,7 +110,7 @@ function updateRedirectMessage() {
|
|
|
const messageElement = redirectElement.querySelector("h2");
|
|
const messageElement = redirectElement.querySelector("h2");
|
|
|
messageElement.innerHTML = `You are about to be redirected to <a class="redirUrl" style=" cursor: pointer;
|
|
messageElement.innerHTML = `You are about to be redirected to <a class="redirUrl" style=" cursor: pointer;
|
|
|
color: blue;
|
|
color: blue;
|
|
|
- text-decoration: underline; " href="${redirectUrl}"">${redirectUrl}</a>`;
|
|
|
|
|
|
|
+ text-decoration: underline; " href="${redirectUrl}"">${redirectUrl.replace("https://", "")}</a>`;
|
|
|
|
|
|
|
|
const buttonElement = redirectElement.querySelector("#okButton");
|
|
const buttonElement = redirectElement.querySelector("#okButton");
|
|
|
// open redirect url
|
|
// open redirect url
|
|
@@ -132,7 +134,6 @@ let apps: app[] = [
|
|
|
name: "Blog",
|
|
name: "Blog",
|
|
|
logo: blog.src,
|
|
logo: blog.src,
|
|
|
onclick: () => {
|
|
onclick: () => {
|
|
|
- // ignore
|
|
|
|
|
raiseUpSpec("redirect");
|
|
raiseUpSpec("redirect");
|
|
|
document.getElementById("redirect").style.display = "block";
|
|
document.getElementById("redirect").style.display = "block";
|
|
|
document.getElementById("redirect").dataset.redirecturl =
|
|
document.getElementById("redirect").dataset.redirecturl =
|
|
@@ -175,6 +176,14 @@ let apps: app[] = [
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|
|
+let projectsArr: project[] = [
|
|
|
|
|
+ {
|
|
|
|
|
+ name: "Blog",
|
|
|
|
|
+ link: "https://blog.simo.ng"
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+]
|
|
|
|
|
+
|
|
|
const row1Items = apps.filter((item) => item.row === 1);
|
|
const row1Items = apps.filter((item) => item.row === 1);
|
|
|
const row2Items = apps.filter((item) => item.row === 2);
|
|
const row2Items = apps.filter((item) => item.row === 2);
|
|
|
|
|
|
|
@@ -210,6 +219,8 @@ apps = apps.map((item) => {
|
|
|
<Contact />
|
|
<Contact />
|
|
|
<Taskbar />
|
|
<Taskbar />
|
|
|
|
|
|
|
|
|
|
+<Projects projects={projectsArr} />
|
|
|
|
|
+
|
|
|
<script define:vars={{ apps, clientFunctions }}>
|
|
<script define:vars={{ apps, clientFunctions }}>
|
|
|
for (func in clientFunctions) {
|
|
for (func in clientFunctions) {
|
|
|
eval(clientFunctions[func]);
|
|
eval(clientFunctions[func]);
|