generated from Technigo/react-vite-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 55
Leon Ekelund Portfolio hand-in #55
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
Open
LeonEkelund
wants to merge
7
commits into
Technigo:main
Choose a base branch
from
LeonEkelund:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4fd5399
setup the structure and start adding content
LeonEkelund 3666a58
add all relevant sections, fix image css for mobile
LeonEkelund 2926114
Fix projects section on desktop, updated css
LeonEkelund 9701577
add mobile/ipad styling on project section
LeonEkelund e215258
fix media queries on skillsection
LeonEkelund 4758823
fix issue with headerimages on smaller screens
LeonEkelund 6d12f12
Update README with custom link
LeonEkelund File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| # Portfolio | ||
| My custom link: https://leonekelund.dev/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,33 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Portfolio</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.jsx"></script> | ||
| </body> | ||
| </html> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
|
|
||
|
|
||
| <link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
|
|
||
| <link rel="preload" as="style" | ||
| href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap" | ||
| onload="this.onload=null;this.rel='stylesheet'" /> | ||
|
|
||
| <noscript> | ||
| <link rel="stylesheet" | ||
| href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap" /> | ||
| </noscript> | ||
|
|
||
| <link rel="icon" type="image/x-icon" href="/src/assets/favicon.svg" /> | ||
|
|
||
|
|
||
| <title>Portfolio</title> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.jsx"></script> | ||
| </body> | ||
|
|
||
| </html> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,31 @@ | ||
| import HeaderSection from './sections/HeaderSection'; | ||
| import TechSection from './sections/TechSection'; | ||
| import ProjectsSection from './sections/ProjectsSection'; | ||
| // import ThoughtsSection from './sections/ThoughtsSection'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would consider removing commented out import from the final version |
||
| import SkillsSection from './sections/SkillsSection'; | ||
| import ContactSection from './sections/ContactSection'; | ||
|
|
||
| import GlobalStyle from './styles/GlobalStyle'; | ||
|
|
||
| export const App = () => { | ||
| return ( | ||
| <> | ||
| <h1>Portfolio</h1> | ||
| <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatem, laborum! Maxime animi nostrum facilis distinctio neque labore consectetur beatae eum ipsum excepturi voluptatum, dicta repellendus incidunt fugiat, consequatur rem aperiam.</p> | ||
| <GlobalStyle /> | ||
|
|
||
| <header> | ||
| <HeaderSection /> | ||
| </header> | ||
|
|
||
| <main> | ||
| <TechSection /> | ||
| <ProjectsSection /> | ||
| {/* <ThoughtsSection /> */} | ||
| <SkillsSection /> | ||
| </main> | ||
|
|
||
| <footer> | ||
| <ContactSection /> | ||
| </footer> | ||
| </> | ||
| ) | ||
| } | ||
| ); | ||
| }; | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| import styled from "styled-components"; | ||
|
|
||
| const ProjectButton = ({ icon, text, link }) => { | ||
| return ( | ||
| <Button href={link} target="_blank"> | ||
| {icon && <IconWrapper>{icon}</IconWrapper>} | ||
| <span>{text}</span> | ||
| </Button> | ||
| ); | ||
| }; | ||
|
|
||
| export default ProjectButton; | ||
|
|
||
| /* STYLING */ | ||
|
|
||
| const Button = styled.a` | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 16px; | ||
|
|
||
| width: 250px; | ||
| height: 48px; | ||
| padding: 0 16px; | ||
| box-sizing: border-box; | ||
|
|
||
| background: #000000; | ||
| color: #ffffff; | ||
| border-radius: 12px; | ||
|
|
||
| text-decoration: none; | ||
| font-size: 0.875rem; /* 14px */ | ||
| font-weight: 500; | ||
|
|
||
| transition: opacity 0.2s ease; | ||
| &:hover { | ||
| opacity: 0.8; | ||
| } | ||
| `; | ||
|
|
||
| const IconWrapper = styled.span` | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
|
|
||
| width: 24px; | ||
| height: 24px; | ||
| flex-shrink: 0; | ||
|
|
||
| svg { | ||
| width: 20px; | ||
| height: 20px; | ||
| color: #ffffff; | ||
| } | ||
| `; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,154 @@ | ||
|
|
||
| import styled from "styled-components"; | ||
| import ProjectButton from "./ProjectButton"; | ||
| import { FaGlobe, FaGithub } from "react-icons/fa"; | ||
|
|
||
| const ProjectCard = ({ | ||
| image, | ||
| tech, | ||
| title, | ||
| description, | ||
| liveLink, | ||
| codeLink, | ||
| reverse | ||
| }) => { | ||
| return ( | ||
| <Card reverse={reverse}> | ||
| <ImageWrapper> | ||
| <img src={image} alt={title} /> | ||
| </ImageWrapper> | ||
|
|
||
| <Content> | ||
| <TechList> | ||
| {tech.map((item) => ( | ||
| <span key={item}>{item}</span> | ||
| ))} | ||
| </TechList> | ||
|
|
||
| <h3>{title}</h3> | ||
| <p>{description}</p> | ||
|
|
||
| <Buttons> | ||
| <ProjectButton | ||
| icon={<FaGlobe />} | ||
| text="Live demo" | ||
| link={liveLink} | ||
| /> | ||
| <ProjectButton | ||
| icon={<FaGithub />} | ||
| text="View Code" | ||
| link={codeLink} | ||
| /> | ||
| </Buttons> | ||
| </Content> | ||
| </Card> | ||
| ); | ||
| }; | ||
|
|
||
|
|
||
| export default ProjectCard; | ||
|
|
||
| /* STYLING */ | ||
|
|
||
| const Card = styled.div` | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 4.5rem; | ||
| margin: 4rem auto; | ||
| width: 100%; | ||
| max-width: 1000px; | ||
|
|
||
| flex-direction: ${({ reverse }) => (reverse ? "row-reverse" : "row")}; | ||
|
|
||
| /* IPAD */ | ||
| @media (max-width: 1024px) { | ||
| flex-direction: column; | ||
| align-items: flex-start; | ||
| gap: 1.75rem; | ||
| margin: 3rem auto; | ||
| padding: 0 1.5rem; | ||
| } | ||
|
|
||
| /* MOBILE */ | ||
| @media (max-width: 600px) { | ||
| gap: 1.5rem; | ||
| margin: 2.5rem auto; | ||
| padding: 0 1.25rem; | ||
| } | ||
| `; | ||
|
|
||
| const ImageWrapper = styled.div` | ||
| /* DESKTOP */ | ||
| flex: 0 0 479px; | ||
| height: 479px; | ||
| border-radius: 16px; | ||
| background: #f5f5f5; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| overflow: hidden; | ||
|
|
||
| img { | ||
| max-width: 100%; | ||
| max-height: 100%; | ||
| object-fit: contain; | ||
| border-radius: 16px; | ||
| display: block; | ||
| } | ||
|
|
||
| /* IPAD: | ||
| @media (max-width: 1024px) { | ||
| flex: 0 0 auto; | ||
| width: 100%; | ||
| max-width: none; | ||
| height: auto; | ||
|
|
||
| img { | ||
| width: 100%; | ||
| height: auto; | ||
| } | ||
| } | ||
|
|
||
| /* MOBILE: | ||
| @media (max-width: 600px) { | ||
| width: 100%; | ||
| } | ||
| `; | ||
|
|
||
| const Content = styled.div` | ||
| flex: 1; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 0.75rem; | ||
| text-align: left; | ||
|
|
||
| /* IPAD: | ||
| @media (max-width: 1024px) { | ||
| width: 100%; | ||
| max-width: 650px; | ||
| } | ||
| /* MOBILE: | ||
| @media (max-width: 600px) { | ||
| max-width: none; | ||
| } | ||
| `; | ||
|
|
||
| const TechList = styled.div` | ||
| display: flex; | ||
| gap: 0.5rem; | ||
| flex-wrap: wrap; | ||
|
|
||
| span { | ||
| border: 1px solid #000; | ||
| padding: 0.2rem 0.6rem; | ||
| font-size: 0.75rem; | ||
| border-radius: 4px; | ||
| } | ||
| `; | ||
|
|
||
| const Buttons = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 0.5rem; | ||
| margin-top: 0.75rem; | ||
| `; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +0,0 @@ | ||
| body { | ||
| background: pink; | ||
| color: hotpink; | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would consider removing the extra empty space here :)