Adding simple_form, adding profile settings, header image
This commit is contained in:
3
app/assets/javascripts/settings.coffee
Normal file
3
app/assets/javascripts/settings.coffee
Normal file
@ -0,0 +1,3 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://coffeescript.org/
|
@ -1,10 +1,24 @@
|
||||
.card {
|
||||
background: $primary-color image-url('background-photo.jpeg');
|
||||
background: #282c37;
|
||||
background-size: cover;
|
||||
padding: 60px 0;
|
||||
padding-bottom: 10px;
|
||||
border-radius: 4px 4px 0 0;
|
||||
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
&:after {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
display: block;
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.name {
|
||||
display: block;
|
||||
@ -13,6 +27,8 @@
|
||||
color: #fff;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
|
||||
small {
|
||||
display: block;
|
||||
@ -26,6 +42,8 @@
|
||||
width: 120px;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 15px;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
|
||||
img {
|
||||
width: 120px;
|
||||
@ -38,6 +56,8 @@
|
||||
.details {
|
||||
display: flex;
|
||||
margin-top: 30px;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.counter {
|
||||
|
3
app/assets/stylesheets/settings.scss
Normal file
3
app/assets/stylesheets/settings.scss
Normal file
@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the settings controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
Reference in New Issue
Block a user