Skip to content

Commit

Permalink
Merge pull request #356 from unitaryfund/rounded_submission_boxes
Browse files Browse the repository at this point in the history
Make SubmissionBox rounded
  • Loading branch information
WrathfulSpatula authored Dec 10, 2021
2 parents 60bea83 + c6ac45b commit 3ffb471
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
22 changes: 21 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.App {
text-align: center;
background-color: #E5E5E5;
}

.App-logo {
Expand Down Expand Up @@ -40,6 +41,16 @@
background-color: white;
}

.navbar-nav {
border-radius: 16px;
border: none;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
border-radius: 16px;
border: none;
}

.navbar-nav .metriq-navbar-text.nav-link {
padding-top: 0.9rem;
color:black;
Expand All @@ -52,6 +63,10 @@
font-weight: bold;
}

.infinite-scroll-component {
overflow: visible !important;
}

#metriq-main-content {
min-height: 700px;
padding-top: 20px;
Expand Down Expand Up @@ -106,9 +121,14 @@ form > .row > label {
}

.submission {
border: 1px solid black;
border-radius: 16px;
margin: 6px;
padding: 8px;
background-color: #FFFFFF;
}

.submission:hover {
box-shadow: 0 0 16px rgba(33,33,33,.2);
}

.submission-heading {
Expand Down
4 changes: 3 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ class App extends React.Component {
twitter='unitaryfund'
youtube='UCDbDLAzGRTHnhkoMMOX7D1A'
linkedin='unitary-fund'
backgroundColor='#f8f9fa'
backgroundColor='#212529'
fontColor='#FFFFFF'
iconColor='#FFFFFF'
columns={[]}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/simple-react-footer/SimpleReactFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import logo from './../../images/unitary_fund_logo.png'
class SimpleReactFooter extends React.Component {
render () {
return (
<div style={{ backgroundColor: this.props.backgroundColor || 'bisque' }} className='footer-container'>
<div style={{ backgroundColor: this.props.backgroundColor || 'bisque', color: this.props.fontColor }} className='footer-container'>
<div className='first-row'>
{this.props.columns.map((column, i) => (
<div key={i} className='columns'>
Expand Down
1 change: 1 addition & 0 deletions src/components/simple-react-footer/SimpleReactFooter.sass
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $letter-spacing: 1px
flex-wrap: nowrap

.footer-container
border-radius: 16px 16px 0 0
margin-top: 20px
height: fit-content
width: 100%
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Home = (props) => {
<header><h5>Top Submissions {props.match ? 'for "' + props.match.params.tag + '"' : ''}</h5></header>
<br />
<Tabs defaultActiveKey='trending' id='top-submissions-tabs'>
<Tab eventKey='trending' title='Trending'>
<Tab eventKey='trending' title='Trending' className='metriq-nav-tab'>
<SubmissionScroll sortType='trending' isLoggedIn={props.isLoggedIn} tag={props.match ? props.match.params.tag : ''} />
</Tab>
<Tab eventKey='popular' title='Popular'>
Expand Down

0 comments on commit 3ffb471

Please sign in to comment.