twitter hour help me lol
This commit is contained in:
@@ -25,6 +25,8 @@ function showFeeds() {
|
||||
}
|
||||
|
||||
function tweetCell(tweet) {
|
||||
const date = new Date(tweet.created_at);
|
||||
console.log(new Intl.DateTimeFormat('en-GB').format(date));
|
||||
var cell = document.createElement("div");
|
||||
cell.innerHTML =
|
||||
`<div class="tweet">
|
||||
@@ -33,6 +35,7 @@ function tweetCell(tweet) {
|
||||
<div class="tweet-name">
|
||||
<a class="tweet-nickname" href = "https://www.twitter.com/${tweet.user.screen_name}" target = "_blank">${tweet.user.name}</a>
|
||||
<a class="tweet-username" href = "https://www.twitter.com/${tweet.user.screen_name}" target = "_blank">@${tweet.user.screen_name}</a>
|
||||
<p class="tweet-date tweet-username"><em>${date.getHours()}:${date.getMinutes()}</em></p>
|
||||
</div>
|
||||
<span class="tweet-text">${tweet.text}</span>
|
||||
<div class="tweet-interactions">
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
--column-color: #1E1E1E;
|
||||
--secondary: #1D9BF0;
|
||||
}
|
||||
body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body, html, .container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -95,6 +93,7 @@ body {
|
||||
|
||||
.tweet {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
background-color: var(--tweet-color);
|
||||
border-radius: 16px;
|
||||
padding: 16px;
|
||||
@@ -112,6 +111,12 @@ body {
|
||||
padding-left: 16px;
|
||||
}
|
||||
|
||||
.tweet-name {
|
||||
display: flex;
|
||||
gap: 1.5%;
|
||||
|
||||
}
|
||||
|
||||
.tweet-interactions {
|
||||
display: flex;
|
||||
margin-top: 8px;
|
||||
@@ -152,6 +157,13 @@ body {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.tweet-date {
|
||||
color: var(--main-light);
|
||||
text-decoration: none;
|
||||
justify-self: flex-end;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.filters-search input {
|
||||
height: 28px;
|
||||
width: 100%;
|
||||
@@ -197,7 +209,6 @@ body {
|
||||
|
||||
.leftcol, .centercol, .rightcol, .searchcontainer, .popchart {
|
||||
background-color: var(--column-color);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.rightcol {
|
||||
@@ -280,4 +291,4 @@ body {
|
||||
.radius-bottom {
|
||||
border-bottom-left-radius: 16px;
|
||||
border-bottom-right-radius: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user