Skip to content

Commit

Permalink
Update outdated project
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellet committed Nov 17, 2023
1 parent 980d3c7 commit 7719174
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 9 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1

- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'adopt'
cache: gradle

- name: Ensure Gradle is executable
run: chmod +x gradlew

- name: Query Browser Cache ID
id: browser-cache-id
run: echo "value=$(./gradlew -q :site:kobwebBrowserCacheId)" >> $GITHUB_OUTPUT

- name: Build with Gradle
run: ./gradlew build

- name: Cache Browser Dependencies
uses: actions/cache@v3
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.browser-cache-id.outputs.value }}

- name: Fetch kobweb
uses: robinraju/[email protected]
with:
repository: "varabyte/kobweb-cli"
tag: "v${{ env.KOBWEB_CLI_VERSION }}"
fileName: "kobweb-${{ env.KOBWEB_CLI_VERSION }}.zip"
tarBall: false
zipBall: false

- name: Unzip kobweb
run: unzip kobweb-${{ env.KOBWEB_CLI_VERSION }}.zip

- name: Run export
run: |
cd site
../kobweb-${{ env.KOBWEB_CLI_VERSION }}/bin/kobweb export --notty --layout static
- name: Directories
run: ls
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
jetbrains-compose = "1.5.1"
kobweb = "0.14.1"
kotlin = "1.9.10"
jetbrains-compose = "1.5.10"
kobweb = "0.15.0"
kotlin = "1.9.20"

[libraries]
kobweb-api = { module = "com.varabyte.kobweb:kobweb-api", version.ref = "kobweb" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fun MyImage(

Image(
src = src,
desc = contentDescription,
alt = contentDescription,
modifier = modifier
// .visibility(
// if (isLoading) Visibility.Hidden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.varabyte.kobweb.compose.ui.Modifier
import com.varabyte.kobweb.compose.ui.graphics.Color
import com.varabyte.kobweb.compose.ui.graphics.Colors
import com.varabyte.kobweb.compose.ui.modifiers.*
import com.varabyte.kobweb.silk.components.layout.Divider
import com.varabyte.kobweb.silk.components.layout.HorizontalDivider
import com.varabyte.kobweb.silk.components.style.breakpoint.Breakpoint
import com.varabyte.kobweb.silk.theme.breakpoint.rememberBreakpoint
import org.jetbrains.compose.web.css.px
Expand Down Expand Up @@ -110,7 +110,7 @@ private fun Objectives(modifier: Modifier = Modifier, breakpoint: Breakpoint) {
breakpoint = breakpoint
)
if (!isLast) {
Divider(
HorizontalDivider(
modifier = Modifier
.height(4.px)
.width(100.px)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.varabyte.kobweb.compose.ui.graphics.Colors
import com.varabyte.kobweb.compose.ui.modifiers.*
import com.varabyte.kobweb.compose.ui.styleModifier
import com.varabyte.kobweb.compose.ui.toAttrs
import com.varabyte.kobweb.silk.components.layout.Divider
import com.varabyte.kobweb.silk.components.layout.HorizontalDivider
import com.varabyte.kobweb.silk.components.style.ComponentStyle
import com.varabyte.kobweb.silk.components.style.breakpoint.Breakpoint
import com.varabyte.kobweb.silk.components.style.hover
Expand Down Expand Up @@ -85,7 +85,7 @@ fun ObjectiveCard(modifier: Modifier = Modifier, objective: Objective, breakpoin
Text(stringResource(objective.titleRes))
}

Divider(
HorizontalDivider(
modifier = Modifier
.height(4.px)
.width(120.px)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object SectionsConstants {
}

object Footer {
const val REPOSITORY_URL = "https://github.com/freshtechtips/AlrayadaLandingPage"
const val REPOSITORY_URL = "https://github.com/freshtechtips/alrayada-landing-page"
}

object About {
Expand Down

0 comments on commit 7719174

Please sign in to comment.