Compare commits
3 commits
d2d244c4d7
...
1526e4b2fe
Author | SHA1 | Date | |
---|---|---|---|
|
1526e4b2fe | ||
|
4aac0381ae | ||
|
e2a1f38958 |
3 changed files with 41 additions and 22 deletions
|
@ -18,7 +18,7 @@ Tutu trys to push the Web technology to its limit. Some features might not be av
|
||||||
|
|
||||||
The "next" branch of the app is built on every commit pushed into "master". You can tatse latest change but risks your data.
|
The "next" branch of the app is built on every commit pushed into "master". You can tatse latest change but risks your data.
|
||||||
|
|
||||||
[Launch Tutu (Next)](https://next.tututheapp.pages.dev)
|
[Launch Tutu (Next)](https://master.tututheapp.pages.dev)
|
||||||
|
|
||||||
## Build & Depoly
|
## Build & Depoly
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,21 @@
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.banner {
|
||||||
|
width: 100%;
|
||||||
|
margin-top: calc(-1 * (var(--scaffold-topbar-height) + var(--safe-area-inset-top)));
|
||||||
|
|
||||||
|
>img {
|
||||||
|
object-fit: cover;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
& a {
|
& a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|
|
@ -23,6 +23,7 @@ import {
|
||||||
IconButton,
|
IconButton,
|
||||||
ListItemAvatar,
|
ListItemAvatar,
|
||||||
ListItemIcon,
|
ListItemIcon,
|
||||||
|
ListItemSecondaryAction,
|
||||||
ListItemText,
|
ListItemText,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
Toolbar,
|
Toolbar,
|
||||||
|
@ -38,8 +39,8 @@ import {
|
||||||
PlaylistAdd,
|
PlaylistAdd,
|
||||||
Send,
|
Send,
|
||||||
Share,
|
Share,
|
||||||
SmartToy,
|
|
||||||
SmartToySharp,
|
SmartToySharp,
|
||||||
|
Subject,
|
||||||
Translate,
|
Translate,
|
||||||
Verified,
|
Verified,
|
||||||
} from "@suid/icons-material";
|
} from "@suid/icons-material";
|
||||||
|
@ -295,7 +296,23 @@ const Profile: Component = () => {
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<Group />
|
<Group />
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText>Subscribers</ListItemText>
|
<ListItemText>Followers</ListItemText>
|
||||||
|
<ListItemSecondaryAction>
|
||||||
|
<span aria-label="The number of the account follower">
|
||||||
|
{profile()?.followersCount ?? ""}
|
||||||
|
</span>
|
||||||
|
</ListItemSecondaryAction>
|
||||||
|
</MenuItem>
|
||||||
|
<MenuItem disabled>
|
||||||
|
<ListItemIcon>
|
||||||
|
<Subject />
|
||||||
|
</ListItemIcon>
|
||||||
|
<ListItemText>Following</ListItemText>
|
||||||
|
<ListItemSecondaryAction>
|
||||||
|
<span aria-label="The number the account following">
|
||||||
|
{profile()?.followingCount ?? ""}
|
||||||
|
</span>
|
||||||
|
</ListItemSecondaryAction>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem disabled>
|
<MenuItem disabled>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
|
@ -303,12 +320,6 @@ const Profile: Component = () => {
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText>Blocklist</ListItemText>
|
<ListItemText>Blocklist</ListItemText>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem disabled>
|
|
||||||
<ListItemIcon>
|
|
||||||
<Translate />
|
|
||||||
</ListItemIcon>
|
|
||||||
<ListItemText>Translate Name and Bio...</ListItemText>
|
|
||||||
</MenuItem>
|
|
||||||
<MenuItem disabled>
|
<MenuItem disabled>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<Send />
|
<Send />
|
||||||
|
@ -336,21 +347,14 @@ const Profile: Component = () => {
|
||||||
</Menu>
|
</Menu>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
width: "100%",
|
|
||||||
height: `${268 * (Math.min(560, windowSize.width) / 560)}px`,
|
height: `${268 * (Math.min(560, windowSize.width) / 560)}px`,
|
||||||
"margin-top":
|
|
||||||
"calc(-1 * (var(--scaffold-topbar-height) + var(--safe-area-inset-top)))",
|
|
||||||
}}
|
}}
|
||||||
|
class="banner"
|
||||||
role="presentation"
|
role="presentation"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
ref={(e) => obx.observe(e)}
|
ref={(e) => obx.observe(e)}
|
||||||
src={bannerImg()}
|
src={bannerImg()}
|
||||||
style={{
|
|
||||||
"object-fit": "cover",
|
|
||||||
width: "100%",
|
|
||||||
height: "100%",
|
|
||||||
}}
|
|
||||||
crossOrigin="anonymous"
|
crossOrigin="anonymous"
|
||||||
alt={`Banner image for ${profile()?.displayName || "the user"}`}
|
alt={`Banner image for ${profile()?.displayName || "the user"}`}
|
||||||
onLoad={(event) => {
|
onLoad={(event) => {
|
||||||
|
|
Loading…
Reference in a new issue