Skip to content

Commit

Permalink
Add Skills, Icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehmetali345Dev committed Aug 3, 2021
1 parent 1b72fa5 commit 78070a9
Show file tree
Hide file tree
Showing 13 changed files with 103 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/assets/icons/c.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/dotnet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/figma.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/html.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/javascript.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/nodejs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/nuxtjs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/sass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/assets/icons/vuejs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions src/assets/icons/windicss.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/components/Skills.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<div class="flex space-x-2 w-full p-3 items-center bg-gray-300 rounded-xl dark:(bg-gray-800 text-gray-100)">
<icon :name="getIconName" class="w-10 h-10" />
<h1>{{ skill }}</h1>
</div>
</template>

<script>
export default {
props: {
skill: {
type: String,
required: true,
},
icon: {
type: String,
required: false,
default: null,
},
},
computed: {
getIconName() {
if (this.icon) return this.icon;
else
return (
this.skill?.toLowerCase()?.replace(/[^a-zA-Z]/g, "")
);
},
},
};
</script>
<style>
</style>
31 changes: 30 additions & 1 deletion src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,26 @@
<div class="grid justify-items-center dark:bg-gray-900">
<Navbar />
<AboutMe />
<section id="skills" class="grid w-8/12 justify-items-center">
<h2 class="mt-10 text-xl font-semibold text-gray-900 dark:text-gray-100">
My Skills
</h2>
<div class="grid grid-cols-5 skills mt-4 gap-2">
<Skills
v-for="(skill, index) in skills"
:key="`skill-${index}`"
:skill="skill"
/>
</div>
</section>
<section class="grid justify-items-center w-10/12" id="projects">
<h2 class="mt-10 text-xl font-semibold text-gray-900 dark:text-gray-100">
My Projects
</h2>
<div class="mx-2 grid gap-2 mt-4">
<div class="grid gap-4 w-full justify-items-center sm:grid-cols-3 projects">
<div
class="grid gap-4 w-full justify-items-center sm:grid-cols-3 projects"
>
<ProjectCard
v-for="(project, index) in getProjects.featured"
:key="`project-featured-${index}`"
Expand Down Expand Up @@ -70,6 +84,18 @@ export default {
link: "/",
},
],
skills: [
"Vue.js",
"Javascript",
"C#",
"Nuxt.js",
"WindiCSS",
"Node.js",
"Sass",
"Dotnet",
"Github",
"Figma",
],
};
},
computed: {
Expand All @@ -91,5 +117,8 @@ html {
.projects {
@apply sm:grid-cols-2;
}
.skills {
@apply sm:grid-cols-3;
}
}
</style>

1 comment on commit 78070a9

@vercel
Copy link

@vercel vercel bot commented on 78070a9 Aug 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.