Project/축구모임 홈페이지개발

[축구모임 홈페이지개발] 02/14 개발일지 출시 전 세부 디자인 수정

한33 2024. 2. 19. 22:55

 

WEB 버전에서 LAST MATCH 글씨가 아래로 내려간 오류 수정

 


 

.carousel-item img {
    max-width: 460px;
    max-height: 100%;
    width: 100%;
    height: auto;
    margin: auto;
}

 

@media only screen and (max-width: 460px) {
    .story-main {
        width: 100%;
    }
}

@media only screen and (min-width: 461px) {
    .story-main {
        width: 460px;        
    }
}

 

핸드폰 가로 화면 460px 까지는 사진탭 사진 가로가 꽉차도록 설정

 


기존에는 보통 풋살을 금요일로 하기 때문에 그냥 요일은 따로 입력칸을 안했다.

(운영진 입력시 편의성 위함)

근데 아예 value 값으로 금요일을 넣어놨고 가끔 다른 요일에도 할 수 있게끔 설정해뒀다,

          <h4>이번 주 매치</h4>
          <div>
            24년
            <input class="management-input" type="text" name="planmonth" placeholder="00">
            <input class="management-input" type="text" name="plandate" placeholder="00">
            <input class="management-input" type="text" name="planday" value="금">요일
            <br>
            시간 : <input class="management-input2" name="plantime" type="text" placeholder="00:00"> - <input
              class="management-input2" name="plantimeto" type="text" placeholder="00:00">
            <br>
            상대팀명 : <input class="management-input3" type="text" name="planawayteam" placeholder="상대팀명">
            <br>
            장소 : <input class="management-input3" type="text" name="planplace" placeholder="풋살구장 이름">
          </div>

 


승부차기 게임 구현시에 매 기록마다 서버로 들어가서 점수 비교 후 더 클 경우 DB 로 접근시키니까 서버로 너무 많이 접근을 하게되었었다.

그래서 javascript 로 애초에 비교를 하고 서버로 들어오게끔 구현을 했는데,

그러다보니 새로운 계정은 애초에 점수가 없다보니까 점수기록이 안됐다.

 

두 가지 방법이 생각이 났는데, 일단 아예 모든 유저들을 처음에 점수를 0점으로 갱신시키는 거다.

매달 초에 초기화를 할 때 애초에 0점으로 기록을 해두고 점수판에 유지시키면 이는 해결될거로 예상된다.

 

두 번째는 if문으로 점수가 없을 시에는 그냥 한 번 추가시키는 거다.