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

pull to merge #84

Closed
wants to merge 57 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
584948e
add dependencies
originallykevin Sep 12, 2022
249cf36
inital navbar creation
originallykevin Sep 12, 2022
0285f7c
add arrow and new container
originallykevin Sep 12, 2022
76702d5
add font style
originallykevin Sep 12, 2022
a8c4a28
initial commit
originallykevin Sep 12, 2022
f470915
fix nav header in position
originallykevin Sep 12, 2022
0858c94
add avatar header
originallykevin Sep 12, 2022
1b0a3eb
initial commit. add header detail
originallykevin Sep 12, 2022
b16a752
link header
originallykevin Sep 12, 2022
b09ed00
add background
originallykevin Sep 12, 2022
d95af82
add text to main body
originallykevin Sep 13, 2022
cf4f997
update position of main body
originallykevin Sep 13, 2022
6d52d91
add padding
originallykevin Sep 13, 2022
d0ef74f
template for tweeting interface
originallykevin Sep 13, 2022
e06d295
add compose tweet section of page. link css
originallykevin Sep 13, 2022
9b7c927
change background color
originallykevin Sep 13, 2022
949d069
initial test tweet
originallykevin Sep 13, 2022
eae8bd4
initial commit
originallykevin Sep 13, 2022
078bb04
link script to file
originallykevin Sep 13, 2022
0943794
add initial character counter
originallykevin Sep 13, 2022
5cbb096
add condition to character counter function
originallykevin Sep 13, 2022
04a4e62
add tweet container and section
originallykevin Sep 14, 2022
04f75b7
add tweet container and section
originallykevin Sep 14, 2022
76a82ab
personalize, change class for hover
originallykevin Sep 14, 2022
772df44
adjust form width
originallykevin Sep 14, 2022
2fc1b35
box shadow and hover
originallykevin Sep 14, 2022
de6c239
initial commit. implementation
originallykevin Sep 14, 2022
9637560
remove article of tweet
originallykevin Sep 14, 2022
e078a82
add id to form
originallykevin Sep 14, 2022
fdcbea5
add event listener and post request
originallykevin Sep 14, 2022
818c7e5
refactor ajax get and post
originallykevin Sep 14, 2022
d5e2360
add timeago script
originallykevin Sep 15, 2022
ed77b2a
update tweet time to dynamic and update .get
originallykevin Sep 15, 2022
ed1f904
add edge case for form submission
originallykevin Sep 15, 2022
b0f8e04
fix input tweet wrapping
originallykevin Sep 15, 2022
8a7b127
add form text resetter
originallykevin Sep 15, 2022
e4955e7
restyle page layout
originallykevin Sep 15, 2022
d074a53
add function to prevent XSS attack
originallykevin Sep 15, 2022
44212ef
change alert to error using jQuery
originallykevin Sep 15, 2022
2c818b0
add error message using jQuery
originallykevin Sep 15, 2022
2d9e5b4
add top/bottom toggle button to return top
originallykevin Sep 15, 2022
afee0a8
add top/bottom toggle button to return top
originallykevin Sep 15, 2022
567bacb
add top/bottom toggle button to return top
originallykevin Sep 15, 2022
63dd2b4
rename file from form-toggle
originallykevin Sep 15, 2022
7bba43d
edit script link
originallykevin Sep 15, 2022
7c3023f
Delete form-toggle.js
originallykevin Sep 15, 2022
c83aa87
delete file
originallykevin Sep 15, 2022
04c73d3
no change
originallykevin Sep 15, 2022
865b2eb
Merge branch 'master' of github.com:originallykevin/tweeter
originallykevin Sep 15, 2022
0d0f37a
add viewport
originallykevin Sep 15, 2022
076ef4b
add responsive design for various screen size
originallykevin Sep 16, 2022
48d1347
style tweet button
originallykevin Sep 16, 2022
a90a61f
add comments and standardize units in styling
originallykevin Sep 16, 2022
fa56cb2
update README
originallykevin Sep 16, 2022
f9f8078
rename file
originallykevin Sep 16, 2022
eca3a7c
add demonstration
originallykevin Sep 16, 2022
f536eaa
change unit of measurement
originallykevin Sep 16, 2022
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
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,30 @@

Tweeter is a simple, single-page Twitter clone.

This repository is the starter code for the project: Students will fork and clone this repository, then build upon it to practice their HTML, CSS, JS, jQuery and AJAX front-end skills, and their Node, Express back-end skills.
This app was created to practice with HTML, CSS, JS, jQuery, AJAX, and front-end development skills. As well as Node and Express back-end skills.

## Final Product

### Sending a Tweet!

!["Sending a Tweet"](https://github.com/originallykevin/tweeter/blob/master/docs/sending-tweet.gif)

### Browser View

!["Browser View"](https://github.com/originallykevin/tweeter/blob/master/docs/browser-view.gif)

### Tablet View

!["Tablet View"](https://github.com/originallykevin/tweeter/blob/master/docs/tablet-view.gif)

### Page Scrolling

!["Page Scrolling"](https://github.com/originallykevin/tweeter/blob/master/docs/page-scrolling.gif)

### Word Counter

!["Word Counter"](https://github.com/originallykevin/tweeter/blob/master/docs/error-message.gif)


## Getting Started

Expand Down
Binary file added docs/browser-view.gif
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/error-message.gif
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/page-scrolling.gif
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/sending-tweet.gif
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/tablet-view.gif
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.

Binary file added public/images/Image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
110 changes: 89 additions & 21 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,97 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta Information -->
<title>Tweeter - Home Page</title>

<!-- External CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" type="text/css" />
<head>
<!-- Meta Information -->
<title>Tweeter - Home Page</title>

<!-- App CSS -->
<link rel="stylesheet" href="/styles/layout.css" type="text/css" />
<!-- Fonts -->
<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:ital,wght@0,300;0,600;1,300;1,600&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A=="
crossorigin="anonymous" referrerpolicy="no-referrer" />

<!-- External JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- External CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
type="text/css" />

<!-- App JS -->
<script type="text/javascript" src="/scripts/client.js"></script>
</head>
<!-- App CSS -->
<link rel="stylesheet" href="/styles/layout.css" type="text/css" />
<link rel="stylesheet" href="/styles/nav.css" type="text/css" />
<link rel="stylesheet" href="/styles/header.css" type="text/css" />
<link rel="stylesheet" href="/styles/new-tweet.css" type="text/css" />

<body>
<!-- Top nav bar (fixed) -->
<nav>
<span>tweeter</span>
</nav>
<!-- External JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

<!-- Page-specific (main) content here -->
<main class="container"></main>
</body>
</html>
<!-- External Library -->
<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>
<script type="text/javascript" src="/scripts/composer-char-counter.js"></script>
<script type="text/javascript" src="/scripts/composer.js"></script>

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

</head>

<body>
<!-- Top nav bar (fixed) -->
<nav>
<span>tweeter</span>
<div class="nav-message">
<a><b>Write</b> a new tweet</a>
<div id="scroll-nav">
<i class="fa-solid fa-angles-down fa-sm"></i>
</div>
</div>
</nav>
<div>
<header class="profile">
<div class="avatar">
<img src="/images/Image.png">
</div>
<!-- <br> -->
<div class="name">
<h2>subuwu</h2>
</div>
</header>
</div>

<!-- Page-specific (main) content here -->
<main class="container">
<!-- Displaying Validation Errors With jQuery -->
<div id="error"></div>

<section class="new-tweet">
<form id="new-tweet">
<div class="tweet-form">
<label for="tweet-text"><b>What are you humming about?</b></label>
<textarea class="input" name="text" id="tweet-text"></textarea>
</div>
<div class="tweet-bar">
<button class="button" type="submit">Tweet</button>
<output class="counter" name="counter" for="tweet-text">140</output>
</div>
</form>
</section>
<section id="tweets-container">
</section>

<!-- new button for the bottom of page -->
<button id="scroll-top">
<i class="fa-solid fa-angles-up"></i>
</button>
</main>

</body>

</html>
Loading