## index.html ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>明年只剩單一模式!Gmail 信箱「基本 HTML 檢視」將正式淘汰</title> <!-- --> </head> <body> <header> <nav> <ul> <li><a href="#">即時</a></li> <li><a href="#">政治</a></li> <li><a href="#">國際</a></li> <li><a href="#">兩岸</a></li> <li><a href="#">經濟</a></li> </ul> </nav> <button class="login-button" onclick="alert('已登入')">登入</button> </header> <main> <article> <!-- --> <p> 2023/09/26 11:55<br/> 文/記者黃肇祥 </p> <!-- --> <section> <!-- --> <p>Gmail 信箱迎接變動!Google 於官方文件指出,Gmail 內建的「基本 HTML 檢視」模式將在明年 1 月後正式終止,未來只保留「標準檢視」的單一模式。</p> <p>「基本 HTML 檢視」主要是提供老舊電腦、慢速網路的設備,也能正常使用 Gmail 信箱的精簡版本。 介面會變得非常陽春,且即時通訊、拼字檢查、鍵盤快速鍵、自訂「寄件者」地址等諸多功能都不支援,不過基本的收發信件沒有問題,非常適合網路緩慢或是老舊設備使用。</p> </section> <section> <!-- --> <p>Gmail 信箱迎接變動!Google 於官方文件指出,Gmail 內建的「基本 HTML 檢視」模式將在明年 1 月後正式終止,未來只保留「標準檢視」的單一模式。</p> <p>「基本 HTML 檢視」主要是提供老舊電腦、慢速網路的設備,也能正常使用 Gmail 信箱的精簡版本。 介面會變得非常陽春,且即時通訊、拼字檢查、鍵盤快速鍵、自訂「寄件者」地址等諸多功能都不支援,不過基本的收發信件沒有問題,非常適合網路緩慢或是老舊設備使用。</p> </section> <section> <!-- --> <a href="https://3c.ltn.com.tw/news/55215">Pixel 跟進 iPhone 設計?傳 Google 推出 2 新功能改造「鎖定畫面」</a> </section> </article> <form> <!-- --> <p> <label>請輸入帳號:</label> <!-- --> </p> <p> <label>請輸入密碼:</label> <!-- --> </p> <input id="submitButton" type="submit" value="送出" onclick="alert('已送出')"/> <input type="reset" value="清除" onclick="console.log('已清除')"/> </form> </main> <footer> Copyright&copy; 2023, BIRC. </footer> </body> </html> ``` ## main.css ``` body, h1, h2, h3, li, p, ul { margin: 0; padding: 0; } body { background-color: #f0f0f0; /* */ } header { background-color: #333; color: #fff; padding: 10px; /* */ } .login-button { background-color: #fff; border: none; border-radius: 5px; width: 80px; padding: 5px; cursor: pointer; } nav ul { list-style: none; /* */ } nav li { margin: 0 15px; } nav a { text-decoration: none; color: #fff; } main { max-width: 800px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* */ } h1 { font-size: 28px; margin-bottom: 10px; } img { max-width: 100%; height: auto; margin-bottom: 20px; } section { margin-bottom: 20px; } h2 { font-size: 20px; margin-bottom: 10px; } p { line-height: 1.6; margin-bottom: 10px; } form { margin-top: 20px; } label { font-weight: bold; display: block; margin-bottom: 5px; } input[type="text"], input[type="password"] { width: 80%; padding: 10px; margin-bottom: 10px; } input[type="submit"], input[type="reset"] { background-color: #333; color: #fff; padding: 10px 20px; border: none; cursor: pointer; } footer { text-align: center; padding: 10px; background-color: #333; color: #fff; } ``` ## image ![](https://hackmd.io/_uploads/B11O4_xga.png) index.html ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login</title> <link rel="stylesheet" href="./css/reset.css"> <link rel="stylesheet" href="./css/index.css"> <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap" rel="stylesheet"> <!-- 內文 --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" /> <!-- 標題 --> <link href="https://fonts.googleapis.com/css2?family=Bowlby+One+SC&display=swap" rel="stylesheet"> </head> <body> <nav> <div class="logo"> <img src="image/logo.png" alt=""> </div> <ul> <li><button onclick="location.href='./sign-up.html'">Sign Up</button></li> </ul> </nav> <h1>Log In</h1> <form action="index.html"> <p> <label for="userName"> <i class="fa fa-envelope-o" aria-hidden="true"></i> YOUR USERNAME OR E-MAIL </label><br /> <input type="text" id="userName" required="required" /></p> <p> <label for="password"> <i class="fa fa-unlock-alt" aria-hidden="true"></i> PASSWORD </label><br /> <input type="password" id="password" required="required" /> </p> <input type="button" value="LOG IN" onclick="login()" /> <a href="sign-up.html">Create Account</a> </form> <footer> <p>Copyright &copy; 2023 商業智慧中心. All rights reserved.</p> </footer> </body> </html> <script src="./js/index.js"></script> ``` index.css ``` body { display: flex; flex-direction: column; align-items: center; background-image: url(../image/background.jfif); backdrop-filter: blur(3px); height: 100vh; } nav { width: calc(100% - 60px); display: flex; flex-direction: row; justify-content: space-between; padding: 30px; } nav p { font-size: 15px; } nav ul { display: flex; flex-direction: row; align-items: center; } nav ul li { padding: 10px; color: #fff; cursor: pointer; } nav ul li button { background-color: transparent; border: 1px solid white; border-radius: 50px; color: white; padding: 10px 20px; font-family: 'Montserrat', sans-serif; cursor: pointer; } h1 { font-size: 40px; text-align: center; color: #fff; font-family: 'Bowlby One SC', cursive; } form { width: 300px; background: #fff; padding: 40px 50px; border-radius: 10px; margin: 20px; display: flex; flex-direction: column; box-shadow: 0px 5px 5px #424242; } form label { color: #808080; font-size: 16px; } form label i { padding-right: 5px; } form input[type=text], form input[type=password] { padding: 10px; width: calc(100% - 20px); border-radius: 20px; border: 0; background-color: #e5e8eb; margin: 5px 0 16px; } form input:focus { box-shadow: 0px 10px 15px rgb(224, 224, 224); outline: none; background-color: #fff; } form input[type=button] { background-color: #588157; border-radius: 20px; color: #fff; border: 0; padding: 10px 0; margin: 15px 0; font-size: 16px; font-family: 'Montserrat', sans-serif; cursor: pointer; } form a { font-size: 16px; text-align: center; color: #808080; } p { font-size: 12px; color: #fff; } p a { color: #fff; } footer{ height: 10%; position: fixed; bottom: 0px; display: flex; justify-self: center; align-items: center; } ``` reset.css ``` body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td { margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; } table { border-collapse: collapse; border-spacing: 0; } fieldset, img { border: 0; } address, caption, cite, code, dfn, em, strong, th, var { font-style: normal; font-weight: normal; } ol, ul { list-style: none; } caption, th { text-align: left; } /*h1, h2, h3, h4, h5, h6 { font-size:100%; font-weight:normal; }*/ q:before, q:after { content: ''; } abbr, acronym { border: 0; } ```