JSFiddle - React, Tailwind, and code Playground

by jared0921

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <button onclick="myFunction()">
    我要訂購
  </button>

<button onclick="myFunction2()">
    認識工廠
  </button>

</body>
</html>

CSS

button {
  background-color: #EA4C89;
  border-radius: 8px;
  border-style: none;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  line-height: 20px;
  list-style: none;
  margin: 0;
  outline: none;
  padding: 10px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: color 100ms;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;

}

JavaScript

function myFunction(){
alert('謝謝您對我們的衣服有興趣!請致電 0987-654-321,會有專人提供您報價!')

}

function myFunction2(){
alert('我們工廠位於新北市,通過國際 ISO9001 認證,品質讓您放心!')

}