Skip to content

Commit

Permalink
Refactor UI layout and navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
cdans committed Feb 22, 2024
1 parent ffa7f58 commit eb36b6a
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 53 deletions.
8 changes: 8 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,17 @@ body {
margin: 0 12px;
}

.container {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}

.profile-box {
background-color: #de5e24;
color: #e0dab8;
width: 100%;
padding: 20px;
border-radius: 2px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
Expand Down
112 changes: 59 additions & 53 deletions src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -1,49 +1,59 @@
const LINKS = [
{ title: "Education", id: "education" },
{ title: "Experience", id: "experience" },
{ title: "Skills", id: "skills" },
];

const NavigationBar = () => {
return (
<div className="navbar">
<a href="#education">Education</a>
<a href="#experience">Experience</a>
<a href="#skills">Skills</a>
{LINKS.map(({ id, title }) => (
<a id={id} href={`#${id}`}>
{title}
</a>
))}
</div>
);
};

const Summary = () => {
return (
<div id="summary">
<div className="header">
<h1 className="header-title">
CHRISTOPH DANSARD<span className="tm">TM</span>
</h1>
</div>
<p>
I am a passionate and driven student at the Technical University Munich
with a strong interest in software engineering and product development.
I have a proven track record of working in high-performing teams and
delivering high-quality software products. I am seeking opportunities to
further develop my technical skills and contribute to innovative
projects.
</p>
<div id="links">
<a
className="button"
href="https://www.linkedin.com/in/christoph-dansard-212293161/"
target="_blank"
rel="noopener noreferrer"
>
LinkedIn
</a>
<a className="button" href="mailto:[email protected]">
Email
</a>
<a
className="button"
href="https://github.com/cdans"
target="_blank"
rel="noopener noreferrer"
>
GitHub
</a>
<div className="container">
<div id="summary">
<div className="header">
<h1 className="header-title">
CHRISTOPH DANSARD<span className="tm">TM</span>
</h1>
</div>
<p>
I am a passionate and driven student at the Technical University
Munich with a strong interest in software engineering and product
development. I have a proven track record of working in
high-performing teams and delivering high-quality software products. I
am seeking opportunities to further develop my technical skills and
contribute to innovative projects.
</p>
<div id="links">
<a
className="button"
href="https://www.linkedin.com/in/christoph-dansard-212293161/"
target="_blank"
rel="noopener noreferrer"
>
LinkedIn
</a>
<a className="button" href="mailto:[email protected]">
Email
</a>
<a
className="button"
href="https://github.com/cdans"
target="_blank"
rel="noopener noreferrer"
>
GitHub
</a>
</div>
</div>
</div>
);
Expand All @@ -57,16 +67,18 @@ type ProfileBoxProps = {

const ProfileBox = ({ id, title, content }: ProfileBoxProps) => {
return (
<div className="profile-box" id={id}>
<h1>{title}</h1>
{content.map((item, indexItem) => (
<>
{item.split("\n").map((line, indexLine) => (
<p key={indexLine}>{line}</p>
))}
{indexItem != content.length - 1 && <hr />}
</>
))}
<div className="container">
<div className="profile-box" id={id}>
<h1>{title}</h1>
{content.map((item, indexItem) => (
<>
{item.split("\n").map((line, indexLine) => (
<p key={indexLine}>{line}</p>
))}
{indexItem != content.length - 1 && <hr />}
</>
))}
</div>
</div>
);
};
Expand Down Expand Up @@ -108,12 +120,6 @@ const Profile = () => {
]}
/>

<ProfileBox
id="engagement"
title="Extracurricular Engagement"
content={["Project Mentor at TechLabs Berlin\n(April 2022 - present)"]}
/>

<ProfileBox
id="hobbies"
title="Hobbies"
Expand Down

0 comments on commit eb36b6a

Please sign in to comment.