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: Create ContactMe Section #67

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"test": "echo \"Error no test specified\" && exit 1",
"lint": "yarn eslint --ext .js,.astro src",
"format": "yarn prettier . --write",
"format": "yarn prettier --write . --plugin=prettier-plugin-astro",
"style": "yarn run format . && yarn run lint .",
"dev": "astro dev",
"start": "astro dev",
Expand Down
21 changes: 7 additions & 14 deletions src/components/AboutMeSection.astro
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
---
import Section from "@components/Section.astro";
import ProfileComponent from "./ProfileComponent.astro";
import { Icon } from "astro-icon";
---

<Section title="About me">
<div class="main-container">
<div class="profile-container">
<div class="img-container">
<img src="/images/IMG_PROFILE.JPG" />
</div>
<h2>Santiago Torres Aragon</h2>
</div>
<ProfileComponent />
<div class="focus-container">
<a href="https://www.linkedin.com/in/santiago-torres-621632216/">
<Icon name="mdi:linkedin" />
Expand Down Expand Up @@ -47,10 +43,6 @@ import { Icon } from "astro-icon";
margin-top: 1rem;
}

.focus-container {
justify-self: center;
}

.profile-container {
justify-self: center;
}
Expand All @@ -71,10 +63,6 @@ import { Icon } from "astro-icon";
border: 1px solid var(--strong);
}

.focus-container {
display: flex;
}

.description-container {
justify-self: center;
max-width: clamp(55ch, 60vw, 80ch);
Expand All @@ -84,4 +72,9 @@ import { Icon } from "astro-icon";
font-size: var(--fs-400);
text-align: justify;
}

.focus-container {
justify-self: center;
display: flex;
}
</style>
19 changes: 19 additions & 0 deletions src/components/ContactMeSection.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
import Section from "@components/Section.astro";
---

<Section title="Contact me">
</Section>

<style>
.main-container {
display: grid;
width: 100%;
gap: 1rem;
grid-template-columns: 1fr;
margin-top: 1rem;
align-items: center;
}
</style>

<script></script>
32 changes: 32 additions & 0 deletions src/components/ProfileComponent.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
import type { Props } from "astro";
---

<div class="profile-container">
<div class="img-container">
<img src="/images/IMG_PROFILE.JPG" />
</div>
<h2>Santiago Torres</h2>
</div>

<style>
.profile-container {
justify-self: center;
}

.profile-container h2 {
font-size: var(--fs-500);
}

.img-container {
max-width: 13rem;
margin: auto;
}

.img-container img {
width: 100%;
border-radius: 50%;
object-fit: contain;
border: 1px solid var(--strong);
}
</style>
28 changes: 28 additions & 0 deletions src/components/SocialMediaButtonComponent.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
type Props = {
socialMediaLink: string;
socialMediaIcon: string;
message: string;
};

const { socialMediaLink, socialMediaIcon, message } = Astro.props;
---

<a href={socialMediaLink}>
<div class="content"></div>
</a>

<style>
[astro-icon] {
color: var(--strong);
width: 3rem;
height: 3rem;
}
a {
text-decoration: none;
}

.content {
display: flex;
}
</style>
12 changes: 10 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
---
import MainLayout from "@layout/MainLayout.astro";
import AboutMeSection from "@components/AboutMeSection.astro";
import ContactMeSection from "@components/ContactMeSection.astro";
---

<MainLayout title="index">
<AboutMeSection />
<div class="content">
<AboutMeSection />
<ContactMeSection />
</div>
</MainLayout>

<style></style>
<style>
.content {
display: grid;
}
</style>
Loading