diff --git a/package.json b/package.json index 8904143..02171d4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "nd-front", "version": "0.1.0", "private": true, - "proxy": "https://10.200.11.221:8000", + "proxy": "https://192.168.35.83:8000", "dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.36", "@fortawesome/free-brands-svg-icons": "^5.15.4", diff --git a/public/img/studydo.png b/public/img/studydo.png new file mode 100644 index 0000000..8bdd7d9 Binary files /dev/null and b/public/img/studydo.png differ diff --git a/src/components/AllStudy.js b/src/components/AllStudy.js index c91758b..fb8a318 100644 --- a/src/components/AllStudy.js +++ b/src/components/AllStudy.js @@ -3,6 +3,54 @@ import styled from 'styled-components'; import axios from 'axios'; import {Card,Button} from 'react-bootstrap'; +const Container = styled.div` + padding: 20px; +`; + +// +const Ranking_font = styled.div` + font-size: xx-large; + font-weight: bold; +`; +// + +const Date_font = styled.div` + font-size: large; + font-weight: bold; + text-align: center; +`; + +const ContentBox = styled.div` + display: flex; + gap: 0.25rem; + + align-items: center; + grid-area: content; + justify-content: center; +`; +const Content1 = styled.div` + padding: 0.25rem; + // background: yellow; + text-align: left; + width: 30%; + height: 100%; +`; +const Content2 = styled.div` + padding: 0.25rem; + // background: yellow; + text-align: left; + width: 50%; + height: 100%; + font-size: large; +`; +const Content3 = styled.div` + padding: 0.25rem; + // background: yellow; + text-align: center; + width: 100%; + height: 100%; +`; + const StudiesComp = (props) => { const study = props.study; @@ -45,17 +93,39 @@ const StudiesComp = (props) => { {study.title} - 목표 시간: {study.target_time}
- 멤버 수: {study.member_number}
- 하루 벌금: {study.penalty}
- 스터디 정보: {study.info}
- 방장이름: {study.leader}
- 스터디 아이디: {study.id}
+ + 방장 + {study.leader} + + +
+ + 목표 시간 + {study.target_time} + + + + 하루 벌금 + {study.penalty} + + + + 멤버 수 + {study.member_number} + + +
+ + 스터디 정보 + {study.info} + + +
{ (study.is_recruit === true)? <> - + : null } diff --git a/src/components/MyStudy.js b/src/components/MyStudy.js index 3bf991f..dd0f962 100644 --- a/src/components/MyStudy.js +++ b/src/components/MyStudy.js @@ -3,6 +3,55 @@ import { withRouter } from 'react-router'; import {createBrowserHistory} from 'history'; import axios from 'axios'; import {Card,Button} from 'react-bootstrap'; +import styled from 'styled-components'; + +const Container = styled.div` + padding: 20px; +`; + +// +const Ranking_font = styled.div` + font-size: xx-large; + font-weight: bold; +`; +// + +const Date_font = styled.div` + font-size: large; + font-weight: bold; + text-align: center; +`; + +const ContentBox = styled.div` + display: flex; + gap: 0.25rem; + + align-items: center; + grid-area: content; + justify-content: center; +`; +const Content1 = styled.div` + padding: 0.25rem; + // background: yellow; + text-align: left; + width: 30%; + height: 100%; +`; +const Content2 = styled.div` + padding: 0.25rem; + // background: yellow; + text-align: left; + width: 50%; + height: 100%; + font-size: large; +`; +const Content3 = styled.div` + padding: 0.25rem; + // background: yellow; + text-align: center; + width: 100%; + height: 100%; +`; const MyStudy = (props) => { const mystudy = props.mystudy; @@ -65,20 +114,51 @@ const MyStudy = (props) => { {mystudy.topic} {mystudy.title} + - 목표 시간: {mystudy.target_time}
+ + 방장 + {mystudy.leader} + + +
+ + 목표 시간 + {mystudy.target_time} + + + + 하루 벌금 + {mystudy.penalty} + + + + 멤버 수 + {mystudy.member_number} + + +
+ + 스터디 정보 + {mystudy.info} + + +
+ + {/* 목표 시간: {mystudy.target_time}
멤버 수: {mystudy.member_number}
하루 벌금: {mystudy.penalty}
스터디 정보: {mystudy.info}
방장이름: {mystudy.leader}
- 스터디 아이디: {mystudy.id}
+ 스터디 아이디: {mystudy.id}
*/}
+ { (mystudy.is_recruit===false)? <> - +   - +   : diff --git a/src/components/Room.js b/src/components/Room.js index e4d4dca..124def8 100644 --- a/src/components/Room.js +++ b/src/components/Room.js @@ -99,7 +99,7 @@ const Room = (props) => { // socketRef.current = io.connect("https://10.200.11.221:8000"); //현재 커넥트 정보 저장 // console.log(socketRef.current) // ======= - socketRef.current = io.connect("https://192.168.0.28:8000"); //현재 커넥트 정보 저장 + socketRef.current = io.connect("https://192.168.35.64:8000"); //현재 커넥트 정보 저장 // >>>>>>> main navigator.mediaDevices.getUserMedia({ video: videoConstraints, audio: false }) @@ -216,7 +216,7 @@ const Room = (props) => { // ======= var response; if(mode) { //자동 측정 on 모드 - response = await fetch('https://192.168.0.28:5000/image', { //https://223.131.223.239:5000/image + response = await fetch('https://192.168.35.64:5000/image', { //https://223.131.223.239:5000/image method: "POST", body: formData, signal: abortController.signal, diff --git a/src/components/auth/AuthForm.js b/src/components/auth/AuthForm.js index e1bd020..27d5b0b 100644 --- a/src/components/auth/AuthForm.js +++ b/src/components/auth/AuthForm.js @@ -2,7 +2,8 @@ import React from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; import palette from '../../lib/styles/palette'; -import Button from '../common/Button'; +import Button_2 from '../common/Button_2'; +// import {Card,Button} from 'react-bootstrap'; /* 회원가입, 로그인 폼을 보여주는 component */ @@ -87,13 +88,20 @@ const AuthForm = ({type,form,onChange,onSubmit}) => { value={form.passwordConfirm} /> )} - + {/* {text} */} + {text} + {/*
*/} + {/*
+ +
*/}