Skip to content

Commit

Permalink
x\front
Browse files Browse the repository at this point in the history
  • Loading branch information
exodus31 committed Sep 2, 2022
1 parent d3545e7 commit d4587c0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Components/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function Login() {
role="alert"
style={{ display: alert }}
>
{setAlertMsg}
{alertmsg}
</div>
<div className="container outer">
{/* <div className=" logincont">
Expand Down
19 changes: 17 additions & 2 deletions frontend/src/Components/Style.css
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,24 @@ table{
font-size: 14px;
}
}
@media(min-width:500px){
@media(min-width:500px) and ( max-width:768px){
.col-sm-3{
width: 21% !important;
width: 46% !important;
}
}
@media(min-width:1200px){
.col-sm-3{
width:21% !important;
}
}
@media(min-width:992px) and (min-width:1200px){
.col-sm-3{
width:28% !important;
}
}
@media(min-width:768px) and ( max-width:992px){
.col-sm-3{
width: 25% !important;
}
}
@media(max-width:500px){
Expand Down
20 changes: 11 additions & 9 deletions frontend/src/Components/Yourprofile.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ function Yourprofile() {
<br />
<div className="container">
<div className="head">
<h4 className="h1x">Welcome:- {state.name}</h4>
<h4 className="h1x" style={{textTransform:"capitalize"}}>Welcome:- {state.name}</h4>
<h4 className="h1x">CF Username:- {state.username}</h4>
<h4 className="h1x">Points:- {state.points} { /*<Link to="/viewprize"><button className="btnpts">Redeem</button></Link>*/ }</h4>
</div>
<br />
<h4 className="h1x" style={{textTransform:"capitalize"}}>Difficulty:- {state.difficulty}</h4>
</div>
<br />
{width < 768 ? (
<div className="">
Expand Down Expand Up @@ -184,10 +184,14 @@ function Yourprofile() {
<td className="td2 leaderTD">70</td>
<td className="td2 leaderTD">11-20</td>
</tr>
{ state.difficulty == 'beginner'?(
<tr>
<td className="td2 leaderTD">30</td>
<td className="td2 leaderTD">21-40</td>
</tr>
) : (
<></>
)}
<tr>
<td className="td2 leaderTD">10</td>
<td className="td2 leaderTD"><span className="small" style={{fontSize:"13px"}}>Atleast<br/>1 question</span></td>
Expand Down Expand Up @@ -295,8 +299,8 @@ function Yourprofile() {
return (
<div className="dp" key={id}>
<h3>
Daily {post.username}
<a href="{post.link}"><button className="btnviewp">Solve Problem</button></a>
Problem {post.name}
<a href={post.link} target={"_blank"}><button className="btnviewp">Solve Problem</button></a>
</h3>
<hr />
</div>
Expand All @@ -313,9 +317,7 @@ function Yourprofile() {
<button className="btnpastdp">View Past Problems</button>
</Link>
</div>
</div>


</div>
<hr style={{ color: "white" }} />
<div className="card pb-5">
<h2 className="stm upcomingContestHead" style={{fontWeight:"bold"}}>Study Material</h2>
Expand All @@ -329,7 +331,7 @@ function Yourprofile() {
<h5>{note.name}</h5>
<br/>
<p>
<a href={note.link} target={"_blank"} style={{textDecoration: "none", color:"white", }}>
<a href={note.link} target={"_blank"} style={{textDecoration: "none", color:"white"}}>
View Material
</a>
</p>
Expand Down

0 comments on commit d4587c0

Please sign in to comment.