Skip to content

Commit ff0f057

Browse files
author
Shaw
committed
chore: checkpoint aosp and os downloads styles
1 parent 9dcefe6 commit ff0f057

4 files changed

Lines changed: 202 additions & 1 deletion

File tree

.github/workflows/elizaos-os-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- "packages/os/**"
99
- "packages/os-homepage/**"
1010
- "packages/os-usb-installer/**"
11+
- "packages/aosp-flasher/**"
1112

1213
jobs:
1314
validate-os-release:

packages/aosp-flasher/src/backend/adb-backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function sleep(ms: number): Promise<void> {
8484
interface RawAdbDevice {
8585
serial: string;
8686
state: string;
87-
model?: string;
87+
model: string | undefined;
8888
}
8989

9090
function parseAdbDevices(output: string): RawAdbDevice[] {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

packages/os-homepage/src/index.css

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,3 +781,202 @@ h3 {
781781
width: 100%;
782782
}
783783
}
784+
785+
/* ── OS Downloads section ─────────────────────────────────────────────────── */
786+
787+
.os-downloads {
788+
color: var(--brand-white);
789+
}
790+
791+
.os-downloads .section-head {
792+
margin-bottom: clamp(2.5rem, 5vw, 4rem);
793+
}
794+
795+
.os-downloads .section-lede {
796+
max-width: 44rem;
797+
margin-top: 0.75rem;
798+
font-size: clamp(1rem, 1.4vw, 1.2rem);
799+
font-weight: 300;
800+
opacity: 0.8;
801+
}
802+
803+
.artifact-category {
804+
margin-bottom: clamp(3rem, 6vw, 5rem);
805+
}
806+
807+
.artifact-category-head {
808+
margin-bottom: 1.5rem;
809+
}
810+
811+
.artifact-category-head h2 {
812+
margin-bottom: 0.35rem;
813+
font-size: clamp(1.5rem, 3vw, 2.25rem);
814+
font-weight: 500;
815+
}
816+
817+
.artifact-category-desc {
818+
margin: 0;
819+
font-size: 0.95rem;
820+
font-weight: 300;
821+
opacity: 0.7;
822+
}
823+
824+
.artifact-grid {
825+
display: grid;
826+
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
827+
gap: 1.25rem;
828+
}
829+
830+
.artifact-card {
831+
display: flex;
832+
flex-direction: column;
833+
gap: 1rem;
834+
padding: clamp(1rem, 2.5vw, 1.5rem);
835+
background: rgba(255, 255, 255, 0.06);
836+
border: 1px solid rgba(255, 255, 255, 0.1);
837+
transition: background 0.15s ease;
838+
}
839+
840+
.artifact-card[data-available="false"] {
841+
opacity: 0.75;
842+
}
843+
844+
.artifact-card:hover {
845+
background: rgba(255, 255, 255, 0.1);
846+
}
847+
848+
.artifact-card-head {
849+
flex: 1;
850+
display: flex;
851+
flex-direction: column;
852+
gap: 0.5rem;
853+
}
854+
855+
.artifact-badges {
856+
display: flex;
857+
flex-wrap: wrap;
858+
gap: 0.4rem;
859+
}
860+
861+
.artifact-badge {
862+
display: inline-block;
863+
padding: 0.15rem 0.55rem;
864+
font-size: 0.72rem;
865+
font-weight: 500;
866+
text-transform: uppercase;
867+
letter-spacing: 0.04em;
868+
}
869+
870+
.artifact-badge-kind {
871+
background: var(--brand-blue);
872+
color: var(--brand-white);
873+
}
874+
875+
.artifact-badge-platform {
876+
background: rgba(255, 255, 255, 0.12);
877+
color: var(--brand-white);
878+
}
879+
880+
.artifact-badge-soon {
881+
background: var(--brand-orange);
882+
color: var(--brand-black);
883+
}
884+
885+
.artifact-label {
886+
margin: 0;
887+
font-size: clamp(0.95rem, 1.3vw, 1.05rem);
888+
font-weight: 500;
889+
line-height: 1.2;
890+
}
891+
892+
.artifact-description {
893+
margin: 0;
894+
font-size: 0.88rem;
895+
font-weight: 300;
896+
line-height: 1.45;
897+
opacity: 0.75;
898+
}
899+
900+
.artifact-prereq {
901+
display: flex;
902+
align-items: center;
903+
gap: 0.45rem;
904+
padding: 0.55rem 0.75rem;
905+
background: rgba(255, 88, 0, 0.12);
906+
border-left: 2px solid var(--brand-orange);
907+
font-size: 0.82rem;
908+
color: var(--brand-orange);
909+
}
910+
911+
.artifact-prereq-icon {
912+
flex-shrink: 0;
913+
width: 1rem;
914+
height: 1rem;
915+
}
916+
917+
.artifact-card-foot {
918+
display: flex;
919+
flex-direction: column;
920+
gap: 0.65rem;
921+
}
922+
923+
.artifact-size {
924+
font-size: 0.82rem;
925+
font-weight: 300;
926+
opacity: 0.6;
927+
}
928+
929+
.artifact-actions {
930+
display: flex;
931+
flex-wrap: wrap;
932+
align-items: center;
933+
gap: 0.5rem;
934+
}
935+
936+
.artifact-link {
937+
display: inline-flex;
938+
align-items: center;
939+
gap: 0.3rem;
940+
font-size: 0.82rem;
941+
font-weight: 500;
942+
opacity: 0.7;
943+
text-decoration: underline;
944+
text-underline-offset: 2px;
945+
}
946+
947+
.artifact-link:hover {
948+
opacity: 1;
949+
color: var(--brand-orange);
950+
}
951+
952+
.artifact-link .icon {
953+
width: 0.85rem;
954+
height: 0.85rem;
955+
}
956+
957+
.artifact-download-button {
958+
flex: 1 1 auto;
959+
justify-content: center;
960+
background: var(--brand-white);
961+
color: var(--brand-black);
962+
}
963+
964+
.artifact-download-button-disabled {
965+
background: rgba(255, 255, 255, 0.15);
966+
color: rgba(255, 255, 255, 0.5);
967+
cursor: default;
968+
pointer-events: none;
969+
}
970+
971+
.artifact-channel-note {
972+
margin-top: clamp(1.5rem, 3vw, 2.5rem);
973+
padding: 1rem 1.25rem;
974+
background: rgba(255, 255, 255, 0.05);
975+
border-left: 2px solid var(--brand-blue);
976+
font-size: 0.9rem;
977+
}
978+
979+
.artifact-channel-note p {
980+
margin: 0;
981+
opacity: 0.75;
982+
}

0 commit comments

Comments
 (0)