-
Notifications
You must be signed in to change notification settings - Fork 22
restructure projects ui #1542
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
Merged
Merged
restructure projects ui #1542
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e7e340c
restructure projects ui
eea7d73
Update Projects.js
c00d185
mobile layout fixes + added new projects
c56a112
Merge branch 'restructure-projects-ui' of https://github.com/SCE-Deve…
b2f419b
remove extra space
ffba6c6
remove commented out code
7e834e6
fix list/key issue
778dbdd
move images to github cdn
73b057c
Update src/Pages/Projects/Components/ProjectCard.js
e6a367d
Update src/Pages/Projects/Projects.js
ae4f950
Update Projects.js
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,19 +1,37 @@ | ||
import React from 'react'; | ||
|
||
|
||
export default function ProjectCard({link, image, name, subnote, caption}) { | ||
export default function ProjectCard({project}) { | ||
return ( | ||
<div className='project-card'> | ||
<a href={link} target="_blank"> | ||
<img className='project-photo' src={image} alt="Project Picture" /> | ||
</a> | ||
<p className='project-name'> | ||
{name} | ||
<span className='project-subnote'>{subnote}</span> | ||
</p> | ||
<p className='project-caption'> | ||
{caption} | ||
</p> | ||
<div className="flex justify-center"> | ||
<div className="card md:card-side shadow-xl w-[75%] border dark:bg-gray-800 dark:border-gray-700"> | ||
<div className="flex justify-center items-center py-4 md:pl-4"> | ||
<img | ||
src={project.image} | ||
alt="Album" | ||
className="max-w-80 h-auto rounded-lg"/> | ||
</div> | ||
<div className="card-body"> | ||
<h2 className="card-title text-2xl font-bold tracking-tight text-gray-900 dark:text-white">{project.name}</h2> | ||
<p className="font-light text-gray-500 dark:text-gray-400">{project.caption}</p> | ||
<span className="bg-primary-100 text-primary-800 text-xs font-medium dark:bg-primary-200 dark:text-primary-800 flex gap-2"> | ||
{project.information} | ||
</span> | ||
<div className="card-actions justify-end"> | ||
<a href={project.link} target="_blank"> | ||
<button className="inline-flex items-center font-medium text-primary-600 dark:text-primary-500 hover:underline" | ||
> | ||
GitHub Link | ||
<svg className="ml-2 w-4 h-4" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> | ||
<path fillRule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clip-rule="evenodd"> | ||
</path> | ||
</svg> | ||
</button> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
); | ||
} |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.