Skip to content

Commit

Permalink
user page styled
Browse files Browse the repository at this point in the history
  • Loading branch information
cws13003 committed Dec 4, 2017
1 parent 72e12bc commit e24dfbd
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 25 deletions.
1 change: 0 additions & 1 deletion www/application/views/profile.php

This file was deleted.

2 changes: 1 addition & 1 deletion www/application/views/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$this->load->library('form_validation');
echo validation_errors();
echo form_open('register'); ?>

<h1>Register</h1>
<h5>First Name</h5>
<input type="text" name="firstname" value="<?php echo set_value('firstname'); ?>" size="50" />
<?php echo form_error('firstname'); ?>
Expand Down
14 changes: 7 additions & 7 deletions www/application/views/templates/header.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!DOCTYPE html>

<html lang="en">
<head>
<title>Twitter Clone</title>
<link type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/css/styles.css">
<meta charset="utf-8">
</head>
<body>
<head>
<title>Twitter Clone</title>
<link type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/css/styles.css">
<meta charset="utf-8">
</head>
<body>
37 changes: 21 additions & 16 deletions www/application/views/user.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<h1>Tweets Feed</h1>
<div class="container">
<div class="row">
<?php foreach($posts as $post){?>
<div class="col-md-4">
<?php echo $post['first_name'];?>
<?php echo $post['last_name'];?>
<?php echo $post['username'];?>
</div>
<div class="col-md-8">
<?php echo $post['tweet'];?>
<?php echo $post['date_time'];?>
</div>
<?php }?>
</div>
</div>
<div class="home container">
<h1>My Tweets</h1>
<?php foreach($posts as $post){ ?>
<div class="tweet-container">
<div class="row">
<div class="col-md-6">
<?php echo "<h3>" . $post['first_name'] . " " . $post['last_name'] . "</h3>"; ?>
<?php echo "<h4>" . "@" . $post['username'] . "</h4>";?>
</div>
<div class="col-md-3 date">
<?php echo $post['date_time'];?>
</div>
</div>
<div class="row tweet italic">
<div class="col-md-12">
<?php echo "\"" . $post['tweet'] . "\"";?>
</div>
</div>
</div>
<?php }?>
</div>

0 comments on commit e24dfbd

Please sign in to comment.