ok here we go, the beginning of user profiles. for now we assume there is a single hard-coded user root

This commit is contained in:
Andrej Karpathy
2021-11-26 11:07:16 -08:00
parent dc55146e03
commit 54157c6e9c
6 changed files with 86 additions and 27 deletions
+8 -2
View File
@@ -80,5 +80,11 @@ const TagList = props => {
)
}
ReactDOM.render(<PaperList papers={papers} />, document.getElementById('wrap'))
ReactDOM.render(<TagList tags={tags} />, document.getElementById('tagwrap'))
// render papers into #wrap
ReactDOM.render(<PaperList papers={papers} />, document.getElementById('wrap'));
// render tags into #tagwrap, if it exists
let tagwrap_elt = document.getElementById('tagwrap');
if (tagwrap_elt) {
ReactDOM.render(<TagList tags={tags} />, tagwrap_elt);
}
+6
View File
@@ -175,3 +175,9 @@ body {
display: inline-block;
margin-left: 5px;
}
#login-link {
/* position on the right of the header */
position: absolute;
right: 10px;
top: 10px;
}