diff --git a/apps.config.js b/apps.config.js index 567b380d..6437403a 100644 --- a/apps.config.js +++ b/apps.config.js @@ -90,6 +90,27 @@ const apps = [ desktop_shortcut: true, screen: displayGedit, }, + { + id: "github", + title: "GitHub", + icon: './themes/Yaru/apps/github.png', + disabled: false, + favourite: false, + desktop_shortcut: true, + isExternalApp: true, + url: "https://github.com/vivek9patel", + screen: () => {}, + }, + { + id: "tars", + title: "Ask Tars", + icon: './themes/Yaru/apps/tars.svg', + disabled: false, + favourite: false, + desktop_shortcut: true, + isExternalApp: true, + url: "https://www.vivek9patel.com/tars" + }, ] export default apps; \ No newline at end of file diff --git a/components/apps/vivek.js b/components/apps/vivek.js index 9266cd2d..e56a204c 100644 --- a/components/apps/vivek.js +++ b/components/apps/vivek.js @@ -153,7 +153,7 @@ function Education() {
GPA   4.0/4.0
  • -
    +
    Pandit Deendayal Energy University - PDEU
    2018 - 2022
    @@ -162,7 +162,7 @@ function Education() {
  • - Class 12th (GSEB) + Class 12th
    2016 - 2018
    Maths, Physics, Chemistry
    @@ -379,10 +379,7 @@ function Projects() { { (project.domains ? project.domains.map((domain, index) => { - const borderColorClass = `border-${tag_colors[domain]}` - const textColorClass = `text-${tag_colors[domain]}` - - return {domain} + return {domain} }) : null) diff --git a/components/base/ubuntu_app.js b/components/base/ubuntu_app.js index eee2ec17..8d9d9ca0 100644 --- a/components/base/ubuntu_app.js +++ b/components/base/ubuntu_app.js @@ -3,20 +3,32 @@ import React, { Component } from 'react' export class UbuntuApp extends Component { openApp = () => { - this.props.openApp(this.props.id); + if (this.props.isExternalApp && this.props.url) { + window.open(this.props.url, "_blank"); + } else { + this.props.openApp(this.props.id); + } } render() { return (
    - {"Ubuntu +
    + {"Ubuntu + {this.props.isExternalApp && ( + External Link + )} +
    {this.props.name} -
    ) } diff --git a/components/base/window.js b/components/base/window.js index 6dfc9774..b4c6f042 100644 --- a/components/base/window.js +++ b/components/base/window.js @@ -283,6 +283,7 @@ export class WindowMainScreen extends Component { } } componentDidMount() { + console.log("here", this.props.screen); setTimeout(() => { this.setState({ setDarkBg: true }); }, 3000); diff --git a/components/screen/desktop.js b/components/screen/desktop.js index 7f37cb6c..63017dc7 100644 --- a/components/screen/desktop.js +++ b/components/screen/desktop.js @@ -240,7 +240,9 @@ export class Desktop extends Component { name: app.title, id: app.id, icon: app.icon, - openApp: this.openApp + openApp: this.openApp, + isExternalApp: app.isExternalApp, + url: app.url } appsJsx.push( diff --git a/public/files/Vivek-Patel-Resume.pdf b/public/files/Vivek-Patel-Resume.pdf index d08bdd93..8fd09cfc 100644 Binary files a/public/files/Vivek-Patel-Resume.pdf and b/public/files/Vivek-Patel-Resume.pdf differ diff --git a/public/themes/Yaru/apps/github.png b/public/themes/Yaru/apps/github.png new file mode 100644 index 00000000..59e272a0 Binary files /dev/null and b/public/themes/Yaru/apps/github.png differ diff --git a/public/themes/Yaru/apps/tars.svg b/public/themes/Yaru/apps/tars.svg new file mode 100644 index 00000000..b90528f6 --- /dev/null +++ b/public/themes/Yaru/apps/tars.svg @@ -0,0 +1,31 @@ + + + +Created with Fabric.js 5.2.4 + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/themes/Yaru/status/arrow-up-right.svg b/public/themes/Yaru/status/arrow-up-right.svg new file mode 100644 index 00000000..6c231703 --- /dev/null +++ b/public/themes/Yaru/status/arrow-up-right.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/public/themes/Yaru/status/external-link.svg b/public/themes/Yaru/status/external-link.svg new file mode 100644 index 00000000..2e15239c --- /dev/null +++ b/public/themes/Yaru/status/external-link.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file