Selaa lähdekoodia

新增user頁面

jeter20131220 3 vuotta sitten
vanhempi
commit
0f61897c87

+ 42 - 13
html/script_profiles.js

@@ -24,20 +24,49 @@ function renderView() {
     }).then(res => {
         console.log(res.data);
         const userInfo = res.data;
+        // const str = `<img src="static/img/undraw_male_avatar_323b.svg" alt="">
+        //     <p class="card-profile-txt">User Profile</p>
+        //     <p class="card-profile-cnt">${userInfo.user_info.userName}</p>
+        //     <p class="card-profile-cnt">${userInfo.user_info.email}</p>
+        //     <div class="d-flex justify-content-around">
+        //         <div>
+        //             <p set-lan="html:used">已使用</p>
+        //             <p><strong>${userInfo.user_info.total_sec}</strong><span set-lan="html:sec">秒</span></p>
+        //         </div>
+        //         <div>
+        //             <p set-lan="html:left">未使用</p>
+        //             <p><strong>${userInfo.user_info.left_sec}</strong><span set-lan="html:sec">秒</span></p>
+        //         </div>
+        //     </div>`;
         const str = `<img src="static/img/undraw_male_avatar_323b.svg" alt="">
-            <p class="card-profile-txt">User Profile</p>
-            <p class="card-profile-cnt">${userInfo.user_info.userName}</p>
-            <p class="card-profile-cnt">${userInfo.user_info.email}</p>
-            <div class="d-flex justify-content-around">
-                <div>
-                    <p set-lan="html:used">已使用</p>
-                    <p><strong>${userInfo.user_info.total_sec}</strong><span set-lan="html:sec">秒</span></p>
-                </div>
-                <div>
-                    <p set-lan="html:left">未使用</p>
-                    <p><strong>${userInfo.user_info.left_sec}</strong><span set-lan="html:sec">秒</span></p>
-                </div>
-            </div>`;
+        <p class="card-profile-txt">User Profile</p>
+        <p class="card-profile-cnt">${userInfo.user_info.userName}</p>
+        <p class="card-profile-cnt">${userInfo.user_info.email}</p>
+        <div class="d-flex justify-content-around">
+            <div>
+                <p set-lan="html:used">已使用</p>
+                <p><strong>${userInfo.user_info.total_sec}</strong><span set-lan="html:sec">秒</span></p>
+            </div>
+            <div>
+                <p set-lan="html:left">未使用</p>
+                <p><strong>${userInfo.user_info.left_sec}</strong><span set-lan="html:sec">秒</span></p>
+            </div>
+        </div>`;
+        const userName = `<h2 class="user-name text-white mt-4 fw-bold">Hello,${userInfo.user_info.userName}</h2>`;
+        const usedtime=`<h1 class="text-center">${userInfo.user_info.total_sec}&ensp;<span style="font-size:15px;">秒</span></h1>`;
+        const NotUsedTime=`<h1  class="text-center">${userInfo.user_info.left_sec}&ensp;<span style="font-size:15px;">秒</span></h1>`;
+        const infContent=`
+        <div class="inf-content">
+            <p>${userInfo.user_info.userName}</p>
+            <p>abc***************0&nbsp;<a href="">更改密碼</a></p>
+            <p>${userInfo.user_info.email}</p>
+        </div>`;
+       
+        $('.userinf').html(infContent);
+        $('.userName').html(userName);
+        $('.used-time').html(usedtime);
+        $('.not-used-time').html(NotUsedTime);
+        $('.card-profile').html(str);
             $('.card-profile').html(str);
     }).catch(err => {
         console.log(err);

BIN
html/static/img/nav-bg.png


BIN
html/static/img/userprofile/Icon awesome-facebook-square.png


BIN
html/static/img/userprofile/Icon awesome-twitter-square.png


BIN
html/static/img/userprofile/Icon ionic-md-add-circle.png


BIN
html/static/img/userprofile/Icon ionic-md-arrow-dropdown-circle.png


BIN
html/static/img/userprofile/Icon material-email.png


BIN
html/static/img/userprofile/userimg.png


+ 54 - 0
html/static/scss/style.css

@@ -1295,6 +1295,60 @@ body {
   }
 }
 
+.navbar {
+  background: none !important;
+}
+
+.arrowdoup {
+  -webkit-transform: rotate(180deg);
+          transform: rotate(180deg);
+}
+
+.userprofile {
+  position: relative;
+  top: -80px;
+  z-index: 20;
+}
+
+.userprofile .userprofile-content {
+  width: 83vw;
+}
+
+.userprofile .userprofile-content .user-information .information {
+  width: 50%;
+  margin: 0 auto;
+}
+
+.userprofile .userprofile-content .user-information .information h1 {
+  color: #707070;
+  font-size: 56px;
+}
+
+.userprofile .userprofile-content .user-information .information .share {
+  font-size: 16px;
+}
+
+.userprofile .userprofile-content .user-information .information .share a {
+  text-decoration: none;
+  color: #183790;
+}
+
+.userprofile .userprofile-content .user-information .card {
+  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
+          box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
+  border-radius: 15px;
+}
+
+.userprofile .userprofile-content .user-information .check-history {
+  cursor: pointer;
+}
+
+.userprofile .userprofile-content .user-information .historical-record th {
+  border-bottom: none !important;
+  color: #183790;
+  font-weight: 900;
+}
+
 .sidenav {
   height: 100%;
   width: 250px;

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
html/static/scss/style.css.map


+ 48 - 0
html/static/scss/style.scss

@@ -1178,6 +1178,54 @@ body {
 		margin: 0 0 40px;
 	}
 }
+// new user_profile
+.navbar {
+	background: none !important;
+}
+.arrowdoup{
+	transform: rotate(180deg);
+}
+.userprofile {
+	position: relative;
+	top: -80px;
+	z-index: 20;
+	.userprofile-content {
+		width: 83vw;
+		.user-information {
+		
+			.information {
+				width: 50%;
+				margin: 0 auto;
+				h1{
+					color:#707070;
+					font-size: 56px;
+				}
+				.share{
+					font-size: 16px;
+					a{
+						text-decoration: none;
+						color:#183790;
+
+					}
+				}
+			}
+			.card{
+				box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
+				border-radius: 15px;
+			}
+			.check-history{
+				cursor: pointer;
+			}
+			.historical-record{
+				th{
+					border-bottom: none !important;
+					color:#183790;
+					font-weight: 900;
+				}
+			}
+		}
+	}
+}
 
 // 側邊欄選單
 .sidenav {

+ 285 - 0
html/user_profile2.html

@@ -0,0 +1,285 @@
+<!DOCTYPE html>
+<html lang="zh-TW">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>AI Spokesgirl</title>
+    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
+    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
+      crossorigin="anonymous">
+    <link rel="stylesheet"
+      href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt"
+      crossorigin="anonymous">
+    <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=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet"> 
+    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.18/dist/sweetalert2.min.css">
+    <link rel="stylesheet" href="static/owl.carousel.min.css">
+    <link rel="stylesheet" href="static/owl.theme.default.min.css">
+    <link rel="stylesheet" href="static/scss/style.css">
+    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
+    <title>AI Spokesgirl</title>
+</head>
+
+<body>
+    <!-- ================================================================= -->
+    <!-- navbar -->
+    <div class="card">
+        <img class="img-fluid" src="./static/img/nav-bg.png" class="card-img" alt="...">
+        <div class="card-img-overlay">
+            <nav class="navbar navbar-expand-lg navbar-light pt-0">
+                <div class="container-fluid px-0 pt-2">
+                    <a class="navbar-brand" href="index.html">AI Spokesgirl</a>
+                    <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
+                        data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
+                        aria-label="Toggle navigation">
+                        <span class="navbar-toggler-icon"></span>
+                    </button>
+                    <div class="collapse navbar-collapse" id="navbarSupportedContent">  
+                        <ul class="navbar-nav ms-auto mb-2 mb-lg-0">
+                            <li class="nav-item">
+                                <a class="nav-link active text-white" aria-current="page" href="pricing.html" set-lan="html:pricing">早鳥方案</a>
+                            </li>
+                            <li class="nav-item dropdown">
+                                <a class="nav-link dropdown-toggle text-white" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
+                                    中/En
+                                </a>
+                                <ul class="dropdown-menu text-white" aria-labelledby="navbarDropdown">
+                                    <li><button class="nav-link lan-swtich" aria-current="page" set-lan="html:en" onclick="changeLan(this)" value="en">English</button></li>
+                                    <li><button class="nav-link lan-switch" aria-current="page" set-lan="html:zh" onclick="changeLan(this)" value="zh">中文</button></li>
+                                </ul>
+                            </li>
+                            <li class="nav-item">
+                                <a class="nav-link active btn-login text-white" aria-current="page" href="login.html" set-lan="html:login">登入</a>
+                            </li>
+                            <li class="nav-item">
+                                <a class="nav-link btn-userProfile text-white" aria-current="page" href="user_profile.html" set-lan="html:user_profile">會員資料</a>
+                            </li>
+                            <li class="nav-item text-white">
+                                <a class="nav-link btn-logout text-white" aria-current="page" set-lan="html:logout">登出</a>
+                            </li>
+                        </ul>
+                    </div>
+                </div>
+            </nav>
+        </div>
+      </div>
+    <!-- ================================================================= -->
+
+
+    <!-- ================================================================= -->
+    <!-- content -->
+    <div class="container-fluid px-0">
+        <div id="mySidenav" class="sidenav">
+            <div class="text-start mt-3">
+                <a href="index.html"><img class="img-fluid w-50 ps-1" src="./static/img/contactus/CMM_LOGO.png" alt=""></a>
+                <h2 class="fw-bold ps-0" href="index.html"><a class="nav-link active ps-1" aria-current="page" href="index.html">AI Spokesgirl</a></h2>
+            </div>
+            <div class="userName"></div> 
+            <img class="user img-fluid rounded-circle" src="./static/img/contactus/man.jpg" alt="">
+            <p class="text-white my-3 text-center">今天要做甚麼影片呢?</p>
+            <div class="navbar-nav mb-2 mb-lg-0 px-3 pe-4">
+                <a class="nav-link btn-gocreate text-white col-6" aria-current="page" href="./make_video.html" set-lan="html:make_video">影片製作</a>
+                <a class="nav-link btn-gocreate text-white col-6" aria-current="page" href="./make_video_slide.html" set-lan="html:make_slides">投影片影片製作</a>
+            </div>
+            <hr>
+            <ul class="nav-list ps-0">
+                <li class="nav-list-item pb-1 mb-3" data-bs-toggle="modal" data-bs-target="#howto"><i
+                        class="fas fa-book-open me-2"></i>
+                    <lan set-lan="html:usage_intro">使用說明</lan>
+                </li>
+                <a style="text-decoration: none;color:white;" href="./user_profile.html">
+                    <li class="nav-list-item pb-1 mb-3" data-bs-toggle="modal">
+                        <i class="fas fa-user me-2"></i>
+                       <lan set-lan="user_profile">會員資料</lan>
+                    </li>
+                </a>
+                <li class="nav-list-item pb-1" data-bs-toggle="modal" data-bs-target="#history" onclick="openNav()">
+                    <i class="fas fa-history me-2"></i>
+                    <lan set-lan="html:history">歷史紀錄</lan>
+                </li>
+            </ul>
+            <div class="right-text">
+                <a target="_blank" href="http://www.choozmo.com/">| 官網 |</a>
+                <a target="_blank" href="https://www.linkedin.com/company/choozmo/mycompany/"><img
+                        style="width: 20px;" src="./static/img/contactus/linkedin-logo-copy.png" alt=""></a>
+                <a target="_blank" href="https://www.facebook.com/choozmo/"><img style="width: 20px;"
+                        src="./static/img/contactus/facebook_logos_PNG19753.png" alt=""></a>
+                <a target="_blank" href="https://www.instagram.com/choozmo_cmm/"><img style="width: 20px;"
+                        src="./static/img/contactus/IG.png" alt=""></a>
+                <a target="_blank" href="https://line.me/R/ti/p/@choozmo?from=page"><img style="width: 20px;"
+                        src="./static/img/contactus/LINE_logo.svg.png" alt=""></a>
+                <a target="_blank" href="https://www.youtube.com/channel/UC2Qda9PhJWuiMTCZ-j7K_hg"><img
+                        style="width: 20px;" src="./static/img/contactus/youtube.png" alt=""></a>
+                <a target="_blank" href="https://twitter.com/ai_cmm"><img style="width: 20px;"
+                        src="./static/img/contactus/twitter.png" alt=""></a>
+                <p class="Reserved text-white text-start mt-3 ps-2">Choozmo All Rights Reserved</p>
+            </div>
+        </div>
+        <div class="userprofile d-flex justify-content-end">
+            <div class="userprofile-content">
+                <div class="user-information">
+                    <div class="user-img text-center">
+                        <img style="width: 160px;" src="./static/img/userprofile/userimg.png" alt="">
+                    </div>
+                    <div class="information">
+                        <div class="row px-0 mx-0 mt-4">
+                            <div style="letter-spacing: 3px;" class="col-lg-4">
+                                <p class="text-end">帳號/用戶名稱:</p>
+                                <P class="text-end">密碼:</P>
+                                <p class="text-end">Email:</p>
+                            </div>
+                            <div class="userinf col-lg-8">
+                                <!-- <div class="inf-content">
+                                    <p>Hana</p>
+                                    <p>abc***************0&nbsp;<a href="">更改密碼</a></p>
+                                    <p>Hana@choozmo.com</p>
+                                </div> -->
+                            </div>
+                            <div class="row px-0 mx-0 g-4">
+                                <div class="Used col-lg-6">
+                                    <div class="card py-4 ps-4">
+                                        <p class="fw-bold">已使用</p>
+                                        <div class="used-time">
+                                            <!-- <h1 class="text-center">324&ensp;<span style="font-size:15px;">秒</span></h1> -->
+                                        </div>
+                                        <p style="color:#183790;" class="check-history mb-0 text-center"><img width="20" class="arrowdown me-2 mb-1" src="./static/img/userprofile/Icon ionic-md-arrow-dropdown-circle.png" alt="">查看詳情</p>
+                                    </div>
+                                </div>
+                                <div class="not-used col-lg-6">
+                                    <div class="card py-4 ps-4">
+                                        <p class="fw-bold">未使用</p>
+                                        <div class="not-used-time">
+                                            <!-- <h1  class="text-center">144&ensp;<span style="font-size:15px;">秒</span></h1> -->
+                                        </div>
+                                       <p style="color:#183790;" class="mb-0 text-center"><img width="20" class="me-2 mb-1" src="./static/img/userprofile/Icon ionic-md-add-circle.png" alt="">我要加值</p>
+                                    </div>
+                                </div>
+                                <div class="historical-record col-lg-12">
+                                    <div class="card p-4">
+                                        <table class="table text-center">
+                                            <thead>
+                                              <tr>
+                                                <th scope="col">日期</th>
+                                                <th scope="col">標題</th>
+                                                <th scope="col">影片時間</th>
+                                              </tr>
+                                            </thead>
+                                            <tbody>
+                                              <tr>
+                                                <td>21/09/01</td>
+                                                <td>歐盟提「碳邊境稅」 台灣也將受碳稅影響</td>
+                                                <td>0:36</td>
+                                              </tr>
+                                              <tr>
+                                                <td>21/09/01</td>
+                                                <td>歐盟提「碳邊境稅」 台灣也將受碳稅影響</td>
+                                                <td>0:36</td>
+                                              </tr>
+                                              <tr>
+                                                <td>21/09/01</td>
+                                                <td>歐盟提「碳邊境稅」 台灣也將受碳稅影響</td>
+                                                <td>0:36</td>
+                                              </tr>
+                                              <tr>
+                                                <td>21/09/01</td>
+                                                <td>歐盟提「碳邊境稅」 台灣也將受碳稅影響</td>
+                                                <td>0:36</td>
+                                              </tr>
+                                              <tr>
+                                                <td>21/09/01</td>
+                                                <td>歐盟提「碳邊境稅」 台灣也將受碳稅影響</td>
+                                                <td>0:36</td>
+                                              </tr>
+                                            </tbody>
+                                          </table>
+                                    </div>
+                                </div>
+                                <div class="share col-lg-12">
+                                    <div class="card p-4">
+                                        <h3>Want to get more minutes?</h3>
+                                       <p class="mb-0">Invite your friends to AI Spokesgirl and for each eligible one that </p>
+                                       <p>signs up from your referral, we'll give you 3 more minutes free!</p>
+                                       <div>
+                                           <p style="color:#183790; font-size: 20px;" class="d-inline fw-bold">Share:</p>
+                                         
+                                           <a class="mx-4" href=""><img width="28" class="me-2" src="./static/img/userprofile/Icon awesome-facebook-square.png" alt="">Facebook</a>
+                                            <a class="mx-4" href=""><img width="28" class="me-2" src="./static/img/userprofile/Icon awesome-twitter-square.png" alt="">Twitter</a>
+                                            <a class="mx-4" href=""><img width="28" class="me-2" src="./static/img/userprofile/Icon material-email.png" alt="">Email</a>                                         
+                                       </div>
+                                     
+                                    </div>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                    
+                </div>
+            </div>
+
+        </div>
+        <!-- <div class="container-profile">         
+            <div class="card card-profile">
+               
+            </div>
+        </div>         -->
+    </div>
+    <!-- ================================================================= -->
+    <div class="modal fade" tabindex="-1" id="howto" aria-labelledby="howto" aria-hidden="true">
+        <div class="modal-dialog">
+            <div class="modal-content">
+                <div class="modal-header">
+                    <h5 class="modal-title" id="staticBackdropLabel">使用說明</h5>
+                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
+                </div>
+                <div class="modal-body">
+                    <div class="modal-terms">
+                        <ol class="ps-0">
+                            <li>1. 一句台詞請對應提供一個影像連結做為搭配</li>
+                            <li>2. 影像連結檔案格式支援:<stong class="strong">.png, jpg, .mp4</stong></li>
+                            <li>3. 點選“送出”之後需等待一段影片製作的時間,請您耐心等候,待製作完畢可於通知網址查看</li>
+                        </ol>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div> 
+    <div class="modal" tabindex="-1" id="history" aria-labelledby="history" aria-hidden="true">
+        <div class="modal-dialog modal-dialog-scrollable">
+            <div class="modal-content">
+                <div class="modal-header">
+                    <h5 class="modal-title" id="staticBackdropLabel">歷史紀錄</h5>
+                    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
+                </div>
+                <div class="modal-body">
+                    <div class="modal-terms">
+                        <div class="loader"><img src="static/img/bx_loader.gif" alt=""></div>
+                        <ol class="ps-0 historyList">
+                        </ol>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+
+    <!-- ================================================================= -->
+    <!-- footer -->
+    <footer class="fixed-bottom text-center py-2">
+
+    </footer>
+    <!-- ================================================================= -->
+  
+    <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
+    <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js'></script>
+    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
+    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script> 
+    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.18/dist/sweetalert2.all.min.js"></script>
+    <script src="static/owl.carousel.min.js"></script>
+    <script src="./script_profiles.js"></script>
+    <script type="text/javascript" src="static/lan.js"></script>
+    <script src="static/common.js"></script>
+</body>
+
+</html>

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä