Skip to content

Commit

Permalink
Projects kısmı bitti
Browse files Browse the repository at this point in the history
  • Loading branch information
mucahitdev committed Mar 11, 2022
1 parent e6d1b30 commit babfdc3
Show file tree
Hide file tree
Showing 9 changed files with 936 additions and 59 deletions.
858 changes: 811 additions & 47 deletions blog/package-lock.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.8.2",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.5.0",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.3",
"@testing-library/user-event": "^13.5.0",
Expand Down Expand Up @@ -41,5 +44,10 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"autoprefixer": "^10.4.2",
"postcss": "^8.4.8",
"tailwindcss": "^3.0.23"
}
}
6 changes: 6 additions & 0 deletions blog/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
3 changes: 2 additions & 1 deletion blog/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@

.img-thumbnail:hover {
transform: scale(1.5);
}
}

35 changes: 35 additions & 0 deletions blog/src/component/Project.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react';
const Project = ({name, description, demo, code, image, tags}) => {
return (
<div className="sm:w-3/6 rounded lg:w-96 p-4 max-w-sm">
<div className="h-full overflow-hidden shadow-lg ">
<img className="w-full h-2/6 hover:scale-125 hover:translate-x-4 hover:skew-y-3 transition-all" src={image} alt={name} />
<div className="px-6 h-2/6">
<div className="font-bold text-xl mb-1"> {name} </div>
<p className="text-gray-700 text-base">
{description}
</p>
</div>
<div className="px-1 mt-2 h-1/6">
{
tags.map((tag, id)=> (<span key={id} className="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-1 mb-1"> {tag.tagName} </span>))
}
</div>
<div className='pt-auto px-3 h-1/6'>
<a href={demo} target="_blank" rel="noopener noreferrer">
<button className='bg-blue-100 hover: w-1/2 py-1 mb-2 rounded-l-lg hover:scale-110 hover:bg-blue-200 text-black transition-all'>
Demo
</button>
</a>
<a href={code}>
<button className='bg-orange-100 w-1/2 py-1 mb-2 rounded-r-lg hover:scale-110 hover:bg-orange-200 text-black transition-all'>
Code
</button>
</a>
</div>
</div>
</div>
)
}

export default Project
65 changes: 62 additions & 3 deletions blog/src/component/Projects.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,68 @@
import React from 'react'
import Project from './Project'

function Projects() {
return (
<div>Projects</div>
)
const projectsData = [
{
name: "Nöbetçi Eczane",
description: "Türkiyedeki Nöbetçi Eczaneleri İl ve İlçe bazlı bulabilceğiniz Uygulama.",
demo: "https://nobetci-eczaneniz.netlify.app",
code: "https://github.com/mucahitkok/nobetci-eczane",
image: "https://serving.photos.photobox.com/10561426f7732549d3d1a2fb67c4e2ed564eb01ac71800fea91f20bbaedcc0002a51da91.jpg",
tags: [
{
tagName: '#react'
},
{
tagName: '#bootstrap'
},
{
tagName: '#api'
}
]
},
{
name: "Blog",
description: "Kişisel blog sayfam.",
demo: "https://mucahitkok.netlify.app",
code: "https://github.com/mucahitkok/my-blog",
image: "https://serving.photos.photobox.com/026185021cf06a0725c119ae2b3cf6348d528fc149fad009bb2d7936c3818e14f010389e.jpg",
tags: [
{
tagName: '#react'
},
{
tagName: '#bootstrap'
},
]
},
{
name: "Colour palette",
description: "Renk paletleri üretip yayınlayabilir,Başkalarının paletlerinide görebilirsiniz.",
demo: "https://color-palet.vercel.app",
code: "https://github.com/mucahitkok/color-flipper-react",
image: "https://serving.photos.photobox.com/587576862d1e852132899a7e65b7feb3f40a0a4c73177d8b98841fae62e8b602d1f47ccc.jpg",
tags: [
{
tagName: '#react'
},
{
tagName: '#tailwind'
},
{
tagName: '#firebase'
}
]
}
]
return (
<div className='flex flex-wrap justify-around mt-28' >
{
projectsData.map((item, id) => (<Project key={id} {...item} />))
}

</div>
)
}

export default Projects
Empty file removed blog/src/component/dark.js
Empty file.
11 changes: 3 additions & 8 deletions blog/src/index.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@tailwind base;
@tailwind components;
@tailwind utilities;

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
Expand Down
9 changes: 9 additions & 0 deletions blog/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}

0 comments on commit babfdc3

Please sign in to comment.