Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove points #128

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading