Skip to content

Commit

Permalink
added Contacts Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
programmerstevie committed Apr 25, 2024
1 parent 191dc8b commit 6e5d08b
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 1 deletion.
73 changes: 73 additions & 0 deletions src/lib/components/sections/Contact/Contact.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<script lang="ts">
import Container from '$lib/components/Container.svelte';
import resume_url from './resume';
import socials_data, { SocialType } from './socials_data';
const socials: SocialType[] = [SocialType.INSTAGRAM, SocialType.LINKEDIN, SocialType.GITHUB];
</script>

<footer>
<header id="CONTACT" />
<Container>
<div class="main-box">
<ul class="socials-links">
{#each socials.map((s) => socials_data[s]) as social}
<li class="link">
<a href={social.link.href} target="_blank" rel="noopener noreferrer">
<img src={social.icon_src} alt="{social.name} link" width="48px" height="48px" />
</a>
</li>
{/each}
</ul>
<a class="resume-link" href={resume_url.href} target="_blank" rel="noopener noreferrer"
>&gt; MY RESUME &lt;</a
>
</div>
</Container>
</footer>

<style lang="scss">
footer {
height: 227px;
background-color: var(--color-pf-white);
margin-top: 80px;
header {
height: 0;
}
div.main-box {
width: 100%;
height: 100%;
display: flex;
justify-content: space-between;
align-items: center;
ul.socials-links {
display: flex;
justify-content: space-between;
li.link {
&:not(:first-child) {
margin-left: 39px;
}
a {
img {
}
}
}
}
a.resume-link {
text-decoration: underline;
text-transform: uppercase;
font-size: 40px;
font-weight: 700;
color: var(--color-pf-primary);
text-decoration-thickness: 2px;
text-underline-offset: 4px;
}
}
}
</style>
1 change: 1 addition & 0 deletions src/lib/components/sections/Contact/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as default } from './Contact.svelte';
3 changes: 3 additions & 0 deletions src/lib/components/sections/Contact/resume.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const resume_url = new URL('https://drive.google.com/file/d/1jT1tWbB_gD2_Pj0JGZ46DmnbzlW6JJJY/view?usp=sharing');

export default resume_url;
35 changes: 35 additions & 0 deletions src/lib/components/sections/Contact/socials_data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import social_icon_github from '$lib/assets/icons/social/svg/Github.svg';
import social_icon_instagram from '$lib/assets/icons/social/svg/Instagram.svg';
import social_icon_linkedin from '$lib/assets/icons/social/svg/LinkedIn.svg';

export enum SocialType {
GITHUB = 'github',
INSTAGRAM = 'instagram',
LINKEDIN = 'linkedin'
}

type SocialData = {
name: string;
icon_src: string;
link: URL;
};

const socials_data: Record<SocialType, SocialData> = {
github: {
name: 'Github',
icon_src: social_icon_github,
link: new URL('https://github.com/stothesecond')
},
instagram: {
name: 'Instagram',
icon_src: social_icon_instagram,
link: new URL('https://www.instagram.com/big_simba')
},
linkedin: {
name: 'LinkedIn',
icon_src: social_icon_linkedin,
link: new URL('https://www.linkedin.com/in/programmerstevie')
}
};

export default socials_data;
3 changes: 2 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
import AboutMe from '$lib/components/sections/AboutMe';
import ToolingBar from '$lib/components/ToolingBar';
import Portfolio from '$lib/components/sections/Portfolio';
import Contact from '$lib/components/sections/Contact';
</script>

<Landing />
<AttributesBar />
<AboutMe />
<ToolingBar />
<Portfolio />
<div id="CONTACT" />
<Contact />

0 comments on commit 6e5d08b

Please sign in to comment.