diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..eb89f76 --- /dev/null +++ b/.github/workflows/main.yml @@ -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/release-downloader@v1.7 + 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 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 74a84a2..ecf380c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" } diff --git a/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/components/core/MyImage.kt b/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/components/core/MyImage.kt index 5047a5f..b46c9e0 100644 --- a/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/components/core/MyImage.kt +++ b/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/components/core/MyImage.kt @@ -33,7 +33,7 @@ fun MyImage( Image( src = src, - desc = contentDescription, + alt = contentDescription, modifier = modifier // .visibility( // if (isLoading) Visibility.Hidden diff --git a/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/sections/objective/ObjectiveSection.kt b/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/sections/objective/ObjectiveSection.kt index 5bd3070..11e1a6b 100644 --- a/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/sections/objective/ObjectiveSection.kt +++ b/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/sections/objective/ObjectiveSection.kt @@ -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 @@ -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) diff --git a/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/sections/objective/components/ObjectiveCard.kt b/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/sections/objective/components/ObjectiveCard.kt index 0880b6b..617babe 100644 --- a/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/sections/objective/components/ObjectiveCard.kt +++ b/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/sections/objective/components/ObjectiveCard.kt @@ -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 @@ -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) diff --git a/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/utils/constants/SectionsConstants.kt b/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/utils/constants/SectionsConstants.kt index fcc5734..4a4fbbc 100644 --- a/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/utils/constants/SectionsConstants.kt +++ b/site/src/jsMain/kotlin/com/ahmedhnewa/alrayada_landing_page/utils/constants/SectionsConstants.kt @@ -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 {