Skip to content

Commit 119f1ef

Browse files
committed
İlk dosyalar guncellemesi
Update README.md Refactor Delete .DS_Store
1 parent 6dd8b87 commit 119f1ef

16 files changed

Lines changed: 84 additions & 39959 deletions

File tree

.DS_Store

-6 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Bu proje, create-react-app (CRA) kullanılarak oluşturuldu. Bu projenin çalı
1818
- [ ] Terminalden klonlayın
1919
- [ ] Projenin ana dizinine gidin
2020
- [ ] `npm install --no-audit` komutuyla bağımlılıkları indirin
21+
Eğer kurulumda hata alırsanız, v16.20.0'a [bütün sisteminize sıfırdan yükleme yaparak](https://nodejs.org/en/blog/release/v16.20.0) veya [NVM - "Node Version Manager"](https://github.com/nvm-sh/nvm) kullanarak node versiyonunuzu geri çekmenizi tavsiye ederiz. Bunu kullanırken NVM metodunda biraz zorlanmanız normaldir. Yine de yapabilirseniz, geliştirme ortamı kurulumunda, kariyerinizde karşılaşabileceğiniz en zor adımlardan birini tamamlamış olacaksınız.
2122
- [ ] `npm start` ile çalıştırın
2223
- [ ] Push commits: git push origin `main`.
2324

package-lock.json

Lines changed: 0 additions & 39872 deletions
This file was deleted.

src/App.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
*/
66

77
// State hook u import edin
8-
import React from 'react';
8+
import React from "react";
99

1010
// Gönderiler (çoğul!) ve AramaÇubuğu bileşenlerini import edin, çünkü bunlar App bileşeni içinde kullanılacak
1111
// sahteVeri'yi import edin
12-
import './App.css';
12+
import "./App.css";
1313

1414
const App = () => {
1515
// Gönderi nesneleri dizisini tutmak için "gonderiler" adlı bir state oluşturun, **sahteVeri'yi yükleyin**.
1616
// Artık sahteVeri'ye ihtiyacınız olmayacak.
1717
// Arama çubuğunun çalışması için , arama kriterini tutacak başka bir state'e ihtiyacımız olacak.
18-
19-
const gonderiyiBegen = gonderiID => {
18+
19+
const gonderiyiBegen = (gonderiID) => {
2020
/*
2121
Bu fonksiyon, belirli bir id ile gönderinin beğeni sayısını bir artırma amacına hizmet eder.
2222
@@ -31,7 +31,9 @@ const App = () => {
3131
};
3232

3333
return (
34-
<div className='App'>
34+
<div className="App">
35+
App Çalışıyor
36+
{/* Yukarıdaki metni projeye başladığınızda silin*/}
3537
{/* AramaÇubuğu ve Gönderiler'i render etmesi için buraya ekleyin */}
3638
{/* Her bileşenin hangi proplara ihtiyaç duyduğunu kontrol edin, eğer ihtiyaç varsa ekleyin! */}
3739
</div>
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
// MUÜ için bu dosyayı değiştirmenize gerek yok
22
import React from "react";
3-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4-
import { faInstagram } from '@fortawesome/free-brands-svg-icons';
5-
import { faHeart, faCircle, faCompass } from '@fortawesome/free-regular-svg-icons';
6-
import "./AramaÇubuğu.css";
3+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4+
import { faInstagram } from "@fortawesome/free-brands-svg-icons";
5+
import {
6+
faHeart,
7+
faCircle,
8+
faCompass,
9+
} from "@fortawesome/free-regular-svg-icons";
10+
import "./AramaCubugu.css";
711

8-
const AramaÇubuğu = (props) => {
12+
const AramaCubugu = (props) => {
913
return (
1014
<div className="search-bar-wrapper">
1115
<div className="social">
1216
<FontAwesomeIcon icon={faInstagram} />
1317
</div>
1418
<form className="search-form">
15-
<input
16-
type="text"
17-
placeholder="Arama"
18-
/>
19+
<input type="text" placeholder="Arama" />
1920
</form>
2021
<div className="social-wrapper">
2122
<div className="social">
@@ -32,4 +33,4 @@ const AramaÇubuğu = (props) => {
3233
);
3334
};
3435

35-
export default AramaÇubuğu;
36+
export default AramaCubugu;
Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,27 @@
22
// Doğru beğeni sayısını görüntülemek için proplardan gelen bir veri parçasını kullanın.
33
// Beğeni sayısını artırmak için "gonderiyiBegen" fonksiyonunu kullanan bir onClick işleyicisi de ekleyeceksiniz.
44
// (Ek görev olarak, kullanıcınızın aynı gönderiyi birden fazla kez "beğenmesini" engelleyin.)
5-
import React from 'react';
6-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
7-
import { faComment, faHeart } from '@fortawesome/free-regular-svg-icons';
5+
import React from "react";
6+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
7+
import { faComment, faHeart } from "@fortawesome/free-regular-svg-icons";
88

9-
const BeğenBölümü = props => {
9+
const BegenBolumu = (props) => {
1010
// 🔥 Bu bileşenin parentının aşağıdaki propları düzgün gönderdiğinden emin olun.
1111
const { gonderiyiBegen, begeniSayisi } = props;
1212

1313
return (
1414
<div>
15-
<div
16-
className='like-section'
17-
key='likes-icons-container'
18-
>
19-
<div className='like-section-wrapper'>
15+
<div className="like-section" key="likes-icons-container">
16+
<div className="like-section-wrapper">
2017
<FontAwesomeIcon icon={faHeart} />
2118
</div>
22-
<div className='like-section-wrapper'>
19+
<div className="like-section-wrapper">
2320
<FontAwesomeIcon icon={faComment} />
2421
</div>
2522
</div>
26-
<p className='like-number'>100 likes</p>
23+
<p className="like-number">100 likes</p>
2724
</div>
2825
);
2926
};
3027

31-
export default BeğenBölümü;
28+
export default BegenBolumu;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import React from "react";
2+
import Yorumlar from "../Yorumlar/Yorumlar";
3+
import BegenBolumu from "./BegenBolumu";
4+
import GonderiBasligi from "./GonderiBasligi";
5+
6+
const Gonderi = (props) => {
7+
// 🔥 Bu bileşenin parentının aşağıdaki propları düzgün gönderdiğinden emin olun.
8+
const { gonderi, gonderiyiBegen } = props;
9+
10+
return (
11+
<div className="post-border">
12+
<GonderiBasligi
13+
username={gonderi.username}
14+
thumbnailUrl={gonderi.thumbnailUrl}
15+
/>
16+
<div className="post-image-wrapper">
17+
<img
18+
alt="post thumbnail"
19+
className="post-image"
20+
src={gonderi.imageUrl}
21+
/>
22+
</div>
23+
{/* BegenBolumu düzgün çalışması için ihtiyaç duyduğu tüm proplara sahip mi? */}
24+
<BegenBolumu gonderiyiBegen={() => gonderiyiBegen(gonderi.id)} />
25+
{/* Yorumlar da proplara dikkat istiyor! */}
26+
<Yorumlar />
27+
</div>
28+
);
29+
};
30+
31+
export default Gonderi;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Bu dosyada bir değişiklik yapmanıza gerek yok
2+
import React from "react";
3+
4+
const GonderiBasligi = (props) => {
5+
// 🔥 Bu bileşenin parentının aşağıdaki propları düzgün gönderdiğinden emin olun.
6+
const { thumbnailUrl, username } = props;
7+
8+
return (
9+
<div className="post-header">
10+
<div className="post-thumb-wrapper">
11+
<img alt="post header" className="post-thumb" src={thumbnailUrl} />
12+
</div>
13+
<h2>{username}</h2>
14+
</div>
15+
);
16+
};
17+
18+
export default GonderiBasligi;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
min-width: 400px;
55
margin: 5px auto;
66
}
7-
.post-header{
7+
.post-header {
88
display: flex;
99
align-items: center;
1010
}

0 commit comments

Comments
 (0)