Ver Fonte

TC:autopush funct

Toby Chui há 6 anos atrás
pai
commit
18aff34740
3 ficheiros alterados com 80 adições e 4 exclusões
  1. 2 1
      TC/autopush.bat
  2. 75 0
      src/home.php
  3. 3 3
      src/index.php

+ 2 - 1
TC/autopush.bat

@@ -2,4 +2,5 @@ cd ../
 git pull
 git add *
 git commit -m "TC:autopush funct"
-git push
+git push
+cd TC

+ 75 - 0
src/home.php

@@ -0,0 +1,75 @@
+<?php
+include_once 'auth.php';
+//Get information of local data storage from auth.php
+$userAccountName = $_SESSION['login']; 
+$dataStorage = $sysConfigDir . '/userdata/' .  $_SESSION['login'] . "/"; 
+
+?>
+<html>
+<head>
+
+<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+<title>TeaBag.tw</title>
+<link rel="stylesheet" href="script/tocas/tocas.css">
+<script src="script/tocas/tocas.js"></script>
+<script src="script/jquery.min.js"></script>
+<style>
+.extrapadding{
+	padding-left:10%;
+	padding-right:10%;
+}
+.removePadding{
+	padding:0px !important;
+}
+.active.item{
+	color:#4287f5 !important;
+	font-weight: bold !important;
+}
+.postAvator{
+	height:50px !important;
+	padding-right:25px;
+}
+.teabag.card{
+	max-width:350px;
+}
+.nopadding{
+	padding:0px !important;
+}
+.selectable{
+	cursor:pointer;
+	padding:5px !important;
+}
+.selectable:hover{
+	background-color:#f2f2f2 !important;
+}
+.online{
+	color: #88db99;
+}
+.linebreak{
+	white-space: pre-wrap;
+}
+</style>
+</head>
+	<body>
+	<div class="ts tabbed menu extrapadding">
+		<a class="item" href="index.php"><img src="img/minilogo.png" style="height:25px;"></a>
+		<a class="active item" href="home.php"><i class="home icon"></i> Home</a>
+		<a class="item" href="index.php"><i class="user outline icon"></i>Timeline</a>
+		<a class="item"><i class="mail outline icon"></i>Notification</a>
+		<div class="right item removePadding">
+		<div class="ts icon tiny input">
+			<input type="text" placeholder="Search...">
+			<i class="circular search link icon"></i>
+		</div>
+		<a class="item" href="logout.php"><i class="log out icon"></i>Logout</a>
+		</div>
+	</div>
+	<div class="ts container">
+		<?php
+			//Show all the other's post in this page
+			
+			
+		?>
+	</div>
+	</body>
+</html>

+ 3 - 3
src/index.php

@@ -68,8 +68,8 @@ $userIcon = getUserIconPath();
 <body>
 <div class="ts tabbed menu extrapadding">
 	<a class="item" href="index.php"><img src="img/minilogo.png" style="height:25px;"></a>
-    <a class="active item" href="index.php"><i class="home icon"></i> Home</a>
-    <a class="item"><i class="user outline icon"></i>Timeline</a>
+    <a class="item" href="home.php"><i class="home icon"></i> Home</a>
+    <a class="active item" href="index.php"><i class="user outline icon"></i>Timeline</a>
 	<a class="item"><i class="mail outline icon"></i>Notification</a>
 	<div class="right item removePadding">
 	<div class="ts icon tiny input">
@@ -102,7 +102,7 @@ $userIcon = getUserIconPath();
 			</div>
 		</div>
 		<!-- 聊天室列表--> 
-		<div class="ts segment">
+		<div class="ts segment" style='height:300px; overflow-y:auto;'>
 			<div class="ts nopadding comments">
 				<div class="comment selectable">
 					<a class="avatar">