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

weekly promotion of develop to main #326

Merged
merged 37 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
69b0f3b
Basic app store layout
calebjacob Aug 8, 2023
8b2083f
Implemented DIG.InputSearch
calebjacob Aug 14, 2023
53e469f
Fixing search icon
calebjacob Aug 14, 2023
8050a52
Allow passing in metadata for ComponentCard to avoid Social.get() call
calebjacob Aug 14, 2023
14ae61a
Breaking up app store index page into multiple components, implementi…
calebjacob Aug 16, 2023
9e283b1
Implement data fetch for app store
calebjacob Aug 28, 2023
5d32038
Merge branch 'develop' into feat/app-store
calebjacob Aug 28, 2023
29ad193
Implement debounce for DIG.InputSearch, app store search pagination
calebjacob Aug 30, 2023
aac13be
Merge pull request #203 from near/feat/app-store
calebjacob Sep 1, 2023
677d047
Fix rendering posts on profile page (#204)
shelegdmitriy Sep 1, 2023
cc618fe
Various DIG component fixes and documentation updates
calebjacob Sep 5, 2023
05e5d46
Updating active default tab logic
calebjacob Sep 5, 2023
3aa9ed6
Merge pull request #205 from near/feat/misc-dig-fixes
calebjacob Sep 6, 2023
696fec0
Implement dig overview page MVP
calebjacob Sep 6, 2023
aca6c84
Merge branch 'develop' into feat/dig-overview-page
calebjacob Sep 6, 2023
e90f1e2
Rename AppStore to AppLibrary
calebjacob Sep 7, 2023
1e1eb51
Rename AppStore to AppLibrary - updating code paths
calebjacob Sep 7, 2023
451b342
Merge pull request #212 from near/feat/rename-app-store
calebjacob Sep 7, 2023
5c26937
Add more styling options to `DIG.Dialog` (#213)
shelegdmitriy Sep 7, 2023
b9a7303
Fix styling options of `DIG.Dialog` (#214)
shelegdmitriy Sep 7, 2023
d074685
Merge pull request #235 from near/feat/dig-overview-page
calebjacob Sep 11, 2023
4177a86
Fixing dig button example jsx
calebjacob Sep 11, 2023
f0d17a5
Merge pull request #318 from near/feat/button-description-fix
calebjacob Sep 11, 2023
6df743f
Add `NotificationAlert` (#317)
shelegdmitriy Sep 11, 2023
346d2f2
Add styling options & improve `NotificationAlert` (#319)
shelegdmitriy Sep 12, 2023
5758773
NotificationAlert changes
marcinbodnar Sep 13, 2023
44ec4e0
Merge pull request #324 from near/DEC-1573
marcinbodnar Sep 14, 2023
86cf5d2
Add a `New DIG Component` issue template
heycorwin Sep 14, 2023
dec62a4
Add Banner component
marcinbodnar Sep 15, 2023
106beac
Create Notifications component
marcinbodnar Sep 15, 2023
aa784c5
Create Notification component
marcinbodnar Sep 15, 2023
f993b4b
Create NotificationsList component
marcinbodnar Sep 15, 2023
a9f3455
Create Settings component
marcinbodnar Sep 15, 2023
e9144b1
Create SettingsHeader component
marcinbodnar Sep 15, 2023
0dfecdc
Create SettingsListItem component
marcinbodnar Sep 15, 2023
3338f78
Create SettingsTurnOn component
marcinbodnar Sep 15, 2023
5aa92e0
Merge pull request #330 from near/DEC-1573
marcinbodnar Sep 18, 2023
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
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/new-dig-component.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: New DIG Component
about: Add a new component to the DIG component library.
title: "[New Component] Component Name"
labels: product design
assignees: ''

---

## Component Description
Provide a description of the component and it's function.

### Sub-component(s)
If the component is composed of other sub-components, list those here:

- Sub-component
- Sub-component

## Screenshot

<br>
Insert screenshot here
<br>

## Figma Link

Insert a Figma link here
91 changes: 91 additions & 0 deletions src/AppLibrary/AppThumbnail.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
const appDetailsUrl = `#/${REPL_ACCOUNT}/widget/ComponentDetailsPage?src=${props.author}/widget/${props.widgetName}`;

const Thumbnail = styled.a`
display: block;
aspect-ratio: 1 / 1;
overflow: hidden;
border-radius: 1.25rem;
border: 1px solid var(--sand6);
position: relative;
cursor: pointer;
text-decoration: none !important;
outline: none;
transition: all 200ms;

img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
border: none;
}

&:hover,
&:focus {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}
`;

const ThumbnailContent = styled.span`
display: flex;
flex-direction: column;
gap: 0.25rem;
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 1.25rem;
padding-top: 3.5rem;
background: linear-gradient(
to top,
rgba(0, 0, 0, 0.85) 20%,
rgba(0, 0, 0, 0)
);
font: var(--text-xs);
color: var(--white);
text-shadow: 0 0 2px rgba(0, 0, 0, 0.75);

b {
font-weight: 600;
}

@media (max-width: 650px) {
padding: 0.75rem;
}
`;

const ThumbnailTag = styled.span`
display: inline-flex;
border-bottom-right-radius: 1.25rem;
background: var(--violet7);
color: #fff;
font: var(--text-xs);
font-weight: 700;
padding: 0.25rem 0.75rem;
position: absolute;
top: 0;
left: 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
border-right: 1px solid rgba(0, 0, 0, 0.1);
`;

return (
<Thumbnail href={appDetailsUrl}>
<Widget
src="${REPL_MOB}/widget/Image"
props={{
image: props.image,
fallbackUrl:
"https://ipfs.near.social/ipfs/bafkreifc4burlk35hxom3klq4mysmslfirj7slueenbj7ddwg7pc6ixomu",
alt: props.widgetName,
}}
/>

<ThumbnailContent>
<span>
<b>{props.name ?? props.widgetName}</b>
</span>
<span>{props.author}</span>
</ThumbnailContent>
</Thumbnail>
);
68 changes: 68 additions & 0 deletions src/AppLibrary/ArticleSummary.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
const Text = styled.p`
font: var(--${(p) => p.size ?? "text-base"});
font-weight: ${(p) => p.fontWeight};
color: var(--${(p) => p.color ?? "sand12"});
margin: 0;
`;

const ArticleImage = styled.div`
width: 100%;
aspect-ratio: 26 / 15;
border-radius: 1rem;
border: 1px solid var(--sand6);
overflow: hidden;
transition: all 200ms;

img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
border: none;
}
`;

const ArticleContent = styled.div`
display: flex;
flex-direction: column;
gap: 0.25rem;
`;

const Article = styled.a`
display: flex;
flex-direction: column;
gap: 1rem;
align-items: row;
cursor: pointer;
text-decoration: none !important;

&:hover,
&:focus {
${ArticleImage} {
box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}
}
`;

return (
<Article url={props.url}>
<ArticleImage>
<Widget
src="${REPL_MOB}/widget/Image"
props={{
image: props.image,
fallbackUrl:
"https://ipfs.near.social/ipfs/bafkreifc4burlk35hxom3klq4mysmslfirj7slueenbj7ddwg7pc6ixomu",
alt: props.title,
}}
/>
</ArticleImage>

<ArticleContent>
<Text size="text-base" fontWeight={600}>
{props.title}
</Text>
<Text size="text-xs">{props.author}</Text>
</ArticleContent>
</Article>
);
Loading