목록SNS (3)
Creative Code

감기로 인해 3일만에 작업.. 아래 메뉴에 보이는 추가 예정 기능들(홈화면, my profile, map, chat, Ai chat, diary, video, game, setting) --> 더 추가할 수도 있음.. 왼쪽 Recommended friends에는 추후에 머신러닝을 이용해 사용자가 알 수도 있는 친구를 추천해주는 알고리즘을 만들어 적용시킬예정 Aurora프로젝트와 비슷하지만 게시글 업로드 시 각종 공감기능, 댓글기능 추가할 예정! 오늘 작업 코드 : ※pages/home.py (프론트엔드부분) # lunar.state.home 모듈에서 필요한 State 및 HomeState를 가져옵니다. import reflex as rx from lunar.state.base import State fr..

--> 아이디와 비밀번호를 입력하면 sqlite 데이터 베이스에 저장되어있는 유저 데이터와 비교해 일치할 시 로그인 가능 ※로그인 화면 코드(pages/login.py) """Login page. Uses auth_layout to render UI shared with the sign up page.""" import reflex as rx from lunar.state.auth import AuthState def login(): return rx.container( rx.container(height='150px'), rx.hstack( rx.vstack( rx.container(height='30px'), rx.image( src = '/space2.jpg', ), width = '500px', ..

※ 코드 내용 pages/findpassword.py """findpassword page. Uses auth_layout to render UI shared with the sign up page.""" import reflex as rx from lunar.state.auth import AuthState def findpassword(): return rx.container( rx.container(height='150px'), rx.hstack( rx.vstack( rx.hstack( rx.vstack( rx.container(height='20px'), rx.image( src = "/moonico.ico", width="70px", height="70px", ), ), rx.vstack( rx..