Commit 15b5957a authored by David's avatar David

Adding a Recruiting screen

parent d54e968c
Pipeline #170 passed with stage
in 2 minutes and 24 seconds
package `is`.kow.deskscreen.clrecruiting
import javafx.geometry.Pos
import javafx.scene.layout.Priority
import tornadofx.*
class RecruitingView : View() {
val url = "www.corelogic.com/careers"
val contact = "careers@corelogic.com"
override val root = borderpane {
center = hbox {
alignment = Pos.CENTER
vbox {
alignment = Pos.CENTER
label("Find open positions at:") {
style {
fontSize = 25.px
}
}
label(url) {
style {
fontSize = 37.px
}
}
label("Contact us at:") {
style {
fontSize = 25.px
}
}
label(contact) {
style {
fontSize = 37.px
}
}
}
}
}
}
\ No newline at end of file
......@@ -156,8 +156,11 @@ class TickerView : View() {
}
}
val askUs = TickerEntry<Text>(title = "meh", content = createText("Ask us about working for CoreLogic!"), reschedule = true)
val entries = listOf(
askUs,
currentTime,
cpuTemp
)
......@@ -171,7 +174,7 @@ class TickerView : View() {
// Has to know it's parent to handle binding to proper sizes, Should do that elsewhere tho?
class MarqueeView : View() {
private val logger = KotlinLogging.logger {}
private val OFFSET = 5.0 //Amount of space between entries!
private val OFFSET = 15.0 //Amount of space between entries!
private data class ActiveTick(val entry: TickerEntry<Node>, var cleared: Boolean = false)
......
......@@ -3,6 +3,7 @@ package `is`.kow.deskscreen.views
import `is`.kow.deskscreen.DisplayController
import `is`.kow.deskscreen.TransitionsController
import `is`.kow.deskscreen.cat.CatView
import `is`.kow.deskscreen.clrecruiting.RecruitingView
import `is`.kow.deskscreen.jira.JiraView
import `is`.kow.deskscreen.temperature.TemperatureView
import `is`.kow.deskscreen.ticker.TickerView
......@@ -20,6 +21,7 @@ class DefaultView : View() {
private val namePlateView: NamePlateView by inject()
private val jiraView: JiraView by inject()
private val catView: CatView by inject()
private val recruitingView: RecruitingView by inject()
private val temperatureView: TemperatureView by inject()
private val displayController: DisplayController by inject()
private val transitionsController: TransitionsController by inject()
......@@ -32,7 +34,10 @@ class DefaultView : View() {
center = vbox {
//TODO: cat view
//this.add(jiraView.root)
this.add(catView.root)
//Cat view not ready yet! Time to build a stupid simple corelogic recruiting view
//this.add(catView.root)
alignment = Pos.CENTER
this.add(recruitingView.root)
}
bottom = tickerView.root
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment