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

Fixed Get Started (LinkButton) styling #426

Open
wants to merge 2 commits into
base: source
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 @@ -14,7 +14,7 @@
"lodash": "^4.17.19",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-select": "^1.0.0-rc.10"
"react-select": "^5.8.0"
},
"scripts": {
"start": "react-scripts start",
Expand Down
6 changes: 3 additions & 3 deletions src/components/LinkButton/LinkButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
border-radius: 2px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);

background-color: #0A680D;
color: #fff;
background-color: white;
color: black;

-webkit-transition: background-color 0.3s;
-moz-transition: background-color 0.3s;
Expand All @@ -19,7 +19,7 @@
}

.LinkButton:hover {
background-color: #26a65b;
background-color: cyan;
}

.LinkButton > span {
Expand Down
3 changes: 2 additions & 1 deletion src/components/LinkButton/LinkButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class LinkButton extends Component {
<span> Get started </span>
</a>
<div className="Scroll-Down-Wrapper">
<img className="Scroll-Down" onClick={() => { window.scrollBy({ top: window.innerHeight - 80, left: 0, behavior: "smooth" }); }} src={scrollDown} alt="Scroll Down!" width="64" height="64" />
<img className="Scroll-Down" onClick={() => { window.scrollBy({ top: window.innerHeight - 80, left: 0, behavior:
"smooth" }); }} src={scrollDown} alt="Scroll Down!" width="64" height="64" />
</div>
</div>
);
Expand Down
12 changes: 6 additions & 6 deletions src/components/ProjectList/CardsContainer.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import './custom-react-select.css';
import Select from 'react-select';
import each from 'lodash/each'
import each from 'lodash/each';

import Card from './ProjectsCards';
import projectList from './listOfProjects';

import './css/cards-container.css';
import './css/search.css';
import 'react-select/dist/react-select.css';

export default class CardsContainer extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -60,7 +60,7 @@ export default class CardsContainer extends React.Component {
const valueList = [];

value.map(v => {
return valueList.push(v.value)
return valueList.push(v.value);
});

each(projectList, (project) => {
Expand Down Expand Up @@ -117,9 +117,9 @@ export default class CardsContainer extends React.Component {

return (
<div>
<div id='container'>
<div className='inputContainer'>
<input id='search' type='text' name='search' placeholder='Search...' onChange={this.handleChange} aria-label='Search'/>
<div id="container">
<div className="inputContainer">
<input id="search" type="text" name="search" placeholder="Search..." onChange={this.handleChange} aria-label="Search"/>
</div>
<div id="tag-selector-container" className='inputContainer'>
<Select
Expand Down
29 changes: 29 additions & 0 deletions src/components/ProjectList/custom-react-select.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* Style the container of the select input */
.react-select-container {
width: 300px;
}

/* Style the control (input) part of the select */
.react-select__control {
border-color: #007bff;
box-shadow: none;
border-radius: 4px;
}

/* Style the menu (dropdown list) */
.react-select__menu {
z-index: 9999;
}

/* Style the options in the menu */
.react-select__option {
padding: 8px 16px;
font-size: 14px;
}

/* Style the selected option */
.react-select__option--is-selected {
background-color: #007bff;
color: white;
}

Loading