File tree 4 files changed +14
-31
lines changed
4 files changed +14
-31
lines changed Original file line number Diff line number Diff line change 1
- <h1 align =" center " >React_social_media_platform</h1 >
1
+ <h1 align =" center " >
2
+
3
+ [ React_social_media_platform] ( https://laughing-swanson-750b20.netlify.app/ )
4
+ </h1 >
2
5
3
6
<div align =" center " id =" top " >
4
7
<img src =" ./src/components/Img/img.png " alt =" React_codeing_social_platform " />
7
10
<!-- <a href="https://react_codeing_social_platform.netlify.app">Demo</a> -->
8
11
</div >
9
12
13
+ ## [ current Version ] ( https://laughing-swanson-750b20.netlify.app/ )
10
14
11
15
<p align =" center " >
12
16
<img alt =" Github top language " src =" https://img.shields.io/github/languages/top/pip-pipo/React_little_project?color=56BEB8 " >
Original file line number Diff line number Diff line change @@ -28,13 +28,14 @@ const Blog = () => {
28
28
loading ? < h2 > Loading....</ h2 > : < div >
29
29
{
30
30
value . map ( ( getData ) => (
31
- < div className = "blogsData" style = { { whiteSpace :"pre-line" } } >
31
+ < div className = "blogsData" style = { { whiteSpace :"pre-line" , wordBreak : "break-word" , fontFamily : "monospace" } } >
32
32
< h3 > < span > Title: </ span > { getData . title } </ h3 >
33
33
< h5 > < span > Author: </ span > { getData . author } </ h5 >
34
34
< h3 > < span > Blog: </ span > { getData . blog } </ h3 >
35
35
< h5 style = { { marginTop :'20px' } } > < span > Tags: </ span > { getData . tags } </ h5 >
36
36
< button style = { { outline :"none" } } onClick = { ( ) => deleteHandle ( getData . id ) } > Delete</ button >
37
37
< button style = { { outline :"none" } } > < Link to = { `/editBlog/${ getData . id } ` } style = { { textDecoration :"none" , color :"white" } } > Edit</ Link > </ button >
38
+
38
39
</ div >
39
40
) )
40
41
}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const EditBlog = () => {
56
56
< div className = "writePost" >
57
57
< div className = "writePost__wrapper" >
58
58
< div className = "writePost__first" >
59
- < h3 > Write a Post</ h3 >
59
+ < h3 > Edit Post</ h3 >
60
60
</ div >
61
61
< div className = "writePost__middle" >
62
62
< h4 className = "text-danger" > { err ? err : '' } </ h4 >
@@ -69,9 +69,12 @@ const EditBlog = () => {
69
69
< input onChange = { inputHandle } value = { tags } type = "text" className = "form-control my-3" name = "tags" placeholder = " Related Tags" />
70
70
< input onChange = { inputHandle } value = { author } type = "text" className = "form-control my-3" name = "author" placeholder = " Author Name" />
71
71
< textarea rows = { 5 } cols = { 5 } style = { { whiteSpace : "pre-line" } } id = "text-area" aria-label = "Post Content" spellCheck = "false" onChange = { inputHandle } value = { blog } type = "text-area" className = "form-control my-3" name = "blog" placeholder = " Your Blog" />
72
-
72
+
73
73
< button onClick = { submitHandle } > < Link style = { { textDecoration : "none" } } to = "/blog" > Publish</ Link > </ button >
74
- < button style = { { textDecoration : "none" } } > < Link to = "/welcome" > Back To Profile</ Link > </ button >
74
+ < button > < Link style = { { textDecoration : "none" } } to = "/welcome" > Back To Profile</ Link > </ button >
75
+
76
+
77
+
75
78
</ form >
76
79
</ div >
77
80
</ div >
Original file line number Diff line number Diff line change @@ -32,31 +32,6 @@ const WritePost = () => {
32
32
}
33
33
}
34
34
35
- // console.log(blog);
36
- // const replaceData = blog;
37
- // replaceData.replace(/\n/g, '<br>\n')
38
- // console.log(replaceData);
39
-
40
- // function onTestChange() {
41
-
42
- // var key = window.event.keyCode;
43
-
44
- // // If the user has pressed enter
45
- // if (key === 13) {
46
- // const valuedata = document.getElementById("text-area").value;
47
- // valuedata.replace(/\n/g, '<br>\n')
48
- // }
49
- // else {
50
- // return true;
51
- // }
52
- // }
53
-
54
-
55
- // if(blog){
56
- // const textArea = document.querySelector('#text-area');
57
- // textArea.addEventListener('keypress',onTestChange)
58
- // }
59
-
60
35
61
36
return (
62
37
< div className = "writePost" >
@@ -77,7 +52,7 @@ const WritePost = () => {
77
52
< textarea rows = { 5 } cols = { 5 } style = { { whiteSpace :"pre-line" } } id = "text-area" aria-label = "Post Content" spellCheck = "false" onChange = { inputHandle } value = { blog } type = "text-area" className = "form-control my-3" name = "blog" placeholder = " Your Blog" />
78
53
79
54
< button onClick = { submitHandle } > < Link style = { { textDecoration : "none" } } to = "/blog" > Publish</ Link > </ button >
80
- < button style = { { textDecoration : "none" } } > < Link to = "/welcome" > Back To Profile</ Link > </ button >
55
+ < button > < Link style = { { textDecoration :"none" } } to = "/welcome" > Back To Profile</ Link > </ button >
81
56
</ form >
82
57
</ div >
83
58
</ div >
You can’t perform that action at this time.
0 commit comments