Skip to content

Commit

Permalink
Merge pull request #50 from zsoltk/live-setup
Browse files Browse the repository at this point in the history
Remove fake entries
  • Loading branch information
zsoltk authored Oct 25, 2023
2 parents 2c2f6aa + a18797b commit eb2e9c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 170 deletions.
116 changes: 2 additions & 114 deletions shared/src/commonMain/kotlin/com/bumble/livemosaic/model/Entries.kt
Original file line number Diff line number Diff line change
@@ -1,124 +1,12 @@
package com.bumble.livemosaic.model

import androidx.compose.animation.animateColor
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import com.bumble.livemosaic.model.MosaicConfig.MOSAIC1
import com.bumble.livemosaic.ui.md_indigo_500
import com.bumble.livemosaic.ui.md_lime_500

val entries = listOf(
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "codeNinja",
message = "Having a blast at the conference!"
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "techWanderlust",
message = "Keynote was inspiring"
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "dataGeek",
message = "Who's up for a post-conference karaoke session tonight? " +
"Mind blown by the innovative ideas shared today. " +
"Great to see old friends and make new ones!"
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "codeCraftsman",
message = "Learning, networking, and free coffee – conference life is good!"
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "byteBender",
message = "Who's up for a post-conference karaoke session tonight? " +
"Mind blown by the innovative ideas shared today. " +
"Great to see old friends and make new ones!"
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "stellarCoder",
message = "L77tc0der was here"
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "codeWaveSurfer",
message = "Mind blown by the innovative ideas shared today."
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "devDreamer",
message = "Great to see old friends and make new ones!"
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "cyberPioneer",
message = "Who's up for a post-conference karaoke session tonight? " +
"Mind blown by the innovative ideas shared today. " +
"Great to see old friends and make new ones!"
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "codeMaverick",
message = "Kudos to the speakers for keeping us engaged all day."
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "gitGuru",
message = "Highlight of the day: the interactive workshop on Appyx."
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "byteBlaze",
message = "Impressed by the cool tech showcased in the exhibition hall!"
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "bugHuntingHero",
message = "Taking copious notes – my brain might explode!"
),
Entry.Text(
mosaic = MOSAIC1,
githubUserName = "algoExplorer",
message = "Attending from NYC – making my hometown proud!"
),
Entry.Image(
mosaic = MOSAIC1,
githubUserName = "codeWhizKid",
path = "cake.png",
contentScale = ContentScale.Crop
),
Entry.ComposableContent(
mosaic = MOSAIC1,
githubUserName = "pixelPirate",
content = {
val infiniteTransition = rememberInfiniteTransition()
val color by infiniteTransition.animateColor(
initialValue = md_indigo_500,
targetValue = md_lime_500,
animationSpec = infiniteRepeatable(
animation = tween(500, easing = LinearEasing),
repeatMode = RepeatMode.Reverse
)
)

Box(
modifier = Modifier
.fillMaxSize()
.background(color)
)
}
githubUserName = "zsoltk",
message = "Hello Droidcon!"
),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sealed class Entry {
data class Text(
override val mosaic: MosaicConfig,
override val githubUserName: String,
val message: String = fakeMessages.random()
val message: String
) : Entry()

data class Image(
Expand Down

This file was deleted.

0 comments on commit eb2e9c2

Please sign in to comment.