mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
Still altering the scroll div + minor change to clue page
making a minor change to the clue page so that the clue page renders the clues properly for the ones that are found , this is so that the found clues have their time stamp in the correct places.
This commit is contained in:
1 parent
fe09c45679
commit
44a61c9220
2 files changed
+29
-16
No files matched your search
+21
-12
@@ -260,7 +260,7 @@ export default function TeamPage({ params }) {
|
|||||||
position: relative;
|
position: relative;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 70px;
|
padding-bottom: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-wrapper {
|
.content-wrapper {
|
||||||
@@ -270,7 +270,8 @@ export default function TeamPage({ params }) {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 80px 0 100px 0;
|
padding: 20px 0 120px 0;
|
||||||
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.waves-container {
|
.waves-container {
|
||||||
@@ -339,28 +340,34 @@ export default function TeamPage({ params }) {
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
padding: 60px 20px 80px 20px;
|
padding: 60px 20px 80px 20px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
width: 90%;
|
width: 90vw;
|
||||||
max-width: 800px;
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 60vh;
|
flex-grow: 1;
|
||||||
|
min-height: 70vh;
|
||||||
|
height: 100%;
|
||||||
|
margin-top: 30px;
|
||||||
|
margin-bottom: 40px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width < 800px) {
|
||||||
.scroll-background {
|
.scroll-background {
|
||||||
width: 95%;
|
width: 95%;
|
||||||
padding: 50px 15px 70px 15px;
|
padding: 50px 15px 70px 15px;
|
||||||
min-height: 50vh;
|
min-height: 60vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.members-title {
|
.members-title {
|
||||||
margin-top: -20px;
|
margin-top: -25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.team-actions {
|
.team-actions {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
bottom: 70px;
|
bottom: 70px;
|
||||||
}
|
}
|
||||||
|
.member-card {
|
||||||
|
max-width: 300px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.members-container {
|
.members-container {
|
||||||
@@ -368,6 +375,7 @@ export default function TeamPage({ params }) {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.members-title {
|
.members-title {
|
||||||
@@ -376,15 +384,16 @@ export default function TeamPage({ params }) {
|
|||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
color: #68543c;
|
color: #68543c;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: -30px;
|
margin-top: -50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.members-content {
|
.members-content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
flex-grow: 1;
|
||||||
padding: 10px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
padding: 10px;
|
||||||
|
min-height: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.members-list {
|
.members-list {
|
||||||
@@ -490,7 +499,7 @@ export default function TeamPage({ params }) {
|
|||||||
|
|
||||||
@media (min-height: 1000px) {
|
@media (min-height: 1000px) {
|
||||||
.scroll-background {
|
.scroll-background {
|
||||||
min-height: 65vh;
|
min-height: 75vh;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`}</style>
|
`}</style>
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export default function StatsPage() {
|
|||||||
{clue.title || `Clue #${clue.id}`}
|
{clue.title || `Clue #${clue.id}`}
|
||||||
</div>
|
</div>
|
||||||
<div className="clue-time">
|
<div className="clue-time">
|
||||||
{new Date(clue.found_at).toLocaleTimeString()}
|
Found at: {new Date(clue.found_at).toLocaleTimeString()}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
@@ -109,7 +109,7 @@ export default function StatsPage() {
|
|||||||
)}
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h3 className="section-title">
|
<h3 className="section-title section-title-skipped">
|
||||||
Skipped Clues ({skippedClues?.length || 0})
|
Skipped Clues ({skippedClues?.length || 0})
|
||||||
</h3>
|
</h3>
|
||||||
<ul className="clue-list">
|
<ul className="clue-list">
|
||||||
@@ -121,7 +121,7 @@ export default function StatsPage() {
|
|||||||
{clue.title || `Clue #${clue.id}`}
|
{clue.title || `Clue #${clue.id}`}
|
||||||
</div>
|
</div>
|
||||||
<div className="clue-time">
|
<div className="clue-time">
|
||||||
Skipped at {new Date(clue.found_at).toLocaleTimeString()}
|
Skipped at: {new Date(clue.found_at).toLocaleTimeString()}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
@@ -279,6 +279,10 @@ export default function StatsPage() {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section-title-skipped {
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
.clue-list {
|
.clue-list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -289,7 +293,7 @@ export default function StatsPage() {
|
|||||||
padding: 12px 15px;
|
padding: 12px 15px;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid #eee;
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 10px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border-left: 3px solid #4caf50;
|
border-left: 3px solid #4caf50;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user