Skip to content

Commit

Permalink
added contacts to home screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanazf committed May 3, 2024
1 parent 7d601cd commit 4ff903a
Show file tree
Hide file tree
Showing 9 changed files with 117 additions and 23 deletions.
3 changes: 0 additions & 3 deletions src/assets/components/Nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ export default function Nav() {
<li>
<a href="/showcase">Showcase</a>
</li>
<li>
<a href="/contact">Contact</a>
</li>
<li>
<ThemeChange />
</li>
Expand Down
6 changes: 3 additions & 3 deletions src/assets/svg/icons/brands/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/assets/svg/icons/brands/gmail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/assets/svg/icons/brands/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 13 additions & 8 deletions src/assets/svg/icons/brands/react.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ h6 {
margin: 0;
}

a,
a:visited,
a:hover,
a:active {
color: inherit;
}

div,
section,
main {
Expand Down
4 changes: 0 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ render(
path="/wiki"
component={WikiHome}
/>
<Route
path="/contact"
component={Contact}
/>
<Route
path="/showcase"
component={Showcase}
Expand Down
45 changes: 45 additions & 0 deletions src/pages/Home/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,48 @@
background: hsl(var(--info-hue) var(--secondary-sl) / 0.3);
backdrop-filter: blur(6px) saturate(180%);
}
.home_wrap h1 {
padding-top: 0.318em;
}

.home_contacts {
display: flex;
justify-content: center;
gap: 1em;
}

.home_contact a {
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
padding: 0.3em;
background-color: hsl(var(--dark-hue) 30 10);
& svg {
margin: 0;
padding: 0;
}
}
.home_contact:nth-child(1) {
& svg {
stroke: hsl(218 100 50);
}
}
.home_contact:nth-child(2) {
& svg {
stroke: currentColor;
}
}
.home_contact:nth-child(3) {
& svg {
stroke: hsl(var(--danger-hue) var(--secondary-sl));
}
}
.home_contact:nth-child(4) {
& svg {
stroke: hsl(var(--light-hue) var(--primary-sl));
}
}

.home_snippets {
display: grid;
Expand All @@ -14,6 +56,9 @@
}

:global(.light) {
& .home_contact a {
background-color: hsl(var(--light-neutral));
}
& .home_wrap {
background: hsl(var(--light-hue) var(--secondary-sl) / 0.3);
}
Expand Down
48 changes: 47 additions & 1 deletion src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,58 @@
import Experience from '../../assets/components/Experience';
import Toolkit from '../../mdx/Blog/Toolkit.mdx';

import { useSVG as DynamicSVG } from '../../assets/svg/SVGLoader';
import styles from './Home.module.css';

function Home() {
return (
<main class={styles.home_wrap}>
<h1>Oleksandr Marnov</h1>
<div class={styles.home_contacts}>
<span class={styles.home_contact}>
<a
target="_blank"
href="https://linkedin.com/in/nautylus"
>
<DynamicSVG
iconName="linkedin"
brand
/>
</a>
</span>
<span class={styles.home_contact}>
<a
target="_blank"
href="https://github.com/Xanazf"
>
<DynamicSVG
iconName="github"
brand
/>
</a>
</span>
<span class={styles.home_contact}>
<a
target="_blank"
href="mailto:hotdamnsucka@gmail.com"
>
<DynamicSVG
iconName="gmail"
brand
/>
</a>
</span>
<span class={styles.home_contact}>
<a
target="_blank"
href="https://xanazf.github.io/react-portfolio"
>
<DynamicSVG
iconName="react"
brand
/>
</a>
</span>
</div>
<div class={styles.home_experience_wrap}>
<Experience />
</div>
Expand Down

0 comments on commit 4ff903a

Please sign in to comment.