Skip to content

Commit

Permalink
Add X
Browse files Browse the repository at this point in the history
(cherry picked from commit a7dafce)
  • Loading branch information
Treetrain1 committed May 16, 2024
1 parent 05ba738 commit 37a6b62
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
jetbrains-compose = "1.6.2"
kobweb = "0.17.2"
kobweb = "0.17.3"
kotlin = "1.9.23"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,28 @@ private fun SocialButtonItem(social: SocialButton) {
private fun SocialBar() {
val socials = remember {
listOf(
SocialButton(
"https://github.com/FrozenBlock",
"/social/github.svg",
Color.Companion.rgb(0xFFFFFF),
Color.Companion.rgb(0xC0C0C0)
),
SocialButton(
"https://discord.com/invite/frozenblock-modding-oasis-780746010614956112",
"/social/discord.svg",
Color.Companion.rgb(0x5865F2),
Color.Companion.rgb(0x7883f4)
),
SocialButton(
"https://github.com/FrozenBlock",
"/social/github.svg",
Color.Companion.rgb(0xFFFFFF),
Color.Companion.rgb(0xC0C0C0)
),
"https://twitter.com/FB_Oasis",
"/social/x.svg",
Color.Companion.rgb(0x000000)
)

// TODO: Add Modrinth, X

// these buttons are just for testing
SocialButton(
/*SocialButton(
"https://github.com/FrozenBlock",
"/social/github.svg",
Color.Companion.rgb(0xFFFFFF),
Expand All @@ -102,12 +109,13 @@ private fun SocialBar() {
"/social/github.svg",
Color.Companion.rgb(0xFFFFFF),
Color.Companion.rgb(0xC0C0C0)
)
)*/
)
}

SimpleGrid(
numColumns(1, md = 3, lg = 5),
numColumns(3, lg = 3),
//numColumns(3, lg = 5),
Modifier
.padding(2.cssRem)
.gap(1.5.cssRem)
Expand Down
3 changes: 3 additions & 0 deletions site/src/jsMain/resources/public/social/x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 37a6b62

Please sign in to comment.