Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2ee487c

Browse files
fe/refactor: Make UX more cleaner
1 parent 3698d21 commit 2ee487c

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

‎components/JoinStream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class JoinStream extends Component {
1212
if (
1313
stored.loggedIn &&
1414
!confirm(
15-
`Are you sure you want to log out from ${stored.stream.title} stream?`
15+
`YOUR PROGRESS WILL BE LOST. Are you sure you want to log out from ${stored.stream.title} stream?`
1616
)
1717
)
1818
return;

‎index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<h2 class="logo"><span class="logo-text">LeetStream</span> 🌊</h2>
3030
</a>
3131
<ul>
32-
<li>🏠 <a href="/" class="active">Home</a></li>
32+
<liid="problem-of-today">👨‍💻 <a href="/" class="active">Problem of Today</a></li>
3333
<li>📝 <a href="#newStream">New Stream</a></li>
3434
<li>📚 <a href="#usage">How to Use</a></li>
3535
<li>🔎 <a href="#problemsDistribution">Problems Distribution</a></li>

‎script.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,16 @@ function activeNavLink() {
5252
);
5353
if (activeLink) activeLink.classList.add("active");
5454
if (UserDb.get().loggedIn) {
55-
document.querySelector("#export").style.display = "block";
56-
document.querySelector("#logout").style.display = "block";
55+
document.querySelector("#export").style.display = "inline";
56+
document.querySelector("#logout").style.display = "inline";
57+
document.querySelector("#problem-of-today").style.display = "inline";
5758
}
5859
}
5960

6061
document.querySelector("#logout").addEventListener("click", () => {
6162
if (
6263
!confirm(
63-
`Are you sure you want to log out from ${UserDb.get().stream.title}?`
64+
`YOUR PROGRESS WILL BE LOST. Are you sure you want to log out from ${UserDb.get().stream.title}?`
6465
)
6566
)
6667
return;

‎style.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ button>span {
278278
padding: .375rem .75rem;
279279
font-size: 1rem;
280280
font-weight: 500;
281-
display: none;
282281
}
283282

284283
#logout {
@@ -288,6 +287,9 @@ button>span {
288287
padding: 0.375rem 0.75rem;
289288
font-size: 1rem;
290289
font-weight: 400;
290+
}
291+
292+
#problem-of-today, #export, #logout {
291293
display: none;
292294
}
293295

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /