Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #80

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Main #80

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,19 @@ This repository is the starter code for the project: Students will fork and clon

- Express
- Node 5.10.x or above

## Final Product

- Main page that displays user, a tweet form and past tweets
!["Main"](docs/main.png)

- User can create new tweet of upto 140 characters.
!["New-Tweet"](docs/new-tweet.png)

- Displays error if user does not enter text or input>140 characters
!["Error"](docs/error.png)

- Provides view on mobile device.
!["Mobile"](docs/mobile.png)


Binary file added docs/error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/new-tweet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 30 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "tweeter",
"version": "1.0.0",
"description": "A twitter clone by Lighthouse Labs for web bootcamp students to learn front-end dev skillz",
"main": "server/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server/index.js",
"local": "./node_modules/.bin/nodemon --watch server -e js server/index.js"
},
"author": "Lighthouse Labs",
"license": "ISC",
"dependencies": {
"body-parser": "^1.15.2",
"chance": "^1.0.2",
"express": "^4.13.4",
"md5": "^2.1.0"
},
"devDependencies": {
"nodemon": "^1.9.2"
}
}
"name": "tweeter",
"version": "1.0.0",
"description": "A twitter clone by Lighthouse Labs for web bootcamp students to learn front-end dev skillz",
"main": "server/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server/index.js",
"local": "./node_modules/.bin/nodemon --watch server -e js server/index.js"
},
"author": "Lighthouse Labs",
"license": "ISC",
"dependencies": {
"body-parser": "^1.15.2",
"chance": "^1.0.2",
"express": "^4.13.4",
"md5": "^2.1.0"
},
"devDependencies": {
"nodemon": "^1.9.2"
}
}
88 changes: 78 additions & 10 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,97 @@
<!DOCTYPE html>
<html lang="en">
<head>

<head>
<!-- Meta Information -->
<title>Tweeter - Home Page</title>

<!-- external font bungee, sorce sans pro-->
<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=Bungee&family=Source+Sans+Pro&display=swap" rel="stylesheet">

<!-- External CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="/styles/nav.css" />
<link rel="stylesheet" type="text/css" href="/styles/header.css" />
<link rel="stylesheet" type="text/css" href="/styles/new-tweet.css" />

<!-- App CSS -->
<link rel="stylesheet" href="/styles/layout.css" type="text/css" />

<!-- External JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.2/timeago.min.js" integrity="sha512-SVDh1zH5N9ChofSlNAK43lcNS7lWze6DTVx1JCXH1Tmno+0/1jMpdbR8YDgDUfcUrPp1xyE53G42GFrcM0CMVg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- App JS -->
<script type="text/javascript" src="/scripts/client.js"></script>
</head>

<body>
<!-- Top nav bar (fixed) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css">


<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0' />



</head>

<body>
<p></p>
<nav>
<span>tweeter</span>
<span class="tweeter">
Tweeter
</span>
<span class="new"> <b>Write</b> a new Tweet
<p><i class="fas fa-angle-double-down"></i></p>
</span>
</nav>
<section class="header-tweet-container">
<header class="header">

<img src="/images/profile-hex.png" />
<h2>Baani D</h2>

</header>

<!-- Page-specific (main) content here -->

<main class="form-tweet-container">
<section class="new-tweet">

<form id="tweetform" method="POST" action="/tweets/">
<div id="error"></div>
<textarea name="text" id="textarea" placeholder="What are you humming about?"></textarea>
<div>
<button type="submit" id="submit">Tweet</button>
<output name="counter" id="counter" for="tweet-text">140</output>
</div>
</form>
</section>
<section class="tweetContainer">
<p></p>
<article class="art-tweet">

<header>
<i class="far fa-user"></i>
<span> Andy</span>
<span id="at-rate"> @Newton</span>
</header>
<div>
<p>Simplicity is the ultimate sophistication.</p>
</div>
<footer>
10 days ago
<span id="icons">
<i class="far fa-flag"></i>
<i class="fas fa-retweet"></i>
<i class="far fa-heart"></i>
</span>
</footer>
</article>
</section>
</main>

</section>
<script src="/scripts/composer-char-counter.js"></script>
</body>

<!-- Page-specific (main) content here -->
<main class="container"></main>
</body>
</html>
</html>
Loading