Skip to content

Commit 36c2056

Browse files
committedJul 18, 2019
Tidy up
1 parent e4bbc40 commit 36c2056

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed
 

‎favicon.ico

15 KB
Binary file not shown.

‎feature-intro.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const introText = document.querySelector('.intro-text');
77

88
const date = new Date();
99
const hours = date.getHours();
10-
const minutes = date.getMinutes();
10+
// const minutes = date.getMinutes();
1111
// const day = date.getDay();
1212
// const month = date.getMonth();
1313
const dateString = date.toLocaleDateString();
@@ -19,5 +19,3 @@ introTitle.textContent = `Good ${timeOfDay}! `;
1919
introDate.textContent = `Today is ${dateString}`;
2020
introTime.textContent = `It's ${timeString}`;
2121

22-
23-
console.log(dateString,timeString,dateString2,timeOfDay,intro,introTitle,introTime,introDate,introText);

‎feature-meme.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
request("https://corporatebs-generator.sameerkumar.website/", function(response) {
22
const sentence = document.querySelector('.sentence');
33
let p = document.createElement('p')
4-
p.textContent = JSON.stringify(response.phrase)
4+
p.textContent = response.phrase;
55
sentence.appendChild(p);
66
});
77

‎index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
href="https://fonts.googleapis.com/css?family=Open+Sans:400,800&display=swap"
99
rel="stylesheet"
1010
/>
11+
<link rel="shortcut icon" href="favicon.ico" />
1112
<link rel="stylesheet" href="style.css" />
12-
<title>Document</title>
13+
<title>Trainspiration</title>
1314
</head>
1415
<body>
1516
<header>

‎style.css

+9-5
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ section {
165165
}
166166

167167
.tube-reason {
168-
transition: all 1s ;
169-
transition-timing-function: ease-in;
170-
max-height: 600px;
168+
transition: all 0.5 s ;
169+
transition-timing-function: ease-in-out;
170+
max-height: 400px;
171171
/* border-bottom: 1px solid grey; */
172172
overflow-y: hidden;
173173
}
@@ -191,17 +191,19 @@ section {
191191

192192
.sentence {
193193
position: absolute;
194+
left:0;
194195
}
195196

196197
.sentence p {
197198
font-family: "Open Sans", sans-serif;
198199
font-weight: 800;
199200
font-size: 1.5rem;
200201
color: #fff;
201-
padding: 0.5em;
202+
padding: 1rem;
202203
margin-bottom: 1em;
203204
-webkit-text-stroke: 0.1rem #000;
204205
text-align: center;
206+
max-width: 100%;
205207
}
206208

207209
.image {
@@ -222,7 +224,9 @@ section {
222224
}
223225

224226
@media only screen and (min-width: 900px){
225-
227+
body {
228+
padding: 2rem;
229+
}
226230
section {
227231

228232
max-width: 400px;

0 commit comments

Comments
 (0)
Please sign in to comment.