Skip to content

Commit

Permalink
Header for Works #1
Browse files Browse the repository at this point in the history
  • Loading branch information
darsan-in committed Jul 6, 2024
1 parent c3b9be8 commit 37df299
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 53 deletions.
6 changes: 3 additions & 3 deletions app/src/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ export default function HomePage() {
</div>

<div
className="mt-14 px-4 md:px-8"
className="mt-20 px-4 py-10 md:px-8"
id="skills">
<p className="text-center text-2xl text-gray-700 font-semibold">
<span className="text-primary text-2xl font-bold">
<p className="text-center text-4xl text-gray-700 font-semibold">
<span className="text-primary font-bold uppercase">
Technical Skills:
</span>{" "}
Have Been Worked with numerous technolgies
Expand Down
122 changes: 72 additions & 50 deletions app/src/components/works.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,61 +24,83 @@ export default function Works({
/>
</div>
) : (
<Tabs.Root
id="works"
className="max-w-screen-xl mt-2 mx-auto px-4 md:px-8 flex-col"
value={selectedTab}
onValueChange={(val) => setSelectedTab(val)}>
<Tabs.List
className="hidden gap-x-3 py-1 overflow-x-auto px-px text-sm sm:flex place-content-center"
aria-label="Project Experience">
{tabs.map((language, idx) => (
<Tabs.Trigger
key={idx}
className="data-[state=active]:bg-gray-100 data-[state=active]:text-gray-700 data-[state=active]:shadow-sm outline-gray-800 py-1.5 px-3 rounded-lg duration-150 text-gray-500 hover:text-gray-700 hover:bg-gray-100 active:bg-gray-100 font-medium"
value={language}>
{language}
</Tabs.Trigger>
))}
</Tabs.List>

{/* mobile area */}
<div className="relative text-gray-500 sm:hidden">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
className="pointer-events-none w-5 h-5 absolute right-2 inset-y-0 my-auto">
<path
fillRule="evenodd"
d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"
clipRule="evenodd"
/>
</svg>
<select
value={selectedTab}
className="py-2 px-3 w-full bg-transparent appearance-none outline-none border rounded-lg shadow-sm focus:border-gray-800 text-sm"
onChange={(e) => setSelectedTab(e.target.value)}>
<>
<div className="max-w-screen-xl mx-auto px-4 md:text-center md:px-8">
<div className="max-w-xl md:mx-auto">
<h3 className="text-gray-800 text-3xl font-semibold sm:text-4xl">
<span className="text-primary uppercase font-bold">
Projects:
</span>{" "}
Crafting Digital Solutions with Precision and Innovation
</h3>
<p className="mt-3 text-gray-600">
With a strong foundation in web, mobile, and desktop
development, I specialize in creating seamless and
efficient software solutions. Leveraging expertise in
technologies such as HTML, CSS, JavaScript, Python, and
MySQL, I am dedicated to delivering high-quality,
user-centric applications. As the founder of Cresteem, I
lead projects that consistently achieve perfect scores on
performance metrics, driving excellence in every endeavor.
</p>
</div>
</div>
<Tabs.Root
id="works"
className="max-w-screen-xl mt-6 mx-auto px-4 md:px-8 flex-col"
value={selectedTab}
onValueChange={(val) => setSelectedTab(val)}>
<Tabs.List
className="hidden gap-x-3 py-1 overflow-x-auto px-px text-sm sm:flex place-content-center"
aria-label="Project Experience">
{tabs.map((language, idx) => (
<option
<Tabs.Trigger
key={idx}
tabIndex={idx}>
className="data-[state=active]:bg-gray-100 data-[state=active]:text-gray-700 data-[state=active]:shadow-sm outline-gray-800 py-1.5 px-3 rounded-lg duration-150 text-gray-500 hover:text-gray-700 hover:bg-gray-100 active:bg-gray-100 font-medium"
value={language}>
{language}
</option>
</Tabs.Trigger>
))}
</select>
</div>
{/* mobile area ended */}
</Tabs.List>

{/* mobile area */}
<div className="relative text-gray-500 sm:hidden">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
className="pointer-events-none w-5 h-5 absolute right-2 inset-y-0 my-auto">
<path
fillRule="evenodd"
d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"
clipRule="evenodd"
/>
</svg>
<select
value={selectedTab}
className="py-2 px-3 w-full bg-transparent appearance-none outline-none border rounded-lg shadow-sm focus:border-gray-800 text-sm"
onChange={(e) => setSelectedTab(e.target.value)}>
{tabs.map((language, idx) => (
<option
key={idx}
tabIndex={idx}>
{language}
</option>
))}
</select>
</div>
{/* mobile area ended */}

{tabs.map((language, idx) => (
<Tabs.Content
key={idx}
className="py-6"
value={language}>
<WorkCard projects={projectsMeta[language]} />
</Tabs.Content>
))}
</Tabs.Root>
{tabs.map((language, idx) => (
<Tabs.Content
key={idx}
className="py-6"
value={language}>
<WorkCard projects={projectsMeta[language]} />
</Tabs.Content>
))}
</Tabs.Root>
</>
)}
</>
);
Expand Down

0 comments on commit 37df299

Please sign in to comment.