스파르타코딩클럽 [왕초보] 비개발자를 위한, 웹개발 종합반 (프로그래밍 실무, 풀스택) 2주차
스파르타코딩클럽 2주차
<!doctype html>
<html lang="en">
<head>
<!-- IBM Plex Sans KR -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@500&display=swap" rel="stylesheet">
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<title>스파르타코딩클럽 | 부트스트랩 연습하기</title>
<style>
* {
font-family: 'IBM Plex Sans KR', sans-serif;
color: dimgrey;
}
.wrap {
width: 500px;
margin: auto;
border: 1px gainsboro solid;
padding: 27px;
}
.img-style {
width: 300px;
height: 320px;
margin: auto;
margin-bottom: 30px;
background-image: url("http://img.danawa.com/prod_img/500000/601/270/img/6270601_1.jpg?shrink=330:330&_v=20200716141933");
background-size: cover;
background-position: center;
}
.large-font {
font-size: 32px;
font-weight: bold;
color: black;
}
.font-color {
color: royalblue;
}
.div-btn {
width: 100px;
margin: auto;
display: block;
}
</style>
<script>
$(document).ready(function () {
Exchange();
});
function Exchange() {
$('#exchange_rate').empty();
$.ajax({
type: "GET",
url: "http://spartacodingclub.shop/sparta_api/rate",
data: {},
success: function (response) {
let rate = response['rate'];
let temp_html = `<p class="font-color">달러 - 원 환율 : ${rate}</p>`;
$('#exchange_rate').append(temp_html);
}
})
}
</script>
</head>
<body>
<div class="wrap">
<div class="img-style"></div>
<p><span class="large-font">마니커 버팔로윙 1kg</span>     가격 : 12000원 / 개</p>
<p>부드러운 닭윙으로 만든 버팔로윙입니다. 전통 훈제방식으로 만들어진 버팔로윙은 쫄깃하고 부드러우며 훈제향이 짙습니다. 간식, 술안주로 좋은 제품입니다.</p>
<div id="exchange_rate"></div>
<p class="large-font">주문하기</p>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-default">성함</span>
</div>
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text" for="inputGroupSelect01">수량</label>
</div>
<select class="custom-select" id="inputGroupSelect01">
<option selected>수량을 선택하세요. (최대 7개)</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-default">주소</span>
</div>
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-default">전화번호</span>
</div>
<input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
</div>
<div class="div-btn">
<button type="button" class="btn btn-success">주문하기</button>
</div>
</div>
</body>
</html>
결과
1주차 숙제에서 환율 추가
Author And Source
이 문제에 관하여(스파르타코딩클럽 [왕초보] 비개발자를 위한, 웹개발 종합반 (프로그래밍 실무, 풀스택) 2주차), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@adk112/스파르타코딩클럽-왕초보-비개발자를-위한-웹개발-종합반-프로그래밍-실무-풀스택-2주차저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)