Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Commit

Permalink
Add: 업데이트 소개 페이지, Fix: 댓글 달기 버그
Browse files Browse the repository at this point in the history
  • Loading branch information
leehj050211 committed Dec 19, 2021
1 parent 8f0c55d commit 241dda0
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 28 deletions.
27 changes: 19 additions & 8 deletions public/css/etc/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ h1.main{
padding:0 5rem;
color:#FFF;
}
h2.main{
font-size:2rem;
color:#FFF;
h2{
font-size:3.6rem;
}
h3{
font-size:3rem;
Expand All @@ -40,7 +39,7 @@ h5{
}
.service p{
font-size:2rem;
color:var(--gray);
color:var(--light_gray);
}
.section_wrap{
box-shadow:0 0 25px rgba(0, 0, 0, 0.5);
Expand Down Expand Up @@ -100,18 +99,30 @@ section#download{
background-size:cover;
border-radius:1rem;
}
.service_wrap .service:nth-child(1) .image div{
.service_wrap.info .service:nth-child(1) .image div{
background-image:url('/resource/index/images/meal.png');
}
.service_wrap .service:nth-child(2) .image div{
.service_wrap.info .service:nth-child(2) .image div{
background-image:url('/resource/index/images/timetable.png');
}
.service_wrap .service:nth-child(3) .image div{
.service_wrap.info .service:nth-child(3) .image div{
background-image:url('/resource/index/images/meister.png');
}
.service_wrap .service:nth-child(4) .image div{
.service_wrap.info .service:nth-child(4) .image div{
background-image:url('/resource/index/images/community.png');
}
.service_wrap.update .service:nth-child(1) .image div{
background-image:url('/resource/index/images/update/1.2.0/update1.png');
}
.service_wrap.update .service:nth-child(2) .image div{
background-image:url('/resource/index/images/update/1.2.0/update2.png');
}
.service_wrap.update .service:nth-child(3) .image div{
background-image:url('/resource/index/images/update/1.2.0/update3.png');
}
.service_wrap.update .service:nth-child(4) .image div{
background-image:url('/resource/index/images/update/1.2.0/update4.webp');
}
@media screen and (min-width:0px) and (max-width:1023px){
main,.container{
max-width:100%;
Expand Down
8 changes: 7 additions & 1 deletion public/js/etc/board/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,18 @@ const commentDelete = commentIndex => {
const comment_write = (depth, parentIdx) => {
$$('.loading')[0].classList.add("on");
depth = parseInt(depth)+1;
let url;
if(parentIdx==null){
url = `${apiUrl}/comment/${boardType}/${postNo}`;
}else{
url = `${apiUrl}/comment/${boardType}/${postNo}/${depth}/${parentIdx}`;
}
$.ajax({
type:'POST',
data:{
comment:$('.post_comment').val(),
},
url:`${apiUrl}/comment/${boardType}/${postNo}/${depth}/${parentIdx}`,
url:url,
cache:false,
success:data => {
data=JSON.parse(data);
Expand Down
2 changes: 1 addition & 1 deletion public/sw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cacheName = '1.1.0.0';
const cacheName = '1.2.0.0';
let cacheFiles = [
'/',
'/meal',
Expand Down
2 changes: 1 addition & 1 deletion views/common/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</div>
</div>
<div class="notice_bar">
<a href="/board/notice/2" class="notice">역량인증제 점수 보기 기능이 업데이트 되었습니다. 여기를 눌러 자세히 보기</a>
<a href="/board/notice/3" class="notice">커뮤니티 대댓글 기능이 업데이트 되었습니다. 여기를 눌러 자세히 보기</a>
</div>
</nav>
<div class="side_menu">
Expand Down
60 changes: 43 additions & 17 deletions views/pages/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@
prompt = e;
installed = false;
});
// // Detects if device is on iOS
// const isIos = () => {
// const userAgent = window.navigator.userAgent.toLowerCase();
// return /iphone|ipad|ipod/.test( userAgent );
// }
// // Detects if device is in standalone mode
// const isInStandaloneMode = () => ('standalone' in window.navigator) && (window.navigator.standalone);
// if(isIos() && !isInStandaloneMode()){
// installed = false;
// }
</script>
</head>
<body>
Expand All @@ -41,32 +30,69 @@
<a href="#download" class="button blue_button">BSM앱 다운로드</a>
<br><br><br><br>
<div class="section_wrap">
<section>
<h2>v1.2.0 Update!</h2>
<br>
<h3>What's new?</h3>
<br><br>
<br><br>
<div class="service_wrap update">
<div class="service">
<div class="left_wrap">
<h5>마이스터 역량인증제 점수</h5>
<p>이제 역량인증제 점수를 볼 수 있습니다</p>
</div>
<a href="/meister" class="right_wrap image"><div></div></a>
</div>
<div class="service">
<a href="/board/notice/3" class="left_wrap image"><div></div></a>
<div class="right_wrap">
<h5>커뮤니티 대댓글 기능</h5>
<p>이제 더이상 답글을 달기위해 ㄴ을 달지 않아도 됩니다</p>
</div>
</div>
<div class="service">
<div class="left_wrap">
<h5>공지사항</h5>
<p>이제 중요한 내용은 공지사항에 올라옵니다</p>
</div>
<a href="/board/notice" class="right_wrap image"><div></div></a>
</div>
<div class="service">
<div class="left_wrap image"><div></div></div>
<div class="right_wrap">
<h5>로딩스크린</h5>
<p>이제 서버와 통신할때는 로딩스크린이 뜹니다</p>
</div>
</div>
</div>
</section>
<section id="main">
</section>
<section>
<h3>부산소마고 지원 서비스</h3>
<br>
<h4>이 학교에서 살아남기 위해 필요한 서비스들</h4>
<br><br>
<div class="service_wrap">
<div class="service_wrap info">
<div class="service">
<div class="left_wrap">
<h5>급식</h5>
<p>밥은 먹고 다녀야지</p>
<p>알림을 통해서도 급식정보를 받을 수 있습니다</p>
</div>
<a href="/meal" class="right_wrap image"><div></div></a>
</div>
<div class="service">
<a href="/timetable" class="left_wrap image"><div></div></a>
<div class="right_wrap">
<h5>시간표</h5>
<p>이번 시간 뭐임?</p>
<p>지금이 무슨시간인지 알아보세요</p>
</div>
</div>
<div class="service">
<div class="left_wrap">
<h5>상벌점</h5>
<p>벌점이 얼마나 쌓였을까요?</p>
<h5>마이스터 역량인증제</h5>
<p>역량인증제 점수와 상벌점을 볼 수 있습니다</p>
</div>
<a href="/meister" class="right_wrap image"><div></div></a>
</div>
Expand Down Expand Up @@ -111,7 +137,7 @@
</div>
<div class="right_wrap">
<p>Web App</p>
<p>Ver. 1.1.0</p>
<p>Ver. 1.2.0</p>
</div>
</a>
<a href="/resource/bsm/download/bsm_v1.0.0(7).apk" download="bsm_v1.0.0(7).apk" class="download_button button">
Expand Down

0 comments on commit 241dda0

Please sign in to comment.