Skip to content

Commit

Permalink
Unification in home page
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-jagruti-a committed Dec 18, 2023
1 parent 4dc0129 commit 320cdfe
Show file tree
Hide file tree
Showing 62 changed files with 634 additions and 610 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy-backend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: DeployBackendDev

on:
push:
branches:
- "master"


jobs:
deploy-backend-dev:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deploy-frontend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: DeployFrontendDev

on:
push:
branches:
- "master"


jobs:
deploy-frontend-dev:
Expand Down
18 changes: 16 additions & 2 deletions blogs/blog.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"strings"
"time"
"utils"
"fmt"

"github.com/aws/aws-sdk-go/aws/session"
"github.com/gin-gonic/gin"
Expand Down Expand Up @@ -71,17 +72,18 @@ func Get(c *gin.Context) {
c.AbortWithStatus(http.StatusInternalServerError)
return
}

// bind data to struct
var blogs Blog
json.Unmarshal(responseData, &blogs)

filteredItems := []Item{}
existingBlogs := []Item{}

fmt.Println(blogs)
// filter weekly and newletteres
for _, item := range blogs.Items {

if !strings.Contains(strings.ToLower(item.Title), "weekly") && !strings.Contains(strings.ToLower(item.Title), "newsletter") {
item.Thumbnail = extractFirstImgSrc(item.Description)
item.Description = truncateTo20Words(item.Description)
filteredItems = append(filteredItems, item)
}
Expand Down Expand Up @@ -150,6 +152,18 @@ func truncateTo20Words(description string) string {
}
return strings.Join(words, " ") + "..."
}
func extractFirstImgSrc(description string) string {
imgRegex := regexp.MustCompile(`<img[^>]+\bsrc="([^"]+)"[^>]*>`)

match := imgRegex.FindStringSubmatch(description)

if len(match) > 1 {
return match[1]
}

return ""
}


// make array or slice unique
func Unique(arr []Item) []Item {
Expand Down
70 changes: 45 additions & 25 deletions nuxt-frontend/assets/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,53 +188,73 @@
@apply text-white;
}

.header-1 {
@apply font-opensans-bold tracking-[-0.08rem] xl:tracking-[-0.15rem] text-[2rem] leading-[2.6rem] lg:text-6xl lg:leading-[4.875rem];
.mobile-header-1 {
@apply font-opensans-bold tracking-[-0.08rem] text-[2rem] leading-[2.6rem];
}

.header-2 {
@apply font-opensans-bold tracking-[-0.08rem] xl:tracking-[-0.12rem] text-2xl leading-[2.25rem] lg:text-5xl lg:leading-[3.9rem];
.mobile-header-2 {
@apply font-opensans-bold tracking-[-0.08rem] text-[1.5rem] leading-[2.25rem];
}

.header-3 {
@apply font-opensans-semibold tracking-[-0.08rem] text-xl leading-[1.875rem] lg:text-[2rem] lg:leading-[3rem];
.mobile-header-2-regular {
@apply font-inter-regular tracking-[-0.08rem] xl:tracking-normal text-[1.5rem] leading-[2.25rem];
}
.mobile-header-2-semibold {
@apply font-inter-semibold tracking-[-0.08rem] xl:tracking-normal text-[1.5rem] leading-[2.25rem];
}
.mobile-header-3 {
@apply font-opensans-semibold tracking-[-0.08rem] xl:tracking-normal text-[1.25rem] leading-[1.875rem];
}
.mobile-header-3-regular {
@apply font-inter-regular tracking-[-0.08rem] xl:tracking-normal text-[1.25rem] leading-[1.875rem];
}
.mobile-header-3-medium {
@apply font-inter-medium tracking-[-0.08rem] xl:tracking-normal text-[1.25rem] leading-[1.875rem];
}
.mobile-header-3-semibold {
@apply font-inter-semibold tracking-[-0.08rem] xl:tracking-normal text-[1.25rem] leading-[1.875rem];
}
.desk-header-1 {
@apply font-opensans-bold tracking-[-0.15rem] text-[3.75rem] leading-[4.875rem];
}
.desk-header-2 {
@apply font-opensans-bold tracking-[-0.15rem] text-[3rem] leading-[3.9rem];
}
.desk-header-3 {
@apply font-opensans-semibold tracking-[-0.15rem] text-[2rem] leading-[3rem];
}

.sub-h1-regular {
@apply text-lg leading-[1.688rem] lg:text-2xl lg:leading-[2.25rem] font-inter-regular;
@apply font-inter-regular text-[1.125rem] leading-[1.688rem];
}

.sub-h1-semibold {
@apply text-lg leading-[1.688rem] lg:text-2xl lg:leading-[2.25rem] font-inter-semibold;
@apply font-inter-semibold text-[1.125rem] leading-[1.688rem];
}

.sub-h2-medium {
@apply lg:text-[1.375rem] lg:leading-[2.063rem] font-inter-medium;
@apply font-inter-medium text-[1.375rem] leading-[2.063rem];
}

.sub-h3-regular {
@apply text-base lg:text-xl lg:leading-[1.875rem] font-inter-regular;
@apply font-inter-regular text-base;
}

.sub-h3-medium {
@apply text-base lg:text-xl lg:leading-[1.875rem] font-inter-medium;
@apply font-inter-medium text-base;
}

.sub-h3-semibold {
@apply text-base lg:text-xl lg:leading-[1.875rem] font-inter-semibold;
@apply font-inter-semibold text-base;
}

.sub-h4-regular {
@apply font-inter-regular text-xs leading-[1.125rem] lg:text-lg lg:leading-[1.688rem];
@apply font-inter-regular text-[0.75rem] leading-[1.125rem];
}
.sub-h4-medium {
@apply font-inter-medium text-[0.75rem] leading-[1.125rem];
}

.sub-h4-semibold {
@apply font-inter-semibold text-xs leading-[1.125rem] lg:text-lg lg:leading-[1.688rem];
@apply font-inter-semibold text-[0.75rem] leading-[1.125rem];
}
.background-text {
@apply font-inter-regular text-[2.5rem] leading-[1.875rem] lg:text-[4.5rem] lg:leading-[4.5rem];
}

.primary-btn {
@apply h-12 mx-auto flex w-max items-center rounded-xl py-3 px-6 text-center;
}

.primary-color {
@apply text-[#FF9472];
}
Expand Down
Binary file added nuxt-frontend/assets/images/blog/bg/bg.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified nuxt-frontend/assets/images/contribution/animations/UIPilot.mp4
Binary file not shown.
Binary file modified nuxt-frontend/assets/images/contribution/animations/UIPilot.webm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified nuxt-frontend/assets/images/portfolio/new-portfolio/smile.mp4
Binary file not shown.
Binary file modified nuxt-frontend/assets/images/portfolio/new-portfolio/smile.webm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified nuxt-frontend/assets/images/portfolio/new-portfolio/togness.mp4
Binary file not shown.
Binary file modified nuxt-frontend/assets/images/portfolio/new-portfolio/togness.webm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
class="container absolute top-4 md:top-20 xl:top-32 w-full p-4 text-center text-[#FFF] xs:left-[13%] xll:left-[24%] xs:w-[75%]"
>
<div class="m-auto">
<p class="text-white header-1">Have an app idea?</p>
<p class="text-white mobile-header-1 lg:desk-header-1">Have an app idea?</p>

<div class="mt-2 text-white/[0.8] sub-h1-regular md:my-4">
<div class="mt-2 text-white/[0.8] sub-h1-regular lg:mobile-header-2-regular md:my-4">
See if we can make it a reality.
</div>
</div>
Expand All @@ -25,7 +25,7 @@
to="/contact"
@click.native="$mixpanel.track('tap_android_development_cta')"
>
<span class="sub-h3-semibold xl:sub-h4-semibold">Let's Chat </span>
<span class="sub-h3-semibold xl:sub-h1-semibold">Let's Chat </span>
</router-link>
</div>
</div>
Expand Down
14 changes: 7 additions & 7 deletions nuxt-frontend/components/android-app-development/BlogSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div
class="relative z-[1] h-[27rem] sm:h-[30rem] overflow-hidden lg:hidden"
>
<p class="text-center header-2 text-black-core/[0.87]">Our blogs</p>
<p class="text-center mobile-header-2 text-black-core/[0.87]">Our blogs</p>
<div class="blog mt-6 block lg:hidden">
<swiper
:slidesPerView="1.425"
Expand Down Expand Up @@ -55,7 +55,7 @@
<div
class="container flex hidden flex-col lg:block lg:min-h-[580px] lg:py-0"
>
<p class="mb-8 text-center header-2 text-black-core/[0.87]">Our blogs</p>
<p class="mb-8 text-center desk-header-2 text-black-core/[0.87]">Our blogs</p>
<div class="flex flex-row space-x-5 space-y-1">
<div
@click="openBlog(blog.link, 'tap_android_app_blog_section')"
Expand Down Expand Up @@ -181,7 +181,7 @@ export default {
image: [jacoco_400w, jacoco_800w, jacoco_desktop_400w],
publishDate: "Sep 27, 2021",
title: "Android code coverage using JaCoCo",
hovertitle: `<span class="header-3 text-black-core/[0.87]">Android<span><br><span class="sub-h1-regular text-black-core/[0.87]">Code coverage using JaCoCo</span>`,
hovertitle: `<span class="desk-header-3 text-black-core/[0.87]">Android<span><br><span class="mobile-header-2-regular text-black-core/[0.87]">Code coverage using JaCoCo</span>`,
link: "https://blog.canopas.com/android-code-coverage-using-jacoco-6639a1fc4293",
bgColor: "bg-gradient-to-b from-[#E7E7E7] to-[#DADADA]",
},
Expand All @@ -190,7 +190,7 @@ export default {
image: [mvvm_400w, mvvm_800w],
publishDate: "Dec 3, 2021",
title: "Jetpack Compose: MVVM State management in a simple way",
hovertitle: `<span class="header-3 text-white">Jetpack Compose</span><br><span class="text-white sub-h1-regular">MVVM State management in a simple way</span>`,
hovertitle: `<span class="desk-header-3 text-white">Jetpack Compose</span><br><span class="text-white mobile-header-2-regular">MVVM State management in a simple way</span>`,
link: "https://blog.canopas.com/jetpack-compose-mvvm-state-management-in-a-simple-way-4c632fa6f554",
bgColor: "bg-gradient-to-b from-[#282828] to-[#282828]",
},
Expand All @@ -199,7 +199,7 @@ export default {
image: [keyboard_400w, keyboard_800w],
publishDate: "Apr 26, 2022",
title: "Keyboard Handling In Jetpack Compose — All You Need To Know",
hovertitle: `<span class="text-white sub-h1-regular">Keyboard Handling In<br> <span class="header-3 text-white">Jetpack Compose</span><br><span class="text-white sub-h1-regular">All You Need To Know</span></span>`,
hovertitle: `<span class="text-white mobile-header-2-regular">Keyboard Handling In<br> <span class="desk-header-3 text-white">Jetpack Compose</span><br><span class="text-white mobile-header-2-regular">All You Need To Know</span></span>`,
link: "https://blog.canopas.com/keyboard-handling-in-jetpack-compose-all-you-need-to-know-3e6fddd30d9a",
bgColor: "bg-gradient-to-b from-[#070710] to-[#222241]",
},
Expand All @@ -209,7 +209,7 @@ export default {
publishDate: "Feb 17, 2022",
title:
"Retrofit — Effective error handling with Kotlin Coroutine and Result API",
hovertitle: `<span class="header-3 text-white">Retrofit</span> <br><span class="text-white sub-h1-regular">Effective error handling with Kotlin Coroutine and Result API</span>`,
hovertitle: `<span class="desk-header-3 text-white">Retrofit</span> <br><span class="text-white mobile-header-2-regular">Effective error handling with Kotlin Coroutine and Result API</span>`,
link: "https://blog.canopas.com/retrofit-effective-error-handling-with-kotlin-coroutine-and-result-api-405217e9a73d",
className: "basis-[54%]",
bgColor: "bg-gradient-to-b from-[#282828] to-[#282828]",
Expand All @@ -220,7 +220,7 @@ export default {
publishDate: "Mar 10, 2022",
title:
"Android — Send live audio stream from client to server using WebSocket and OkHttp client",
hovertitle: `<span class="header-3 text-black-core/[0.87]">Android</span><br><span class=" text-black-core/[0.87] sub-h1-regular">Send live audio stream from client to server using WebSocket and OkHttp client</span>`,
hovertitle: `<span class="desk-header-3 text-black-core/[0.87]">Android</span><br><span class=" text-black-core/[0.87] mobile-header-2-regular">Send live audio stream from client to server using WebSocket and OkHttp client</span>`,
link: "https://blog.canopas.com/android-send-live-audio-stream-from-client-to-server-using-websocket-and-okhttp-client-ecc9f28118d9",
className: "basis-[60%] ",
bgColor: "bg-gradient-to-b from-[#FEE4DF] to-[#FDCCBC]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
>
<div class="container">
<div class="flex flex-col text-center">
<span class="header-2 text-black-core-[0.87]">Case studies</span>
<span class="mobile-header-2 lg:desk-header-2 text-black-core-[0.87]">Case studies</span>
<span
class="mt-4 md:mt-6 sub-h1-regular mx-auto xl:text-[1.5rem] xl:leading-9 text-black-core/[0.60] lg:w-[80%] xl:w-[61%]"
class="mt-4 md:mt-6 sub-h1-regular lg:mobile-header-2-regular mx-auto xl:text-[1.5rem] xl:leading-9 text-black-core/[0.60] lg:w-[80%] xl:w-[61%]"
>Explore our case studies to witness how we've transformed our
client's ideas into successful Android apps.</span
>
Expand All @@ -33,7 +33,7 @@
/>

<div :class="item.textalign" class="absolute bottom-4 flex flex-col">
<span class="header-2 text-black-core/[0.87]">{{
<span class="mobile-header-2 text-black-core/[0.87]">{{
item.title
}}</span>
<span
Expand Down Expand Up @@ -100,7 +100,7 @@
class="flex flex-col w-[77%] xl:w-[48%] 2xll:w-[50%] lg:mr-auto xll:ml-auto"
>
<div>
<span class="text-[#FF9472] text-left sub-h3-semibold">
<span class="text-[#FF9472] text-left mobile-header-3-semibold">
{{ item.title }}
</span>
</div>
Expand All @@ -111,12 +111,12 @@
:target="item.target"
>
<h2
class="mt-4 font-opensans-semibold header-3 text-black-core/[0.87]"
class="mt-4 font-opensans-semibold desk-header-3 text-black-core/[0.87]"
v-html="item.deskcontent"
></h2
></a>
<span
class="mt-4 text-black-core/[0.6] sub-h3-medium"
class="mt-4 text-black-core/[0.6] sub-h3-medium md:mobile-header-3-medium "
v-html="item.description"
></span>

Expand All @@ -130,28 +130,28 @@
<div class="inline-flex p-2 lg:p-4">
<div class="p-[0.8rem]">
<span
class="font-opensans-semibold header-3 text-[#FF9472]"
class="font-opensans-semibold desk-header-3 text-[#FF9472]"
>{{ item.resultcount[0] }}</span
>
<div class="flex-1 text-black-core-[0.87] sub-h3-regular">
<div class="flex-1 text-black-core-[0.87] mobile-header-3-regular">
<span>Downloads</span>
</div>
</div>
<div class="border-l-[0.5px] p-[0.8rem]">
<span
class="font-opensans-semibold header-3 text-[#FF9472]"
class="font-opensans-semibold desk-header-3 text-[#FF9472]"
>{{ item.resultcount[1] }}</span
>
<div class="flex-1 text-black-core-[0.87] sub-h3-regular">
<div class="flex-1 text-black-core-[0.87] mobile-header-3-regular">
<span>App Rating</span>
</div>
</div>
<div class="border-l-[0.5px] p-[0.8rem]">
<span
class="font-opensans-semibold header-3 text-[#FF9472]"
class="font-opensans-semibold desk-header-3 text-[#FF9472]"
>{{ item.resultcount[2] }}</span
>
<div class="flex-1 text-black-core-[0.87] sub-h3-regular">
<div class="flex-1 text-black-core-[0.87] mobile-header-3-regular">
<span>Monthly Users</span>
</div>
</div>
Expand Down Expand Up @@ -296,7 +296,7 @@ export default {
cta: [
{
title: "",
content: `Let’s Start a <span class="header-2">New Project</span> Together`,
content: `Let’s Start a <span class="mobile-header-2">New Project</span> Together`,
images: [cta_400w, cta_800w],
className: "text-center ",
textalign:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
loading="lazy"
/>
<div
class="w-[80%] mx-auto sm:w-full text-center mt-8 text-black-core/[0.87] header-1"
class="w-[80%] mx-auto sm:w-full text-center mt-8 text-black-core/[0.87] mobile-header-1 lg:desk-header-1"
>
Let’s talk about what we can build and scale together.
</div>
Expand Down Expand Up @@ -42,7 +42,7 @@
class="h-[82%] lg:h-[80%] xl:h-[75%] border-[#00000]/[0.6] absolute left-[10%] z-0 mr-[0.2rem] mt-8 flex flex-col items-center justify-center rounded-lg border-2 py-2 lg:!mt-[5.7rem] lg:!py-12 xl:!mt-[7.8rem] xl:!py-4 2xl:!pb-16 2xl:!pt-12 2xl:pr-8 xs:mt-[2.8rem] xs:py-4"
>
<div
class="ml-[27rem] xl:ml-[27.5rem] text-black-core/[0.87] header-1 lg:!w-[47%] 2xl:!w-[60%]"
class="ml-[27rem] xl:ml-[27.5rem] text-black-core/[0.87] mobile-header-1 lg:desk-header-1 lg:!w-[47%] 2xl:!w-[60%]"
>
<span>Let’s talk about what we can build and scale together.</span>
</div>
Expand All @@ -52,7 +52,7 @@
to="/contact"
@click.native="$mixpanel.track('tap_android_development_cta')"
>
<span class="sub-h4-semibold">Contact Us </span>
<span class="sub-h1-semibold">Contact Us </span>
</router-link>
</div>
</div>
Expand Down
Loading

0 comments on commit 320cdfe

Please sign in to comment.