mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-24 02:22:10 +00:00
Add dotenv - Protect my secret data in .env file
This commit is contained in:
@@ -19,3 +19,4 @@ body {
|
||||
background-color: $background;
|
||||
}
|
||||
@import "devise/index";
|
||||
@import "users/index";
|
||||
|
||||
33
app/assets/stylesheets/users/_edit.scss
Normal file
33
app/assets/stylesheets/users/_edit.scss
Normal file
@@ -0,0 +1,33 @@
|
||||
.profile-container {
|
||||
margin: 0 1in;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
height: calc(100vh - 4.5em); // 4.5em is height of navbar
|
||||
|
||||
form {
|
||||
flex-grow: 1;
|
||||
|
||||
.description {
|
||||
width: 100%;
|
||||
height: 5em;
|
||||
}
|
||||
}
|
||||
|
||||
.profile-pic {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-left: 3em;
|
||||
|
||||
img {
|
||||
max-width: 50vw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.profile-form {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
color: white;
|
||||
}
|
||||
2
app/assets/stylesheets/users/_index.scss
Normal file
2
app/assets/stylesheets/users/_index.scss
Normal file
@@ -0,0 +1,2 @@
|
||||
@import "show";
|
||||
@import "edit";
|
||||
51
app/assets/stylesheets/users/_show.scss
Normal file
51
app/assets/stylesheets/users/_show.scss
Normal file
@@ -0,0 +1,51 @@
|
||||
.user-container {
|
||||
margin: 0 1in;
|
||||
height: calc(100vh - 4.5em); //4.5em is height of navbar.
|
||||
display:flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
h2 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
.profile {
|
||||
background: #33333D;
|
||||
display: flex;
|
||||
|
||||
.flex-end {
|
||||
margin-left: auto;
|
||||
display:flex;
|
||||
align-items: center;
|
||||
|
||||
a:first-child {
|
||||
margin-right: .5em;
|
||||
}
|
||||
}
|
||||
.profile-pic {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 3em;
|
||||
img {
|
||||
width: 10em;
|
||||
}
|
||||
}
|
||||
|
||||
.profile-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
h1 {
|
||||
margin: 0 0 .5em 0 ;
|
||||
}
|
||||
h2 {
|
||||
margin: 0;
|
||||
}
|
||||
.italics {
|
||||
font-style: italic;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user