Skip to content

Commit 6a7d53d

Browse files
changes in design
1 parent da12f10 commit 6a7d53d

File tree

8 files changed

+811
-165
lines changed

8 files changed

+811
-165
lines changed

images/add.svg

Lines changed: 3 additions & 0 deletions
Loading

images/close.svg

Lines changed: 3 additions & 0 deletions
Loading

images/hero_content_image.png

21.9 KB
Loading

images/menu.svg

Lines changed: 3 additions & 0 deletions
Loading

index.php

Lines changed: 191 additions & 143 deletions
Large diffs are not rendered by default.

questions.php

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,33 @@
1414

1515
foreach ($questions as $index => $question) {
1616
echo '<div class="form-group">';
17-
echo '<label><b>' . ($index + 1) . '. ' . $question . '</b></label>';
17+
echo '<label>' . ($index + 1) . '. ' . $question . '</label>';
18+
echo '<div class="check-box-lavel"></div>'; // Empty div for spacing or styling purposes
1819

19-
// This div ensures the radio buttons are in a row
2020
echo '<div class="radio-group">';
21-
22-
for ($i = 1; $i <= 5; $i++) {
21+
22+
// First radio button with "Strongly Disagree" label
23+
echo '<label class="radio-label">';
24+
echo '<span>Strongly Disagree</span>';
25+
echo '<input type="radio" name="q' . ($index + 1) . '" value="1" required>';
26+
echo '</label>';
27+
28+
// Middle radio buttons without labels
29+
echo '<div class="middle_checkbox">';
30+
for ($i = 2; $i <= 4; $i++) {
2331
echo '<label class="radio-label">';
2432
echo '<input type="radio" name="q' . ($index + 1) . '" value="' . $i . '" required>';
25-
26-
// Only show labels for first and last option
27-
if ($i === 1) {
28-
echo '<span>Strongly Disagree</span>';
29-
} elseif ($i === 5) {
30-
echo '<span>Strongly Agree</span>';
31-
}
32-
3333
echo '</label>';
3434
}
35-
35+
echo '</div>';
36+
37+
// Last radio button with "Strongly Agree" label
38+
echo '<label class="radio-label">';
39+
echo '<span>Strongly Agree</span>';
40+
echo '<input type="radio" name="q' . ($index + 1) . '" value="5" required>';
41+
echo '</label>';
42+
3643
echo '</div>'; // Close radio-group
3744
echo '</div>'; // Close form-group
3845
}
39-
?>
46+
?>

stats.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232

3333
// Display stats (only when included in index.php)
3434
if ($_SERVER["REQUEST_METHOD"] !== "POST") {
35-
echo "<table class='table table-bordered mt-3'>";
36-
echo "<tr><th>Total Uses</th><td>{$stats['total_uses']}</td></tr>";
37-
echo "<tr><th>Last Used</th><td>{$stats['last_used']}</td></tr>";
38-
echo "<tr><th>Average SUS Score</th><td>" . round($stats['average_score'], 2) . "</td></tr>";
35+
echo "<div class='custom-rounded'>";
36+
echo "<table class='table table-bordered'>";
37+
echo "<tr><td>Total Calculations</td><td>{$stats['total_uses']}</td></tr>";
38+
echo "<tr><td>Last Used</td><td>{$stats['last_used']}</td></tr>";
39+
echo "<tr><td>Average SUS Score</td><td>" . round($stats['average_score'], 2) . "</td></tr>";
3940
echo "</table>";
41+
echo "</div>";
4042
}
41-
?>
43+
?>

0 commit comments

Comments
 (0)