Skip to content

Commit bdd38cd

Browse files
authored
Merge pull request #58 from brainhack-vandy/dvaid-project-card-fixes
fixed template and project card
2 parents 95f71a1 + ecc77c4 commit bdd38cd

File tree

5 files changed

+23
-8
lines changed

5 files changed

+23
-8
lines changed

.github/ISSUE_TEMPLATE/project-submission-template.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ body:
180180
- type: textarea
181181
attributes:
182182
label: Image
183-
description: Provide a representative image for your project to be featured on our website and social media platforms. If you dont have one, we will use a default image.
183+
description: Provide a representative image for your project to be featured on our website and social media platforms. If you dont have one, we will use a default image. Please upload the image using the button below this text box.
184184
validations:
185185
required: true
186186

187187
- type: textarea
188188
attributes:
189-
label: Project summary - maximum 160 characters.
190-
description: This concise summary will be featured on our website and social media platforms.
189+
label: Project Summary
190+
description: Maximum 160 characters. This concise summary will be featured on our website and social media platforms.
191191
validations:
192192
required: true
193193

src/components/Projects/ProjectCard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import Card from "react-bootstrap/Card";
33
import Button from "react-bootstrap/Button";
44
import { CgWebsite } from "react-icons/cg";
5-
import { BsGithub } from "react-icons/bs";
5+
import { TbBulbFilled } from "react-icons/tb";
66
import './projects.css';
77

88
function ProjectCards(props) {
@@ -21,8 +21,8 @@ function ProjectCards(props) {
2121
<Card.Text style={{ textAlign: "justify" }}>
2222
{props.description}
2323
</Card.Text>
24-
<Button variant="primary" href={props.ghLink} target="_blank">
25-
<BsGithub /> &nbsp;GitHub
24+
<Button className="project-details-btn" variant="primary" href={props.issueLink} target="_blank">
25+
<TbBulbFilled /> &nbsp;Project Details
2626
</Button>
2727
{"\n"}
2828
{"\n"}

src/components/Projects/Projects.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const ProjectPitchInstr = () => {
2828
<div className="project-pitch-button-container mt-4">
2929
<a
3030
className="btn project-pitch-submit-button"
31-
href="https://docs.google.com/forms/d/e/1FAIpQLScLJXlY4obEaS8U5z4kiayC_9YKHTgxiPAfatZzvCMrW4Q_kQ/viewform"
31+
href="https://github.com/brainhack-vandy/brainhack-vandy.github.io/issues/new?assignees=&labels=project-proposal&projects=&template=project-submission-template.yml&title=Project%3A+"
3232
target="_blank"
3333
rel="noopener noreferrer"
3434
>
@@ -126,6 +126,7 @@ function Projects() {
126126
imgPath={project.imgPath}
127127
ghLink={project.ghLink}
128128
demoLink={project.demoLink}
129+
issueLink={project.issueLink}
129130
/>
130131
</Col>
131132
))}

src/components/Projects/projects.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@
7373
background-color: rgba(15, 6, 33, 0.9) !important;
7474
}
7575

76+
.project-details-btn.btn-primary {
77+
display: inline-flex !important; /* forces inline-flex override */
78+
align-items: center !important; /* vertical centering */
79+
justify-content: center !important; /* horizontal centering (if needed) */
80+
81+
/* optional tweaks if needed */
82+
vertical-align: middle !important;
83+
/* line-height: 1; <-- might also help if text is off-center */
84+
}
85+
86+
87+
7688
/* Year Select Styles */
7789
.year-select-container {
7890
position: relative !important;
@@ -81,6 +93,7 @@
8193
margin-bottom: 30px;
8294
}
8395

96+
8497
.year-select-container select {
8598
width: 100px !important;
8699
background-color: #623686 !important;

src/data/data_utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function processIssues(issues) {
3737
// Regular expressions
3838
const linkRegex = /### Link to project repository\/sources([\s\S]*?)###/;
3939
const imageRegex = /### Image!\[.*?\]\((.*?)\)/;
40-
const descriptionRegex = /### Project Description([\s\S]*?)###/;
40+
const descriptionRegex = /### Project Summary([\s\S]*?)###/;
4141

4242
const titleRegex = /### Title([\s\S]*?)###/;
4343

@@ -70,6 +70,7 @@ function processIssues(issues) {
7070
description: description,
7171
ghLink: infoLink,
7272
imgPath: imageLink,
73+
issueLink: `https://github.com/brainhack-vandy/brainhack-vandy.github.io/issues/${issue.number}`,
7374
};
7475

7576
projects[yearLabel].push(project);

0 commit comments

Comments
 (0)