Skip to content

Commit

Permalink
feat: remove leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
xavilien committed Jan 28, 2025
1 parent c940c68 commit 330a522
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 279 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ List of events in chronological order with times, locations, and links if applic
### Profile
View personal profile card displaying information submitted during registration - this is the same profile that is visible to recruiters. Includes links to GitHub account and resume. Leaderboard nickname is editable from this page, as well as from the leaderboard page.

### Leaderboard
Displays points ranking of all hackathon participants (using leaderboard nickname), as well as the current user's own ranking. Leaderboard nickname is editable from this page, as well as from the profile page.

## Admin Features <a name="afeatures"></a>
Admins can use the dashboard to add schedule items and check participants into events.

Expand Down
8 changes: 0 additions & 8 deletions lib/pages/checkin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,6 @@ class PointsHeader extends StatelessWidget {
const SizedBox(
height: 2,
),
Text(
"Points earned:",
style: Theme.of(context).textTheme.bodyMedium,
),
Text(
"$points pts",
style: Theme.of(context).textTheme.displayMedium,
)
],
);
}
Expand Down
22 changes: 4 additions & 18 deletions lib/pages/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import '../models/discord.dart';
import '../models/profile.dart';
import 'checkin.dart';
import 'events/index.dart';
import 'leaderboard.dart';
import 'project_submission.dart';

class Home extends StatefulWidget {
Expand Down Expand Up @@ -288,26 +287,13 @@ class _HomeState extends State<Home> {
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Text("Swag Points",
Text("Check In",
style: Theme.of(context)
.textTheme
.headlineMedium),
Text(
"Points Earned: ${userData?.totalPoints}",
style:
Theme.of(context).textTheme.bodyMedium),
SolidButton(
text: "Leaderboard",
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
settings: const RouteSettings(
name: "leaderboard"),
builder: (context) => Leaderboard()),
);
},
),
Text("Check in for meals, talks, and more!",
style: Theme.of(context).textTheme.bodyMedium,
textAlign: TextAlign.center),
SolidButton(
text: "Check In",
onPressed: () {
Expand Down
250 changes: 0 additions & 250 deletions lib/pages/leaderboard.dart

This file was deleted.

0 comments on commit 330a522

Please sign in to comment.