Skip to content
Draft
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
3 changes: 3 additions & 0 deletions website/src/components/header/header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ const { noLinks } = Astro.props;
<Link class="item link" href="/blog">
Blog
</Link>
<Link class="item link" href="/packages">
Packages
</Link>
<Link class="item link" href="/community">
Community
</Link>
Expand Down
213 changes: 213 additions & 0 deletions website/src/components/react-pages/packages.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
.content {
background-color: var(--colorNeutralBackground3);
min-height: 100%;
padding: 20px;
box-sizing: border-box;
}

.list {
max-width: 960px;
margin: auto;
}

.intro {
text-align: center;
margin-bottom: 20px;
}

.intro h1 {
color: var(--colorNeutralForeground1);
font-size: 28px;
font-weight: 600;
line-height: 140%;
margin: 0 0 8px;
}

.intro p {
color: var(--colorNeutralForeground3);
font-size: 20px;
line-height: 140%;
margin: 0;
}

.search-input {
width: 100%;
padding: 10px 16px;
font-size: 1rem;
border: 1px solid var(--colorNeutralStroke1);
border-radius: 4px;
background-color: var(--colorNeutralBackground1);
color: var(--colorNeutralForeground1);
margin-bottom: 16px;
box-sizing: border-box;
outline: none;
}

.search-input:focus {
border-color: var(--colorBrandForeground1);
}

.count {
font-size: 0.85rem;
color: var(--colorNeutralForeground3);
margin-bottom: 16px;
}

.package-grid {
display: flex;
flex-wrap: wrap;
gap: 1rem;
list-style-type: none;
margin: 0;
padding: 0;
}

.package-item {
width: 100%;
}

.card-link {
display: block;
border-radius: 0;
color: var(--colorNeutralForeground1);
text-decoration: none;
}

.card-link:hover > .card > .card-bg {
border-color: var(--colorBrandForeground1);
}

.card {
display: block;
position: relative;
overflow: hidden;
}

.card-bg {
position: absolute;
width: 100%;
height: 100%;
background-color: var(--colorNeutralBackground1);
border: 1px solid var(--colorNeutralStroke3);
border-radius: 0;
box-sizing: border-box;
}

.card-content {
position: relative;
z-index: 1;
padding: 20px;
}

.card-header {
display: flex;
align-items: center;
margin-bottom: 4px;
}

.avatar {
width: 16px;
height: 16px;
border-radius: 50%;
flex-shrink: 0;
object-fit: cover;
}

.card-title-row {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
min-width: 0;
}

.package-name {
font-size: 1.1rem;
font-weight: 600;
color: var(--colorBrandForeground1);
}

.version-badge {
font-size: 0.75rem;
padding: 2px 10px;
border-radius: 12px;
background-color: var(--colorNeutralBackground4);
color: var(--colorNeutralForeground2);
}

.first-party-badge {
font-size: 0.75rem;
padding: 2px 10px;
border-radius: 12px;
background-color: var(--colorBrandBackground);
color: var(--colorNeutralForegroundOnBrand);
font-weight: 600;
}

.description {
color: var(--colorNeutralForeground2);
font-size: 0.9rem;
margin: 4px 0 10px;
line-height: 1.4;
}

.keywords {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 8px;
}

.keyword {
font-size: 0.7rem;
padding: 2px 8px;
border-radius: 3px;
background-color: var(--colorNeutralBackground4);
color: var(--colorNeutralForeground3);
}

.meta {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
font-size: 0.8rem;
color: var(--colorNeutralForeground3);
}

.loading {
text-align: center;
padding: 3rem;
color: var(--colorNeutralForeground2);
font-size: 1.1rem;
}

.error {
text-align: center;
padding: 3rem;
}

.error p {
color: var(--colorPaletteRedForeground1);
margin-bottom: 1rem;
}

.retry-button {
padding: 8px 24px;
border: 1px solid var(--colorNeutralStroke1);
border-radius: 4px;
background-color: var(--colorNeutralBackground1);
color: var(--colorNeutralForeground1);
cursor: pointer;
font-size: 0.9rem;
}

.retry-button:hover {
background-color: var(--colorNeutralBackground2);
}

@media only screen and (min-width: 640px) {
.package-grid {
gap: 1.25rem;
}
}
Loading
Loading