-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Website about us profile update #237
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,5 +1,6 @@ | ||||||||||||||
import { GraphExtended, GraphItem } from '../../graph'; | ||||||||||||||
import SectionWrapper from '../section-wrapper'; | ||||||||||||||
import aboutUsBanner from '~/images/about-us/about-us-banner-1.jpg'; | ||||||||||||||
|
||||||||||||||
const AboutMain = () => { | ||||||||||||||
return ( | ||||||||||||||
|
@@ -11,7 +12,13 @@ const AboutMain = () => { | |||||||||||||
</div> | ||||||||||||||
<GraphExtended> | ||||||||||||||
<div className="wb-grid wb-grid-cols-1 wb-grid-rows-[352px_auto] md:wb-grid-cols-none wb-gap-3xl md:wb-gap-5xl"> | ||||||||||||||
<GraphItem className="wb-bg-surface-basic-subdued"> </GraphItem> | ||||||||||||||
<GraphItem className="wb-bg-surface-basic-subdued wb-relative"> | ||||||||||||||
<img | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (complexity): Consider creating a separate The new code introduces increased complexity due to additional nesting and inline styles. Hardcoding styles directly in the JSX makes the code less maintainable and reduces reusability. To improve readability and maintainability, consider creating a separate import { GraphExtended, GraphItem } from '../../graph';
import SectionWrapper from '../section-wrapper';
import aboutUsBanner from '~/images/about-us/about-us-banner-1.jpg';
// Create a reusable component for the image with overlay
const ImageWithOverlay = ({ src, alt, overlayColor }) => (
<div className="wb-relative wb-h-full wb-w-full">
<img src={src} alt={alt} className="wb-h-full wb-w-full wb-object-cover" />
<div className="wb-absolute wb-inset-0" style={{ backgroundColor: overlayColor }} />
</div>
);
const AboutMain = () => {
return (
<SectionWrapper className="wb-flex wb-flex-col wb-w-full">
<div className="wb-flex wb-flex-col wb-gap-3xl wb-text-center">
<h1 className="wb-heading3xl-marketing md:wb-heading4xl-marketing lg:wb-heading5xl-marketing wb-text-text-default">
About us
</h1>
</div>
<GraphExtended>
<div className="wb-grid wb-grid-cols-1 wb-grid-rows-[352px_auto] md:wb-grid-cols-none wb-gap-3xl md:wb-gap-5xl">
<GraphItem className="wb-bg-surface-basic-subdued">
<ImageWithOverlay src={aboutUsBanner.src} alt="About Us Banner" overlayColor="#0000008c" />
</GraphItem>
<div className="wb-grid wb-grid-cols-1 md:wb-grid-cols-[448px_auto] wb-gap-3xl md:wb-gap-5xl xl:wb-h-[544px] 2xl:wb-h-[480px] 3xl:wb-h-[320px]">
<GraphItem className="wb-bg-surface-basic-subdued wb-p-5xl">
<span className="wb-text-text-default wb-headingXl-marketing md:wb-heading2xl-marketing lg:wb-heading3xl-marketing">
We make development a breeze, saving developers' time with our ultra-efficient platform
</span>
</GraphItem>
<GraphItem className="wb-bg-surface-basic-subdued wb-p-5xl">
<span className="wb-bodyLg md:wb-bodyXl lg:wb-bodyXXl wb-text-text-strong">
At Kloudlite, we understand the challenges developers face because we've experienced them ourselves. We know how precious your time is, so we created a platform to streamline and simplify the development process. Our mission is to provide you with the tools for a seamless, productive experience. With Kloudlite, you can easily integrate any Kubernetes cluster, whether on the cloud or locally. We're here to make development smoother, faster, and more enjoyable. Join us and let’s build something amazing together.
</span>
</GraphItem>
</div>
</div>
</GraphExtended>
</SectionWrapper>
);
};
export default AboutMain; This refactor improves readability, reusability, and maintainability. |
||||||||||||||
src={aboutUsBanner.src} | ||||||||||||||
className="wb-h-full wb-w-full wb-object-cover" | ||||||||||||||
/> | ||||||||||||||
<div className="wb-absolute wb-inset-0 wb-bg-[#0000008c]" /> | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Consider using a CSS variable for the background color Using a CSS variable for the background color would make it easier to maintain and update the color scheme across the application.
Suggested change
|
||||||||||||||
</GraphItem> | ||||||||||||||
<div className="wb-grid wb-grid-cols-1 md:wb-grid-cols-[448px_auto] wb-gap-3xl md:wb-gap-5xl xl:wb-h-[544px] 2xl:wb-h-[480px] 3xl:wb-h-[320px]"> | ||||||||||||||
<GraphItem className="wb-bg-surface-basic-subdued wb-p-5xl"> | ||||||||||||||
<span className="wb-text-text-default wb-headingXl-marketing md:wb-heading2xl-marketing lg:wb-heading3xl-marketing"> | ||||||||||||||
|
@@ -20,18 +27,16 @@ const AboutMain = () => { | |||||||||||||
</span> | ||||||||||||||
</GraphItem> | ||||||||||||||
<GraphItem className="wb-bg-surface-basic-subdued wb-p-5xl"> | ||||||||||||||
<span className="wb-bodyLg md:wb-bodyXl lg:wb-bodyXXl wb-text-text-soft"> | ||||||||||||||
<span className="wb-text-text-default"> | ||||||||||||||
At Kloudlite, we understand the challenges developers face | ||||||||||||||
because we've experienced them ourselves. We know how precious | ||||||||||||||
your time is, so we created a platform to streamline and | ||||||||||||||
simplify the development process. Our mission is to provide | ||||||||||||||
you with the tools for a seamless, productive experience. With | ||||||||||||||
Kloudlite, you can easily integrate any Kubernetes cluster, | ||||||||||||||
whether on the cloud or locally. We're here to make | ||||||||||||||
development smoother, faster, and more enjoyable. Join us and | ||||||||||||||
let’s build something amazing together. | ||||||||||||||
</span> | ||||||||||||||
<span className="wb-bodyLg md:wb-bodyXl lg:wb-bodyXXl wb-text-text-strong"> | ||||||||||||||
At Kloudlite, we understand the challenges developers face | ||||||||||||||
because we've experienced them ourselves. We know how precious | ||||||||||||||
your time is, so we created a platform to streamline and | ||||||||||||||
simplify the development process. Our mission is to provide you | ||||||||||||||
with the tools for a seamless, productive experience. With | ||||||||||||||
Kloudlite, you can easily integrate any Kubernetes cluster, | ||||||||||||||
whether on the cloud or locally. We're here to make development | ||||||||||||||
smoother, faster, and more enjoyable. Join us and let’s build | ||||||||||||||
something amazing together. | ||||||||||||||
</span> | ||||||||||||||
</GraphItem> | ||||||||||||||
</div> | ||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
import consts from '~/app/utils/const'; | ||
import consts, { | ||
githubPrefix, | ||
linkedInPrefix, | ||
twitterPrefix, | ||
} from '~/app/utils/const'; | ||
import { IconButton } from 'kl-design-system/atoms/button'; | ||
import { GithubLogo, LinkedinLogo, TwitterNewLogo } from '@jengaicons/react'; | ||
import { | ||
GithubLogo, | ||
Globe, | ||
LinkedinLogo, | ||
TwitterNewLogo, | ||
} from '@jengaicons/react'; | ||
import Link from 'next/link'; | ||
import { Block } from '../../commons'; | ||
import { GraphItem } from '../../graph'; | ||
import SectionWrapper from '../section-wrapper'; | ||
import { cn } from '~/app/utils/commons'; | ||
|
||
const AboutTeam = () => { | ||
return ( | ||
|
@@ -26,7 +36,10 @@ by a dedicated and visionary leadership focused on pushing the boundaries of inn | |
<img | ||
src={t.image} | ||
alt={t.name} | ||
className="wb-h-full wb-w-full wb-object-cover" | ||
className={cn( | ||
'wb-h-full wb-w-full wb-object-cover', | ||
t.imageClassName, | ||
)} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Check for undefined imageClassName Ensure that t.imageClassName is always defined or provide a default value to avoid potential runtime errors. |
||
/> | ||
)} | ||
</div> | ||
|
@@ -40,30 +53,50 @@ by a dedicated and visionary leadership focused on pushing the boundaries of inn | |
</span> | ||
</div> | ||
<div className="wb-flex wb-flex-row wb-items-center wb-gap-lg"> | ||
<IconButton | ||
icon={<LinkedinLogo />} | ||
variant="plain" | ||
linkComponent={Link} | ||
toLabel="href" | ||
to={t.linkedin} | ||
size="xs" | ||
/> | ||
<IconButton | ||
icon={<TwitterNewLogo />} | ||
variant="plain" | ||
linkComponent={Link} | ||
toLabel="href" | ||
to={t.x} | ||
size="xs" | ||
/> | ||
<IconButton | ||
icon={<GithubLogo />} | ||
variant="plain" | ||
linkComponent={Link} | ||
toLabel="href" | ||
to={t.github} | ||
size="xs" | ||
/> | ||
{t.linkedin && ( | ||
<IconButton | ||
icon={<LinkedinLogo />} | ||
variant="plain" | ||
linkComponent={Link} | ||
toLabel="href" | ||
to={linkedInPrefix + t.linkedin} | ||
size="xs" | ||
target="__blank__" | ||
/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Incorrect target attribute value The value for the target attribute should be "_blank" instead of "blank" to open the link in a new tab. |
||
)} | ||
{t.x && ( | ||
<IconButton | ||
icon={<TwitterNewLogo />} | ||
variant="plain" | ||
linkComponent={Link} | ||
toLabel="href" | ||
to={twitterPrefix + t.x} | ||
size="xs" | ||
target="__blank__" | ||
/> | ||
)} | ||
{t.github && ( | ||
<IconButton | ||
icon={<GithubLogo />} | ||
variant="plain" | ||
linkComponent={Link} | ||
toLabel="href" | ||
to={githubPrefix + t.github} | ||
size="xs" | ||
target="__blank__" | ||
/> | ||
)} | ||
{t.web && ( | ||
<IconButton | ||
icon={<Globe />} | ||
variant="plain" | ||
linkComponent={Link} | ||
toLabel="href" | ||
to={t.web} | ||
size="xs" | ||
target="__blank__" | ||
/> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Avoid using important flag in class names
Using the important flag in class names can lead to specificity issues and make the CSS harder to maintain. Consider refactoring the styles to avoid using it.