Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

signup page complete responsive #27

Closed
wants to merge 2 commits into from
Closed
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
17 changes: 16 additions & 1 deletion assets/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,20 @@
}
.c-content a:hover {
color: #000;
background-color: rgb(80, 78, 78, 0.15);
background-color: #1c4f6c;
}

@media screen and (max-width:550px){
.c-content h2{
font-size: 3.2em;
}
.c-content h3{
color: #1c4f6c;
}
.c-box:hover .c-content h2 {
top: -50px;
}
.c-box{
padding-top: 30px;
}
}
56 changes: 52 additions & 4 deletions assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ body {

.login-card {
position: absolute;
margin-top: 20px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
Expand All @@ -27,7 +28,7 @@ body {
}

.login-card img {
height: 260px;
height: 50%;
}

.login-card a {
Expand All @@ -42,11 +43,58 @@ body {

.login-card h4 {
color: var(--white-bg-text);
text-align: center;
font-size: 18px;
padding-bottom: 5px;
border-bottom: 1px solid #ccc;
}

/* responsive */

@media screen and (max-width:550px){
.login-card{
max-width: 90vw;
max-height: 60vh;
}
.login-card img {
width: 60vmin;
}
.sgup-g{
display: none;
}
.brand-logo{
top: 50%;
}
.logout{
position: absolute;
right: 6%;
margin-top: 15px;
}
.left{
position: absolute;
left: 30px;
}
.left img{
height: 40px;
width: 65px;
}
.jumbotron h3{
font-size: 32px;
}
}
@media screen and (max-height:400px){
body{
height: 70vw;
}
.login-card{
position: absolute;
top: 70%;
transform: translate(-50% , -50%);
max-width: 90vw;
min-height: 45vw;
}
}

/* sidenave */
nav {
background: white;
Expand Down Expand Up @@ -315,7 +363,6 @@ nav ul a {
.c-box{
margin-bottom: 30px;
border: .5px solid #333;

}
.c-box::before{
content: '';
Expand All @@ -329,9 +376,10 @@ nav ul a {
z-index: -1;
}
.c-box:nth-child(1)::before{
background-image: linear-gradient(315deg , #474243 , #2b2725);
background-image: linear-gradient(315deg , #1c4f6c , #1c4f6c);
}
.c-box:nth-child(3)::before{
background-image: linear-gradient(315deg , #474243 , #2b2725);
/* background-image: linear-gradient(315deg , #474243 , #2b2725); */
background-image: linear-gradient(315deg , #1c4f6c , #1c4f6c);
}
}
15 changes: 10 additions & 5 deletions views/editleave.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</div>

<div class="form-group">
<label>Name:</label><br>
<label>Email:</label><br>
<input type="text" name="leave[Email]" value="<%=leave.Email%>" readonly required>
</div>

Expand All @@ -29,10 +29,15 @@
<input type="date" name="leave[Return]" value="<%=leave.Return%>" required>
</div>

<div class="form group">
<label>Reason</label><br>
<input type="text" name="leave[Reason]" placeholder="Reason" value="<%=leave.Reason%>"required>
</div>
<div class="inp-animation-container">
<input
type="text"
name="leave[Reason]"
required/>
<div class="inp-label">
<span> Reason </span>
</div>
</div>

<div class="form-group">
<br>
Expand Down
2 changes: 1 addition & 1 deletion views/leavehistory.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<a href="/user/dashboard/delete/leave/<%=leave._id%>"
><button class="btn red darken-1 ">Delete</button></a
>
<button class="btn grey darken-1 ">Waiting</button>
<button class="btn grey darken-1 " style="margin-top: 5px;">Waiting</button>
<%}else if(leave.Approve==true){%>
<button class="btn light-green darken-2 ">Approved</button>
<%}else if(leave.Approve==false){%>
Expand Down
6 changes: 5 additions & 1 deletion views/partials/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@

<ul id="nav-mobile" class="view-on-med-and-down">
</li>
<li><a href="/auth/logout">LogOut</a></li>
<%if(!currentUser){%>
<li><a class="sgup-g" href="/auth/google">Sign Up/Login with G+</a></li>
<%}else{%>
<li><a class="logout" href="/auth/logout">LogOut</a></li>
<%}%>
</ul>

</div>
Expand Down
1 change: 1 addition & 0 deletions views/partials/sidenav.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
><i class="material-icons">schedule</i> Leave Applications</a
>
</li>
<li><a href="/auth/logout"><i class="material-icons">person_outline</i> LogOut</a></li>
</ul>
<a href="#" data-target="slide-out" class="sidenav-trigger btn-floating"
><i class="material-icons slide-out-icon">chevron_right</i></a
Expand Down