Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정성훈
/
MEALKHU
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
swa07016
2020-06-28 14:37:55 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cce3da99a3ad6bad83cb8179e89095fe3c982d90
cce3da99
1 parent
bd501d94
NavbarToggler color 변경
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
client/src/components/NavBar.js
server.js
client/src/components/NavBar.js
View file @
cce3da9
...
...
@@ -16,13 +16,15 @@ const NavBar = (props) => {
return
(
<>
<
Navbar
style
=
{{
'backgroundColor'
:
'#940f0f'
,
'display'
:
'block'
}}
light
expand
=
"md"
fixed
=
"top"
>
<
Navbar
dark
style
=
{{
'backgroundColor'
:
'#940f0f'
,
'display'
:
'block'
}}
light
expand
=
"md"
fixed
=
"top"
>
<
Container
className
=
"themed-container"
>
<
span
>
<
a
href
=
'/'
><
img
src
=
"logo.png"
alt
=
"logo"
width
=
"50"
/><
/a
>
<
/span
>
<
NavbarBrand
href
=
"/"
style
=
{{
'marginLeft'
:
'1.5rem'
,
'color'
:
'#fff'
}}
>
MEALKHU
<
/NavbarBrand
>
<
NavbarToggler
onClick
=
{
toggle
}
/
>
<
NavbarToggler
style
=
{{
}}
onClick
=
{
toggle
}
/
>
<
Collapse
isOpen
=
{
isOpen
}
navbar
>
<
Nav
className
=
"mr-auto"
navbar
>
<
NavItem
>
...
...
server.js
View file @
cce3da9
...
...
@@ -64,7 +64,7 @@ app.post("/api/signup", (req, res) => {
let
sql_usercheck
=
`SELECT * FROM USER WHERE name='
${
req
.
body
.
username
}
';`
;
connection
.
query
(
sql_usercheck
,
(
err
,
rows
,
fields
)
=>
{
if
(
rows
.
length
!==
0
)
{
if
(
rows
.
length
)
{
return
res
.
json
({
code
:
400
,
message
:
'user exist'
...
...
@@ -100,7 +100,7 @@ app.post("/api/signin", (req, res) => {
let
sql_usercheck
=
`SELECT * FROM USER WHERE name='
${
req
.
body
.
username
}
';`
;
connection
.
query
(
sql_usercheck
,
(
err
,
rows
,
fields
)
=>
{
if
(
rows
.
length
===
0
)
{
if
(
!
rows
.
length
)
{
return
res
.
send
({
code
:
400
,
message
:
"user does not exist"
,
...
...
Please
register
or
login
to post a comment