Skip to content
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

feat: enhance skill #44

Merged
merged 1 commit into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/header/cool-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export default component$(
href={href}
class="group relative block h-[6rem] w-[9rem] md:h-[7.5rem] md:w-[11rem] md:text-lg"
>
<div class="absolute h-[83%] w-[95%] translate-y-2 -rotate-[20deg] rounded-[58%42%55%45%/56%45%55%44%] border border-foreground transition-transform duration-300 ease-[cubic-bezier(0.5,2.5,0.5,0.5)] group-hover:translate-y-4 group-hover:rotate-0" />
<div class="absolute h-[80%] w-[95%] translate-y-2 rotate-[20deg] rounded-[58%42%55%48%/56%45%60%44%] bg-foreground transition-transform duration-300 ease-[cubic-bezier(0.5,2.5,0.5,0.5)] group-hover:h-[81%] group-hover:w-[98%] group-hover:rotate-0 group-hover:rounded-[46%54%58%42%/48%35%65%52%]" />
<div class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-background">
<div class="absolute h-[83%] w-[95%] translate-y-2 -rotate-[20deg] rounded-[58%42%55%45%/56%45%55%44%] border border-light transition-transform duration-300 ease-[cubic-bezier(0.5,2.5,0.5,0.5)] group-hover:translate-y-4 group-hover:rotate-0" />
<div class="absolute h-[80%] w-[95%] translate-y-2 rotate-[20deg] rounded-[58%42%55%48%/56%45%60%44%] bg-light transition-transform duration-300 ease-[cubic-bezier(0.5,2.5,0.5,0.5)] group-hover:h-[81%] group-hover:w-[98%] group-hover:rotate-0 group-hover:rounded-[46%54%58%42%/48%35%65%52%]" />
<div class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-dark">
{label}
</div>
</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/components/landing/landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ScrollDown from "../scroll-down/scroll-down";
export default component$(() => {
return (
<div
class="relative flex h-[100vh] flex-col bg-cover bg-center [--bg-filter:theme(colors.background/50%)]"
class="relative flex min-h-screen flex-col bg-cover bg-center [--bg-filter:theme(colors.dark/50%)]"
style={{
backgroundImage: `linear-gradient(var(--bg-filter), var(--bg-filter)), url('${bgImg}')`,
}}
Expand Down
2 changes: 1 addition & 1 deletion src/components/scroll-down/scroll-down.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default component$(() => {
<div class="flex h-10 w-6 justify-center rounded-xl border-2 border-current">
<div class="mt-2 h-1 w-1 animate-deepBounce rounded-[50%] bg-current [animation-duration:300ms]" />
</div>
<div class="mb-3 flex flex-col py-1">
<div class="mb-6 flex flex-col py-1">
<div class="h-3 w-3 rotate-45 animate-deepPulse border-b-2 border-r-2 border-current opacity-25 [animation-delay:100ms]" />
<div class="h-3 w-3 rotate-45 animate-deepPulse border-b-2 border-r-2 border-current opacity-25 [animation-delay:200ms]" />
<div class="h-3 w-3 rotate-45 animate-deepPulse border-b-2 border-r-2 border-current opacity-25 [animation-delay:300ms]" />
Expand Down
65 changes: 65 additions & 0 deletions src/components/skill/skill.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import { component$ } from "@builder.io/qwik";

export default component$(() => {
return (
<section class="bg-warning px-4 py-8 text-dark">
<div class="overflow-hidden whitespace-nowrap text-lg lg:text-2xl xl:text-3xl">
<h2 class="mb-4 text-center font-bold">My expertise</h2>
<div class="flex flex-col gap-2 lg:gap-4 xl:gap-6">
<ul
class="flex animate-move gap-6 self-start"
style={{ "--tw-move": "calc(98vw - 100% - 2rem)" }}
>
{[
"Web Development",
"Open-source Contributor",
"Frontend",
"Backend",
"Testing",
"API Development",
"RESPONSIVE",
"Portfolio",
"REACT",
"Qwik",
"Automation",
"E-commerce",
].map((x) => (
<li key={x}>{x}</li>
))}
</ul>
<ul
class="flex animate-move flex-row-reverse gap-6 self-end"
style={{ "--tw-move": "calc(-98vw + 100% + 2rem)" }}
>
{[
"Javascript",
"Typescript",
"Rust",
"Springboot",
"C",
"C++",
"C#",
"Java",
"Lua",
"E-commerce",
"JQuery",
"Qwik",
"React js",
"Next js",
"Node js",
"MySQL",
"Tailwind CSS",
"Sass",
"MongoDB",
"Cypress",
"Selenium",
"Playwright",
].map((x) => (
<li key={x}>{x}</li>
))}
</ul>
</div>
</div>
</section>
);
});
2 changes: 1 addition & 1 deletion src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
@tailwind utilities;

:root {
@apply bg-background text-foreground;
@apply bg-dark text-light;
}
2 changes: 1 addition & 1 deletion src/routes/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Social from "~/components/social/social";
export default component$(() => {
return (
<div
class="relative flex min-h-[100vh] flex-col bg-cover bg-center [--bg-filter:theme(colors.background/50%)]"
class="relative flex min-h-screen flex-col bg-cover bg-center [--bg-filter:theme(colors.dark/50%)]"
style={{
backgroundImage: `linear-gradient(var(--bg-filter), var(--bg-filter)), url('${bgImg}')`,
}}
Expand Down
2 changes: 2 additions & 0 deletions src/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { component$ } from "@builder.io/qwik";
import type { DocumentHead } from "@builder.io/qwik-city";
import Landing from "~/components/landing/landing";
import Skill from "~/components/skill/skill";

export default component$(() => {
return (
<>
<Landing />
<Skill />
</>
);
});
Expand Down
11 changes: 8 additions & 3 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ export default {
secondary: colors.pink["500"],
success: colors.green["500"],
danger: colors.red["500"],
warning: colors.yellow["500"],
warning: colors.yellow["300"],
info: colors.cyan["500"],
foreground: colors.gray["50"],
background: colors.gray["950"],
light: colors.gray["50"],
dark: colors.gray["950"],
},
extend: {
keyframes: {
move: {
"0%": { transform: "translate3d(0,0,0)" },
"100%": { transform: "translate3d(var(--tw-move,100%),0,0)" },
},
deepPulse: {
"0%, 100%": { opacity: 1 },
"50%": { opacity: 0 },
Expand All @@ -34,6 +38,7 @@ export default {
},
},
animation: {
move: "move 30s alternate linear infinite",
deepPulse: "deepPulse 1s alternate infinite",
deepBounce: "deepBounce 1s infinite",
around: "around 1s infinite",
Expand Down