Skip to content

Commit

Permalink
fix(styles): tweaked few styles here and there. See changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
RSickenberg committed Nov 28, 2023
1 parent 8d8f439 commit 624f057
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 41 deletions.
76 changes: 76 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Contact mediums are build programmatically
- Contact mediums have border radius to fit the site homogeneity

### Fixed
- Fixed few styles on techs

## [0.1.0] - 2023-11-28
### Added
Expand Down
10 changes: 4 additions & 6 deletions src/components/CardTech.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
const { tech } = Astro.props;
import { Image } from 'astro:assets'
let imgClass = "w-[50%] sm:w-[35%] h-auto self-center sm:self-left m-3";
let imgClass = "w-[35%] lg:w-[45%] h-auto self-center sm:self-left sm:m-3";
imgClass = tech.invertOnDark ? imgClass + " dark:invert" : imgClass;
---
<card-tech class="hidden" data-techId={tech.order}></card-tech>
<div
id={"tech-card-" + tech.order}
class="card flex flex-col justify-around border-2 rounded-xl border-black dark:border-white space-y-6 md:min-w-[170px] md:min-h-[200px] will-change-[opacity]"
class="card flex flex-col py-3 lg:py-0 md:justify-center border-2 rounded-xl border-black dark:border-white space-y-4 sm:space-y-7 md:min-w-[170px] md:min-h-[200px] will-change-[opacity]"
>
<pre
class="self-left ml-2 text-black dark:text-white opacity-40">#{tech.order}</pre>
class="ml-0 sm:ml-3 text-sm md:text-base text-black dark:text-white opacity-40">#{tech.order}</pre>
<Image
src={tech.imagePath}
width={tech.imageWidth}
Expand All @@ -20,9 +20,7 @@ imgClass = tech.invertOnDark ? imgClass + " dark:invert" : imgClass;
format="webp"
class={imgClass}
/>
<h2 class="self-center text-xl sm:text-2xl text-black dark:text-white">
{tech.name}
</h2>
<h2 class="self-center text-xl sm:text-2xl text-black dark:text-white">{tech.name}</h2>
</div>

<script>
Expand Down
83 changes: 48 additions & 35 deletions src/components/Contact.astro
Original file line number Diff line number Diff line change
@@ -1,50 +1,63 @@
---
import { Icon } from 'astro-icon/components'
import {Icon} from 'astro-icon/components'
interface IContactMedium {
href: string,
iconName: string,
class?: string,
iconClass?: string,
iconSize?: number,
}
const baseContactClass = "mx-auto mt-8 rounded-xl border border-gray-800 dark:border-gray-200 py-4 px-8";
const baseIconClass = "gray-800 dark:gray-100";
const baseIconSize = 45;
const contactMediums: IContactMedium[] = [
{
href: "mailto:[email protected]",
iconName: "arcticons:mail",
},
{
href: "https://github.com/RSickenberg",
iconName: "arcticons:github",
},
{
href: "https://www.linkedin.com/in/romain-sickenberg",
iconName: "arcticons:linkedin",
},
{
href: "https://twitter.com/haux49",
iconName: "arcticons:x-twitter",
},
{
href: "/assets/pdf/onepage.pdf",
iconName: "arcticons:document-viewer",
},
];
---

<section class="min-h-screen flex justify-center items-center">
<div class="grid grid-cols-1 lg:grid-cols-2 w-[90%] mx-auto gap-10">
<article class="py-6 px-8 text-center sm:text-left">
<h2 class="text-4xl dark:text-white text-black font-bold opacity-0 contact-me">Say Hello!</h2>
<!-- Line -->
<div class="h-16 w-0.5 bg-gray-700 dark:bg-gray-200 my-6 mx-auto md:m-6 line opacity-0" />
<div class="h-16 w-0.5 bg-gray-700 dark:bg-gray-200 my-6 mx-auto md:m-6 line opacity-0"/>
<div class="opacity-0 text-center sm:text-left contact-me-methods">
<p class="text-center md:text-justify">
Here are few ways to learn more of me!<br> If you have a project, an idea or a coffee to share, be free to contact me!<br><br>
I'll try my best to make it <a class="underline decoration-2 decoration-gray-500 dark:decoration-gray-200">for you</a>.
Here are few ways to learn more of me!<br> If you have a project, an idea or a coffee to share, be
free to contact me!<br><br>
I'll try my best to make it <a
class="underline decoration-2 decoration-gray-500 dark:decoration-gray-200">for you</a>.
</p>

<div class="grid grid-cols-2 md:grid-cols-5 gap-3 md:gap-4">
<a
href="mailto:[email protected]"
class="mx-auto mt-8 inline-flex border border-gray-800 dark:border-gray-200 py-4 px-8 items-center"
>
<Icon name="arcticons:mail" size="45" class="gray-800 dark:gray-100"/>
</a>
<a
href="https://github.com/RSickenberg"
class="mx-auto mt-8 inline-flex border border-gray-800 dark:border-gray-200 py-4 px-8 items-center"
>
<Icon name="arcticons:github" size="45" class="gray-800 dark:gray-100" />
</a>
<a
href="https://www.linkedin.com/in/romain-sickenberg"
class="mx-auto mt-8 inline-flex border border-gray-800 dark:border-gray-200 py-4 px-8 items-center"
>
<Icon name="arcticons:linkedin" size="45" class="gray-800 dark:gray-100" />
</a>
<a
href="https://twitter.com/haux49"
class="mx-auto mt-8 inline-flex border border-gray-800 dark:border-gray-200 py-4 px-8 items-center"
>
<Icon name="arcticons:x-twitter" size="45" class="gray-800 dark:gray-100" />
</a>
<a
href="/assets/pdf/onepage.pdf"
class="mx-auto mt-8 inline-flex border border-gray-800 dark:border-gray-200 py-4 px-8 items-center"
>
<Icon name="arcticons:document-viewer" size="45" class="gray-800 dark:gray-100" />
</a>
<div class=`grid grid-cols-2 md:grid-cols-${contactMediums.length} gap-3 md:gap-4`>
{contactMediums.map((medium => {
return <a href={medium.href} class={medium.class ?? baseContactClass}>
<Icon name={medium.iconName} size={medium.iconSize ?? baseIconSize}
class={medium.iconClass ?? baseIconClass}/>
</a>
}))}
</div>
</div>
</article>
Expand Down

0 comments on commit 624f057

Please sign in to comment.