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

New avatars #1315

Merged
merged 6 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added front/public/static/droidavatar/Droid_Lime_1.jpg
Binary file added front/public/static/droidavatar/Droid_Lime_2.jpg
Binary file added front/public/static/droidavatar/Droid_Lime_3.jpg
Binary file added front/public/static/droidavatar/Droid_Lime_4.jpg
Binary file added front/public/static/droidavatar/Droid_Lime_5.jpg
Binary file added front/public/static/droidavatar/Droid_Lime_6.jpg
Binary file added front/public/static/droidavatar/Droid_Lime_7.jpg
Binary file added front/public/static/droidavatar/Droid_Lime_8.jpg
Binary file added front/public/static/droidavatar/Droid_Pink_1.jpg
Binary file added front/public/static/droidavatar/Droid_Pink_2.jpg
Binary file added front/public/static/droidavatar/Droid_Pink_3.jpg
Binary file added front/public/static/droidavatar/Droid_Pink_4.jpg
Binary file added front/public/static/droidavatar/Droid_Pink_5.jpg
Binary file added front/public/static/droidavatar/Droid_Pink_6.jpg
Binary file added front/public/static/droidavatar/Droid_Pink_7.jpg
Binary file added front/public/static/droidavatar/Droid_Pink_8.jpg
Binary file added front/public/static/droidavatar/Droid_Red_1.jpg
Binary file added front/public/static/droidavatar/Droid_Red_2.jpg
Binary file added front/public/static/droidavatar/Droid_Red_3.jpg
Binary file added front/public/static/droidavatar/Droid_Red_4.jpg
Binary file added front/public/static/droidavatar/Droid_Red_5.jpg
Binary file added front/public/static/droidavatar/Droid_Red_6.jpg
Binary file added front/public/static/droidavatar/Droid_Red_7.jpg
Binary file added front/public/static/droidavatar/Droid_Red_8.jpg
Binary file added front/public/static/droidavatar/Droid_Sky_1.jpg
Binary file added front/public/static/droidavatar/Droid_Sky_2.jpg
Binary file added front/public/static/droidavatar/Droid_Sky_3.jpg
Binary file added front/public/static/droidavatar/Droid_Sky_4.jpg
Binary file added front/public/static/droidavatar/Droid_Sky_5.jpg
Binary file added front/public/static/droidavatar/Droid_Sky_6.jpg
Binary file added front/public/static/droidavatar/Droid_Sky_7.jpg
Binary file added front/public/static/droidavatar/Droid_Sky_8.jpg
Binary file added front/public/static/droidavatar/Droid_Teal_1.jpg
Binary file added front/public/static/droidavatar/Droid_Teal_2.jpg
Binary file added front/public/static/droidavatar/Droid_Teal_3.jpg
Binary file added front/public/static/droidavatar/Droid_Teal_4.jpg
Binary file added front/public/static/droidavatar/Droid_Teal_5.jpg
Binary file added front/public/static/droidavatar/Droid_Teal_6.jpg
Binary file added front/public/static/droidavatar/Droid_Teal_7.jpg
Binary file added front/public/static/droidavatar/Droid_Teal_8.jpg
Binary file removed front/public/static/droidavatar/Droïd_Cream_1.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Cream_2.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Cream_3.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Cream_4.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Red_1.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Red_2.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Red_3.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Red_4.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Teal_1.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Teal_2.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Teal_3.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Teal_4.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Violet_1.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Violet_2.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Violet_3.jpg
Diff not rendered.
Binary file removed front/public/static/droidavatar/Droïd_Violet_4.jpg
Diff not rendered.
144 changes: 144 additions & 0 deletions sparkle/src/stories/AvatarSet.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
import React from "react";

import { Avatar } from "../index_with_tw_base";

export default {
title: "Assets/DroidAvatarSet",
};

const avatarUrlList = {
"Droid_Black_1.jpg": "https://dust.tt/static/droidavatar/Droid_Black_1.jpg",
"Droid_Black_2.jpg": "https://dust.tt/static/droidavatar/Droid_Black_2.jpg",
"Droid_Black_3.jpg": "https://dust.tt/static/droidavatar/Droid_Black_3.jpg",
"Droid_Black_4.jpg": "https://dust.tt/static/droidavatar/Droid_Black_4.jpg",
"Droid_Black_5.jpg": "https://dust.tt/static/droidavatar/Droid_Black_5.jpg",
"Droid_Black_6.jpg": "https://dust.tt/static/droidavatar/Droid_Black_6.jpg",
"Droid_Black_7.jpg": "https://dust.tt/static/droidavatar/Droid_Black_7.jpg",
"Droid_Black_8.jpg": "https://dust.tt/static/droidavatar/Droid_Black_8.jpg",
"Droid_Cream_1.jpg": "https://dust.tt/static/droidavatar/Droid_Cream_1.jpg",
"Droid_Cream_2.jpg": "https://dust.tt/static/droidavatar/Droid_Cream_2.jpg",
"Droid_Cream_3.jpg": "https://dust.tt/static/droidavatar/Droid_Cream_3.jpg",
"Droid_Cream_4.jpg": "https://dust.tt/static/droidavatar/Droid_Cream_4.jpg",
"Droid_Cream_5.jpg": "https://dust.tt/static/droidavatar/Droid_Cream_5.jpg",
"Droid_Cream_6.jpg": "https://dust.tt/static/droidavatar/Droid_Cream_6.jpg",
"Droid_Cream_7.jpg": "https://dust.tt/static/droidavatar/Droid_Cream_7.jpg",
"Droid_Cream_8.jpg": "https://dust.tt/static/droidavatar/Droid_Cream_8.jpg",
"Droid_Green_1.jpg": "https://dust.tt/static/droidavatar/Droid_Green_1.jpg",
"Droid_Green_2.jpg": "https://dust.tt/static/droidavatar/Droid_Green_2.jpg",
"Droid_Green_3.jpg": "https://dust.tt/static/droidavatar/Droid_Green_3.jpg",
"Droid_Green_4.jpg": "https://dust.tt/static/droidavatar/Droid_Green_4.jpg",
"Droid_Green_5.jpg": "https://dust.tt/static/droidavatar/Droid_Green_5.jpg",
"Droid_Green_6.jpg": "https://dust.tt/static/droidavatar/Droid_Green_6.jpg",
"Droid_Green_7.jpg": "https://dust.tt/static/droidavatar/Droid_Green_7.jpg",
"Droid_Green_8.jpg": "https://dust.tt/static/droidavatar/Droid_Green_8.jpg",
"Droid_Indigo_1.jpg": "https://dust.tt/static/droidavatar/Droid_Indigo_1.jpg",
"Droid_Indigo_2.jpg": "https://dust.tt/static/droidavatar/Droid_Indigo_2.jpg",
"Droid_Indigo_3.jpg": "https://dust.tt/static/droidavatar/Droid_Indigo_3.jpg",
"Droid_Indigo_4.jpg": "https://dust.tt/static/droidavatar/Droid_Indigo_4.jpg",
"Droid_Indigo_5.jpg": "https://dust.tt/static/droidavatar/Droid_Indigo_5.jpg",
"Droid_Indigo_6.jpg": "https://dust.tt/static/droidavatar/Droid_Indigo_6.jpg",
"Droid_Indigo_7.jpg": "https://dust.tt/static/droidavatar/Droid_Indigo_7.jpg",
"Droid_Indigo_8.jpg": "https://dust.tt/static/droidavatar/Droid_Indigo_8.jpg",
"Droid_Lime_1.jpg": "https://dust.tt/static/droidavatar/Droid_Lime_1.jpg",
"Droid_Lime_2.jpg": "https://dust.tt/static/droidavatar/Droid_Lime_2.jpg",
"Droid_Lime_3.jpg": "https://dust.tt/static/droidavatar/Droid_Lime_3.jpg",
"Droid_Lime_4.jpg": "https://dust.tt/static/droidavatar/Droid_Lime_4.jpg",
"Droid_Lime_5.jpg": "https://dust.tt/static/droidavatar/Droid_Lime_5.jpg",
"Droid_Lime_6.jpg": "https://dust.tt/static/droidavatar/Droid_Lime_6.jpg",
"Droid_Lime_7.jpg": "https://dust.tt/static/droidavatar/Droid_Lime_7.jpg",
"Droid_Lime_8.jpg": "https://dust.tt/static/droidavatar/Droid_Lime_8.jpg",
"Droid_Orange_1.jpg": "https://dust.tt/static/droidavatar/Droid_Orange_1.jpg",
"Droid_Orange_2.jpg": "https://dust.tt/static/droidavatar/Droid_Orange_2.jpg",
"Droid_Orange_3.jpg": "https://dust.tt/static/droidavatar/Droid_Orange_3.jpg",
"Droid_Orange_4.jpg": "https://dust.tt/static/droidavatar/Droid_Orange_4.jpg",
"Droid_Orange_5.jpg": "https://dust.tt/static/droidavatar/Droid_Orange_5.jpg",
"Droid_Orange_6.jpg": "https://dust.tt/static/droidavatar/Droid_Orange_6.jpg",
"Droid_Orange_7.jpg": "https://dust.tt/static/droidavatar/Droid_Orange_7.jpg",
"Droid_Orange_8.jpg": "https://dust.tt/static/droidavatar/Droid_Orange_8.jpg",
"Droid_Pink_1.jpg": "https://dust.tt/static/droidavatar/Droid_Pink_1.jpg",
"Droid_Pink_2.jpg": "https://dust.tt/static/droidavatar/Droid_Pink_2.jpg",
"Droid_Pink_3.jpg": "https://dust.tt/static/droidavatar/Droid_Pink_3.jpg",
"Droid_Pink_4.jpg": "https://dust.tt/static/droidavatar/Droid_Pink_4.jpg",
"Droid_Pink_5.jpg": "https://dust.tt/static/droidavatar/Droid_Pink_5.jpg",
"Droid_Pink_6.jpg": "https://dust.tt/static/droidavatar/Droid_Pink_6.jpg",
"Droid_Pink_7.jpg": "https://dust.tt/static/droidavatar/Droid_Pink_7.jpg",
"Droid_Pink_8.jpg": "https://dust.tt/static/droidavatar/Droid_Pink_8.jpg",
"Droid_Purple_1.jpg": "https://dust.tt/static/droidavatar/Droid_Purple_1.jpg",
"Droid_Purple_2.jpg": "https://dust.tt/static/droidavatar/Droid_Purple_2.jpg",
"Droid_Purple_3.jpg": "https://dust.tt/static/droidavatar/Droid_Purple_3.jpg",
"Droid_Purple_4.jpg": "https://dust.tt/static/droidavatar/Droid_Purple_4.jpg",
"Droid_Purple_5.jpg": "https://dust.tt/static/droidavatar/Droid_Purple_5.jpg",
"Droid_Purple_6.jpg": "https://dust.tt/static/droidavatar/Droid_Purple_6.jpg",
"Droid_Purple_7.jpg": "https://dust.tt/static/droidavatar/Droid_Purple_7.jpg",
"Droid_Purple_8.jpg": "https://dust.tt/static/droidavatar/Droid_Purple_8.jpg",
"Droid_Red_1.jpg": "https://dust.tt/static/droidavatar/Droid_Red_1.jpg",
"Droid_Red_2.jpg": "https://dust.tt/static/droidavatar/Droid_Red_2.jpg",
"Droid_Red_3.jpg": "https://dust.tt/static/droidavatar/Droid_Red_3.jpg",
"Droid_Red_4.jpg": "https://dust.tt/static/droidavatar/Droid_Red_4.jpg",
"Droid_Red_5.jpg": "https://dust.tt/static/droidavatar/Droid_Red_5.jpg",
"Droid_Red_6.jpg": "https://dust.tt/static/droidavatar/Droid_Red_6.jpg",
"Droid_Red_7.jpg": "https://dust.tt/static/droidavatar/Droid_Red_7.jpg",
"Droid_Red_8.jpg": "https://dust.tt/static/droidavatar/Droid_Red_8.jpg",
"Droid_Sky_1.jpg": "https://dust.tt/static/droidavatar/Droid_Sky_1.jpg",
"Droid_Sky_2.jpg": "https://dust.tt/static/droidavatar/Droid_Sky_2.jpg",
"Droid_Sky_3.jpg": "https://dust.tt/static/droidavatar/Droid_Sky_3.jpg",
"Droid_Sky_4.jpg": "https://dust.tt/static/droidavatar/Droid_Sky_4.jpg",
"Droid_Sky_5.jpg": "https://dust.tt/static/droidavatar/Droid_Sky_5.jpg",
"Droid_Sky_6.jpg": "https://dust.tt/static/droidavatar/Droid_Sky_6.jpg",
"Droid_Sky_7.jpg": "https://dust.tt/static/droidavatar/Droid_Sky_7.jpg",
"Droid_Sky_8.jpg": "https://dust.tt/static/droidavatar/Droid_Sky_8.jpg",
"Droid_Teal_1.jpg": "https://dust.tt/static/droidavatar/Droid_Teal_1.jpg",
"Droid_Teal_2.jpg": "https://dust.tt/static/droidavatar/Droid_Teal_2.jpg",
"Droid_Teal_3.jpg": "https://dust.tt/static/droidavatar/Droid_Teal_3.jpg",
"Droid_Teal_4.jpg": "https://dust.tt/static/droidavatar/Droid_Teal_4.jpg",
"Droid_Teal_5.jpg": "https://dust.tt/static/droidavatar/Droid_Teal_5.jpg",
"Droid_Teal_6.jpg": "https://dust.tt/static/droidavatar/Droid_Teal_6.jpg",
"Droid_Teal_7.jpg": "https://dust.tt/static/droidavatar/Droid_Teal_7.jpg",
"Droid_Teal_8.jpg": "https://dust.tt/static/droidavatar/Droid_Teal_8.jpg",
"Droid_Yellow_1.jpg": "https://dust.tt/static/droidavatar/Droid_Yellow_1.jpg",
"Droid_Yellow_2.jpg": "https://dust.tt/static/droidavatar/Droid_Yellow_2.jpg",
"Droid_Yellow_3.jpg": "https://dust.tt/static/droidavatar/Droid_Yellow_3.jpg",
"Droid_Yellow_4.jpg": "https://dust.tt/static/droidavatar/Droid_Yellow_4.jpg",
"Droid_Yellow_5.jpg": "https://dust.tt/static/droidavatar/Droid_Yellow_5.jpg",
"Droid_Yellow_6.jpg": "https://dust.tt/static/droidavatar/Droid_Yellow_6.jpg",
"Droid_Yellow_7.jpg": "https://dust.tt/static/droidavatar/Droid_Yellow_7.jpg",
"Droid_Yellow_8.jpg": "https://dust.tt/static/droidavatar/Droid_Yellow_8.jpg",
};

const gridStyle = {
display: "grid",
gridTemplateColumns: "repeat(auto-fill, minmax(100px, 1fr))",
gap: "48px 16px",
};

const itemStyle = {
marginTop: "12px",
textOverflow: "ellipsis",
overflow: "hidden",
whiteSpace: "nowrap",
textAlign: "left",
width: "100%",
};

export const DroidAvatarSet = () => (
<>
<div className="s-py-4 s-text-base">
url is{" "}
<span className="s-font-bold">
"https://dust.tt/static/droidavatar/filename"
</span>
</div>
<div style={gridStyle}>
{Object.entries(avatarUrlList).map(([filename, url]) => {
return (
<div key={filename} style={itemStyle as React.CSSProperties}>
<Avatar visual={url} size="md" />
<div className="s-overflow-hidden s-text-ellipsis s-text-xs">
{filename}
</div>
</div>
);
})}
</div>
</>
);