Skip to content

Commit

Permalink
Merge pull request #63 from btkcodedev/staging
Browse files Browse the repository at this point in the history
fix intro, update version
  • Loading branch information
btkcodedev authored Aug 28, 2024
2 parents c8bfe42 + 56051f6 commit 73542cd
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
7 changes: 5 additions & 2 deletions components/GridItems/Languages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Languages = ({ item }: { item: CombinedInterfaces }) => {
const setCode = (language: LanguageItem) => {
let codeText = "";
switch (language.title) {
case LanguageTitle.Javascript:
case LanguageTitle.Typescript:
codeText = LanguageCode.JavascriptHelloWorld;
break;
case LanguageTitle.Django:
Expand All @@ -42,6 +42,9 @@ const Languages = ({ item }: { item: CombinedInterfaces }) => {
case LanguageTitle.YAML:
codeText = LanguageCode.YAMLHelloWorld;
break;
case LanguageTitle.JACKIE:
codeText = LanguageCode.JackieHelloWorld;
break;
default:
codeText = "Hello World";
}
Expand Down Expand Up @@ -69,7 +72,7 @@ const Languages = ({ item }: { item: CombinedInterfaces }) => {
>
<div className="flex flex-col w-full h-full overflow-hidden rounded-3xl">
{displayText.length > 0 && (
<div className="flex items-center w-full h-full overflow-hidden p-8 justify-center align-center">
<div className="flex items-center w-full h-full overflow-hidden p-8 justify-center align-center mt-56">
<motion.div
className="z-10 bg-white dark:bg-neutral-900 flex items-start p-2 text-sm font-medium text-black dark:text-white h-full rounded-lg w-full"
initial={{ opacity: 0.5 }}
Expand Down
10 changes: 6 additions & 4 deletions components/Types/enum.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ export enum LeftPanelOptions {
}

export enum LanguageTitle {
Typescript = "Typescript",
Javascript = "Javascript",
Python = "Python",
Nodejs = "Node.js",
Django = "Django",
YAML = "YAML",
JACKIE = "Jackie Chan Movies",
}

export enum LanguageCode {
JavascriptHelloWorld = `const greetWithDelay = ms =>
JavascriptHelloWorld = `const greetWithDelay = ms:number =>
new Promise(resolve => setTimeout(
() => resolve("Hello, World!"), ms));
greetWithDelay(1000).then(
msg => console.log(msg));`,
................`,
PythonHelloWorld = `def hello_world():
print("Hello, World!")
Expand All @@ -41,4 +41,6 @@ export enum LanguageCode {
def hello_world(request):
return HttpResponse("Hello, World!")`,
YAMLHelloWorld = `message: "Hello, World!"`,
JackieHelloWorld = `Born in Hong Kong, Already a Dragon :)
He is/was/will always the legend... <3`,
}
15 changes: 5 additions & 10 deletions config/site-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,13 @@ const GridItems: GridItemInterface[] = [
{
layout: "2x4",
type: "language",
title: "Coding preferences",
title: "Things I Love",
image: "/background.jpg",
languages: [
{
title: "Javascript",
title: "Typescript",
link: "#",
languageImage: "/javascript.jpg"
languageImage: "/typescript.jpg"
},
{
title: "Python",
Expand All @@ -373,14 +373,9 @@ const GridItems: GridItemInterface[] = [
languageImage: "/nodejs.jpg"
},
{
title: "Django",
link: "#",
languageImage: "/django.jpg"
},
{
title: "YAML",
title: "Jackie Chan Movies",
link: "#",
languageImage: "/yaml.jpg"
languageImage: "/jackie.jpg"
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "btkcodedev-portfolio",
"version": "0.1.0",
"version": "0.2.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
Binary file added public/jackie.jpg
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 public/typescript.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 73542cd

Please sign in to comment.