Skip to content

Commit

Permalink
Merge pull request #348 from AnshikaAg03/main
Browse files Browse the repository at this point in the history
Enhancing progress page
  • Loading branch information
Dev-tanay authored Jul 22, 2024
2 parents cd54ee0 + 300b073 commit c1f4898
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 0 deletions.
28 changes: 28 additions & 0 deletions check-progress.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,33 @@
</header>

<div class="progress-container">

<h1>Your Rubik's Cube Progress</h1>
<div id="no-progress"></div><br>
<div class="progress-stats">
<div class="progress-box">
<h3>Total Solves</h3>
<p id="total-solves">0</p>
</div>
<div class="progress-box">
<h3>Best Time</h3>
<p id="best-time">NA</p>
</div>
<div class="progress-box">
<h3>Average Time</h3>
<p id="average-time">NA</p>
</div>
<div class="progress-box">
<h3>Types of Cubes Solved</h3>
<p id="cube-types">3x3</p>
</div>
<div class="progress-box">
<h3>Latest Solves</h3>
<ul id="recent-solves">
<!-- List of recent solves will be inserted here -->
</ul>
</div>

<h1>Your Rubik's Cube Progress</h1>
<div id="no-progress"></div>
<br />
Expand All @@ -44,6 +71,7 @@ <h1>Your Rubik's Cube Progress</h1>
</ul>
</div>
</div>


<script src="progress.js"></script>
</body>
Expand Down
95 changes: 95 additions & 0 deletions progress.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@

/* Body styling */
body {

font-family: 'Arial', sans-serif;
/* Use a clean, modern font */
font-size: 30px;
/* Base font size */
color: #f7f4f4;
/* Dark gray text for readability */
background-color: #f4f4f4;
background-image:url('https://i2.pickpik.com/photos/502/642/517/rubik-s-cube-game-cube-strategy-13845d21bb0c925716567a8a3ee7a0fd.jpg');
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
/* Light gray background */
padding: 20px;
line-height: 1.6;
}


/* Header styles */


font-family: "Space Grotesk", sans-serif;
background-image: url("https://png.pngtree.com/thumb_back/fh260/background/20210728/pngtree-purple-rubiks-cube-holographic-floating-geometric-abstract-background-image_752595.jpg");
background-size: cover;
Expand All @@ -17,6 +38,7 @@ body {
}

/* Header styling */

.header {
display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -110,6 +132,72 @@ body {
display: block;
}



/* Progress container styles */



.progress-container {

padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-top: 20px;
max-width: 900px; /* Set a maximum width */
height: 500px;
display: flex;
flex-direction: column;
justify-content: center;
padding: 20px;

}

.progress-stats {
display: grid;
grid-template-columns: repeat(3, 2fr);
gap: 20px;
margin: 0;

}

.progress-box {
background-color: #f0e5e5;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin:0;

}

.progress-box h3 {
font-size: 20px;
margin-bottom: 8px;
text-align: center;
color: #333;
}

.progress-box p {
font-size: 16px;
color: #666;
text-align: center;
}

ul {
list-style-type: none;
padding: 0;
margin: 0;
}

/* Additional styles for the layout of the two boxes below */
.progress-stats .bottom-box {
grid-column: span 2; /* Span across two columns */
}


#no-progress{
color: red;

/* Progress container styling */
.progress-container {
opacity: 0.6;
Expand Down Expand Up @@ -143,8 +231,15 @@ body {
color: #080606;
}

#recent-solves li {
background: white;
margin-top: 5px;
padding: 10px;
border-radius: 4px;

.progress-stats div {
margin-bottom: 10px;

}

.progress-stats ul {
Expand Down

0 comments on commit c1f4898

Please sign in to comment.