-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create UI for clearing cache #84
base: develop
Are you sure you want to change the base?
Changes from 2 commits
ed97126
a774847
c41c7bf
550abc7
44954ff
35a02d9
845a437
915c222
35495f0
46df308
e7b3965
e845ee7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="self-clear-cache-container"> | ||
<div class="last-request"> | ||
Last Request: {{@time}} | ||
</div> | ||
<div class="clear-cache-button"> | ||
<button class="button" type="submit" disableb={{false}}>Clear cache</button> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo: |
||
</div> | ||
<div class="remaining-requests"> | ||
{{@totalTimes}} / 3 requests remaining for today | ||
</div> | ||
</div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay! I will make the changes. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.last-request { | ||
padding: 40px 4px 20px; | ||
color:#041187; | ||
font-family: Helvetica Neue; | ||
font-weight: bold; | ||
font-size: 2rem | ||
} | ||
|
||
.button { | ||
top: 335%; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 335%?! 😱 |
||
border-radius:10px; | ||
padding: 16px 60px; | ||
border: 2px solid #FF8C00; | ||
color: #FF8C00; | ||
background-color: white; | ||
font-family: Helvetica Neue; | ||
font-weight:bold; | ||
font-size: 1.5rem; | ||
cursor: pointer; | ||
} | ||
|
||
.remaining-requests { | ||
padding-top:30px; | ||
color:#041187; | ||
font-family: Helvetica Neue; | ||
font-weight: bold; | ||
font-size: 1.3rem | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Index page works! | ||
<SelfClearCache @time="23 March 1:23 pm IST" @totalTimes="1"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Once we have the API ready:
If this sounds confusing, please read that again and refer this PR to get an idea of what I'm trying to say: https://github.com/Real-Dev-Squad/website-my/pull/82/files I know we don't have the API yet, so we could create a mock object in controller file and get that mock data from controller to template, so we can remove the hardcoding and our way to integrating API (when it's ready) will become easier, less work to do then. Let me know if there are any doubts 🙂 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the review and the explanation! It will surely help a lot. 💯 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Can we please follow BEM rule for class naming?