diff --git a/www/application/views/home.php b/www/application/views/home.php index 820fcf7..1c945f9 100644 --- a/www/application/views/home.php +++ b/www/application/views/home.php @@ -5,9 +5,7 @@ // shouldn't need the title and links below ?> -Twitter Clone - - +

All Tweets

@@ -19,17 +17,76 @@
+ + +
+
+
+ No tweets found"; ?> +
+
+
+
+ +
+
+
+ + +
+ "; + else if($row['username'] === "chris") echo "\"user\""; + else echo "\"user\""; + ?> +
+
+
+ " . $row['first_name'] . " " . $row['last_name'] . " " . "" . "@" . $row['username'] . "" . ""; ?> + +
+
+ format('m/d/y h:s A'); + $time_arr = str_split($timestring); + if($time_arr[count($time_arr) - 8] === '0') + unset($time_arr[count($time_arr) - 8]); + echo implode("",$time_arr); + ?> +
+
+
+
+ +
+
+
+
+ + + + +
+ + "; + else if($post['username'] === "chris") echo "\"user\""; + else echo "\"user\""; + ?> +
- " . $row['first_name'] . " " . $row['last_name'] . " " . "" . "@" . $row['username'] . "" . ""; ?> - + " . $post['first_name'] . " " . $post['last_name'] . " " . "" . "@" . $post['username'] . "" . ""; ?>
format('m/d/y h:s A'); $time_arr = str_split($timestring); @@ -40,36 +97,12 @@
-
- +
+
- - -
-
-
- " . $post['first_name'] . " " . $post['last_name'] . " " . "" . "@" . $post['username'] . "" . ""; ?> -
-
- format('m/d/y h:s A'); - $time_arr = str_split($timestring); - if($time_arr[count($time_arr) - 8] === '0') - unset($time_arr[count($time_arr) - 8]); - echo implode("",$time_arr); - ?> -
-
-
-
- -
-
diff --git a/www/application/views/templates/nav.php b/www/application/views/templates/nav.php index ae34f99..1b3560e 100644 --- a/www/application/views/templates/nav.php +++ b/www/application/views/templates/nav.php @@ -2,7 +2,7 @@
-
-
-
- " . $post['first_name'] . " " . $post['last_name'] . " " . "" . "@" . $post['username'] . "" . ""; ?> -
-
- format('m/d/y h:s A'); - $time_arr = str_split($timestring); - if($time_arr[count($time_arr) - 8] === '0') - unset($time_arr[count($time_arr) - 8]); - echo implode("",$time_arr); - ?> -
-
-
-
- -
-
-
+
+ + "; + else if($post['username'] === "chris") echo "\"user\""; + else echo "\"user\""; + ?> +
+
+
+ " . $post['first_name'] . " " . $post['last_name'] . " " . "" . "@" . $post['username'] . "" . ""; ?> +
+
+ format('m/d/y h:s A'); + $time_arr = str_split($timestring); + if($time_arr[count($time_arr) - 8] === '0') + unset($time_arr[count($time_arr) - 8]); + echo implode("",$time_arr); + ?> +
+
+
+
+ +
+
+
+ +
diff --git a/www/css/styles.css b/www/css/styles.css index 3dc9e0a..91380c4 100644 --- a/www/css/styles.css +++ b/www/css/styles.css @@ -9,6 +9,12 @@ img.home-icon { margin-left: 4em; } +img.profile-icon { + width: 75px; + margin-left: 1em; + float: left; +} + .login { max-width:45%; margin:0 auto; @@ -54,6 +60,10 @@ img.icon.reg { margin-top:0!important } +.row { + margin-left: 0px; +} + .handle { color: grey; } @@ -66,6 +76,8 @@ img.icon.reg { .tweet{ font-size: 16px; font-style: italic; + margin-left: 4em; + margin-top: -100px; } .footer { diff --git a/www/img/anon.png b/www/img/anon.png new file mode 100644 index 0000000..10b9a5a Binary files /dev/null and b/www/img/anon.png differ diff --git a/www/img/chris.png b/www/img/chris.png new file mode 100644 index 0000000..d0169da Binary files /dev/null and b/www/img/chris.png differ diff --git a/www/img/mona.png b/www/img/mona.png new file mode 100644 index 0000000..f9323f9 Binary files /dev/null and b/www/img/mona.png differ