Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"scale" : "1x"
},
{
"filename" : "FINAL design profile mobile- initial start@2x.png",
"filename" : "FINAL design profile mobile- initial start (1).png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "FINAL design profile mobile- initial start@3x.png",
"filename" : "FINAL design profile mobile- initial start (2).png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"scale" : "1x"
},
{
"filename" : "FINAL design profile mobile- initial start@2x.png",
"filename" : "FINAL design profile mobile- initial start (1).png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "FINAL design profile mobile- initial start@3x.png",
"filename" : "FINAL design profile mobile- initial start (2).png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"scale" : "1x"
},
{
"filename" : "FINAL design profile mobile- initial start@2x.png",
"filename" : "FINAL design profile mobile- initial start (1).png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "FINAL design profile mobile- initial start@3x.png",
"filename" : "FINAL design profile mobile- initial start (2).png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"scale" : "1x"
},
{
"filename" : "FINAL design profile mobile- initial start@2x.png",
"filename" : "FINAL design profile mobile- initial start (1).png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "FINAL design profile mobile- initial start@3x.png",
"filename" : "FINAL design profile mobile- initial start (2).png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"scale" : "1x"
},
{
"filename" : "FINAL design profile mobile- initial start@2x.png",
"filename" : "FINAL design profile mobile- initial start (1).png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "FINAL design profile mobile- initial start@3x.png",
"filename" : "FINAL design profile mobile- initial start (2).png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"scale" : "1x"
},
{
"filename" : "FINAL design profile mobile- initial start@2x.png",
"filename" : "FINAL design profile mobile- initial start (1).png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "FINAL design profile mobile- initial start@3x.png",
"filename" : "FINAL design profile mobile- initial start (2).png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"scale" : "1x"
},
{
"filename" : "FINAL design profile mobile@2x.png",
"filename" : "FINAL design profile mobile (1).png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "FINAL design profile mobile@3x.png",
"filename" : "FINAL design profile mobile (2).png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "FINAL design profile mobile- initial start.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "FINAL design profile mobile- initial start (1).png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "FINAL design profile mobile- initial start (2).png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
2 changes: 1 addition & 1 deletion HackIllinois/UI/HILabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class HILabel: UILabel {
if UIDevice.current.userInterfaceIdiom == .pad {
font = HIAppearance.Font.newCountdownTextPad
} else {
font = HIAppearance.Font.newCountdownText
font = UIFont(name: "MontserratRoman-Bold", size: 30)
}

case .location:
Expand Down
29 changes: 15 additions & 14 deletions HackIllinois/ViewControllers/HICountdownViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ extension HICountdownViewController {
backgroundImageView.translatesAutoresizingMaskIntoConstraints = false
backgroundImageView.contentMode = .scaleToFill

// Set up views
// Set up countdown view
countDownView.backgroundColor = .clear // Since we're using image background
countDownView.translatesAutoresizingMaskIntoConstraints = false

Expand All @@ -138,19 +138,24 @@ extension HICountdownViewController {
if UIDevice.current.userInterfaceIdiom == .pad {
$0.font = HIAppearance.Font.timeIndicator
} else {
$0.font = HIAppearance.Font.glyph
$0.font = UIFont(name: "MontserratRoman-Bold", size: 10.5)
}
$0.text = labelString
}

// Create a vertical stack view for proper alignment
let stackView = UIStackView(arrangedSubviews: [countDownView, label])
stackView.axis = .vertical
stackView.alignment = .center
stackView.spacing = -2
stackView.translatesAutoresizingMaskIntoConstraints = false

// Add subviews
containerView.addSubview(backgroundImageView)
containerView.addSubview(countDownView)
containerView.addSubview(label)
containerView.addSubview(stackView)

// Set up constraints
NSLayoutConstraint.activate([

containerView.heightAnchor.constraint(equalToConstant: 150),
containerView.widthAnchor.constraint(equalToConstant: 90),

Expand All @@ -160,19 +165,15 @@ extension HICountdownViewController {
backgroundImageView.leadingAnchor.constraint(equalTo: containerView.leadingAnchor),
backgroundImageView.trailingAnchor.constraint(equalTo: containerView.trailingAnchor),

// CountDownView constraints
countDownView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
countDownView.topAnchor.constraint(equalTo: containerView.topAnchor, constant: 4),
countDownView.bottomAnchor.constraint(equalTo: label.topAnchor, constant: 4),
countDownView.widthAnchor.constraint(equalTo: containerView.widthAnchor, constant: -8),

// Label constraints
label.widthAnchor.constraint(equalTo: containerView.widthAnchor, constant: -8),
label.centerXAnchor.constraint(equalTo: containerView.centerXAnchor)
// Stack view constraints (centering the countdown view and label)
stackView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
stackView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
stackView.widthAnchor.constraint(equalTo: containerView.widthAnchor, constant: -8)
])

return containerView
}


override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
Expand Down
21 changes: 7 additions & 14 deletions HackIllinois/ViewControllers/HIHomeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,18 @@ extension HIHomeViewController {
setupRefreshControl()

// Initialize the UIImageView
transparentImageView = UIImageView()
transparentImageView.translatesAutoresizingMaskIntoConstraints = false // Enable Auto Layout
transparentImageView.contentMode = .scaleAspectFit
transparentImageView = UIImageView(frame: view.bounds)
transparentImageView.contentMode = .scaleAspectFill
transparentImageView.alpha = 0
// #imageLiteral(resourceName: "HomeTagsToggle")

if UIDevice.current.userInterfaceIdiom == .pad {
transparentImageView.image = #imageLiteral(resourceName:"HomeTagsToggle1")
transparentImageView.image = UIImage(named: "HomepageTags")
} else {
transparentImageView.image = #imageLiteral(resourceName:"HomeTagsToggle1")
transparentImageView.image = UIImage(named: "HomepageTags")
}

// Add the UIImageView to the view hierarchy
// Add the UIImageView to your view hierarchy
view.addSubview(transparentImageView)

// Set Auto Layout constraints for desired size and position
NSLayoutConstraint.activate([
transparentImageView.centerXAnchor.constraint(equalTo: view.centerXAnchor),
transparentImageView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 60)
])
view.bringSubviewToFront(transparentImageView)
}


Expand Down