Skip to content
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 User pages #10

Closed
LeanKhan opened this issue Nov 6, 2021 · 26 comments
Closed

Create User pages #10

LeanKhan opened this issue Nov 6, 2021 · 26 comments
Assignees

Comments

@LeanKhan
Copy link
Member

LeanKhan commented Nov 6, 2021

  • Create login page
  • Create register page
  • Create user page: here users can see their codes etc
@alummav
Copy link
Contributor

alummav commented Nov 6, 2021

  • Create login page
  • Create register page
  • Create user page: here users can see their codes etc

@LeanKhan I want to add a separate CSS stylesheet to the login page but its not working. i saved the CSS in the layouts folder

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 6, 2021

@alummav Is it working now?

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

@alummav Is it working now?

at all bro, i need to change the code of the login page tho. i want to make sure it uses both the base code and it own code

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 7, 2021

First go to the second hapy-land, C:\done\sdp\hapy-land\hapy-land>. Then try the command again, make sure there is not space before the app. uvicorn main:app --reload

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021 via email

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 7, 2021

@alummav Is it working now?

at all bro, i need to change the code of the login page tho. i want to make sure it uses both the base code and it own code

Add a style element to the head of the page and put your css there. Inside the "head" block put your styles element.

% block head %}
    {{ super() }}
<style>
// put your CSS styles here...
</style>
{% endblock %}

Try to google the issues first

@alummav alummav pinned this issue Nov 7, 2021
@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

@LeanKhan I have committed and pushed, have you seen it

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 7, 2021

Hey, I haven't seen it. What message did it give you?

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

Hey, I haven't seen it. What message did it give you?

C:\done\sdp\hapy-land\hapy-land>git commit -m "user-pages"
[master b0c4cdd] user-pages
8 files changed, 170 insertions(+), 7 deletions(-)
create mode 100644 hapy-land/frontend/templates/layouts/base-2.html
create mode 100644 hapy-land/frontend/templates/layouts/loginform.css
create mode 100644 hapy-land/frontend/templates/login.html
delete mode 100644 hapy-land/frontend/templates/partials/navbar.html
create mode 100644 hapy-land/frontend/templates/register.html

C:\done\sdp\hapy-land\hapy-land>git pull
Already up to date.

C:\done\sdp\hapy-land\hapy-land>git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)

nothing to commit, working tree clean

C:\done\sdp\hapy-land\hapy-land>git push
git: 'credential-manager' is not a git command. See 'git --help'.

The most similar command is
credential-manager-core
Enumerating objects: 23, done.
Counting objects: 100% (23/23), done.
Delta compression using up to 4 threads
Compressing objects: 100% (13/13), done.
Writing objects: 100% (14/14), 2.64 KiB | 103.00 KiB/s, done.
Total 14 (delta 6), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (6/6), completed with 6 local objects.
To https://github.com/hapy-lang/hapy-land
468e99e..b0c4cdd master -> master

C:\done\sdp\hapy-land\hapy-land>git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

C:\done\sdp\hapy-land\hapy-land>

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 7, 2021

Yo, you were on the wrong branch. Why were you in master??

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 7, 2021

You have already pushed to master so no need to create a Pull Request. Please abeg, don't push from master again. We make pull requests from other branches so that we can see what we are doing.

Next time just checkout to that your branch make your commits and push from there. thanks.
nice work sha 👍

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

ah i thought you said we should checkout to master when we want to commit?

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

no wahala

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

i'm back on user branch, I didn't make any changes in the master sha

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 7, 2021

i'm back on user branch, I didn't make any changes in the master sha

Lolo you did o, you committed into Master. That's what I'm saying. Check the github, you;ll see the latest changes are from You. 😬

ah i thought you said we should checkout to master when we want to commit?

But no biggie, I didn't communicate that well.

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

omo no vex, na pressure. i want to commit this user branch and push what's there. how should I do this?

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

no wait, the user branch does not even have the login and register p, I want to merge the user branch to the master branch so that it would update

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

LEAANNNN

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

don't worry ive switched to master without commiting, please how do I go about updating the user branch and making the necessary changes from there

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

should i merge?

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 7, 2021

don't worry ive switched to master without commiting, please how do I go about updating the user branch and making the necessary changes from there

Hey, you have already made the necessary changes bro. Or is there something else you added?

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 7, 2021

omo no vex, na pressure. i want to commit this user branch and push what's there. how should I do this?

oh sorry, no pressure bro 🌈

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 7, 2021

Compare the output of git log --one-line -n 5 in the two branches. Sha that git command I sent one time to check the commit history.

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

Compare the output of git log --one-line -n 5 in the two branches. Sha that git command I sent one time to check the commit history.

C:\done\sdp\hapy-land\hapy-land>git status
On branch user
nothing to commit, working tree clean

C:\done\sdp\hapy-land\hapy-land>git log --one-line -n 5
fatal: unrecognized argument: --one-line

C:\done\sdp\hapy-land\hapy-land>git log --oneline -n 5
912ee14 (HEAD -> user) Merge branch 'master' into user
797c2a2 user-pages
b0c4cdd (origin/master, origin/HEAD, master) user-pages
468e99e diamond
c608255 CDN-icons

C:\done\sdp\hapy-land\hapy-land>git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.

C:\done\sdp\hapy-land\hapy-land>git log --oneline -n 5
b0c4cdd (HEAD -> master, origin/master, origin/HEAD) user-pages
468e99e diamond
c608255 CDN-icons
eb0e9c2 background-color
109287d Api develop (#8)

@LeanKhan
Copy link
Member Author

LeanKhan commented Nov 7, 2021

Looks like you're good

@alummav
Copy link
Contributor

alummav commented Nov 7, 2021

Looks like you're good

bro where are you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants