From 1d8c80c062de528b2328011893e5842b7b4b4e8e Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Sat, 7 Jan 2023 18:04:43 -0700 Subject: [PATCH] New landing page (#834) * New landing page * Edit gradient * User + Creator sections, some css cleanup * Most stuff * Finish page (mostly) * Compress images * Moar compression * Fix mobile zoom + adjust wording * add utm stuff to subscribe link * Fix border overlay * Remove redundant CSS class * Fix most issues (?) * Add notifs showcase * Spacing changes, update copy, fix lag * add and * Update spacing * save work * Update mobile support * Update discovery copy * Light theme * Adjust logo banner on various screen sizes * Add launcher links * Oxipng * Switch to cdn links for images * Add animation * Fix animation * fix tags Co-authored-by: Emma Cypress Pointer-Null --- COPYING.md | 2 - assets/images/external/atlauncher.svg | 1 + assets/images/external/multimc.png | Bin 0 -> 6934 bytes assets/images/external/prism.svg | 203 +++ assets/images/illustrations/features.svg | 1 - assets/images/landing-gradient.svg | 1 - assets/images/landing.svg | 1557 ------------------- assets/images/text-logo.svg | 16 - assets/styles/global.scss | 95 +- components/ui/Avatar.vue | 5 + components/ui/ProjectCard.vue | 28 +- layouts/default.vue | 18 +- pages/_type/_id.vue | 4 +- pages/index.vue | 1785 ++++++++++++++++------ pages/user/_id.vue | 4 +- store/tag.js | 10 +- 16 files changed, 1693 insertions(+), 2037 deletions(-) create mode 100644 assets/images/external/atlauncher.svg create mode 100644 assets/images/external/multimc.png create mode 100644 assets/images/external/prism.svg delete mode 100644 assets/images/illustrations/features.svg delete mode 100644 assets/images/landing-gradient.svg delete mode 100644 assets/images/landing.svg delete mode 100644 assets/images/text-logo.svg diff --git a/COPYING.md b/COPYING.md index ab6477fb..c569708f 100644 --- a/COPYING.md +++ b/COPYING.md @@ -9,9 +9,7 @@ Any files depicting the Modrinth branding, including the wrench-in-labyrinth log This includes, but may not be limited to, the following files: - assets/images/404.svg -- assets/images/landing.svg - assets/images/logo.svg -- assets/images/text-logo.svg - components/brand/* - static/favicon.ico - static/favicon-light.ico diff --git a/assets/images/external/atlauncher.svg b/assets/images/external/atlauncher.svg new file mode 100644 index 00000000..fa2799c8 --- /dev/null +++ b/assets/images/external/atlauncher.svg @@ -0,0 +1 @@ + diff --git a/assets/images/external/multimc.png b/assets/images/external/multimc.png new file mode 100644 index 0000000000000000000000000000000000000000..5251656db3146924cddac4bc02dbfc24f3176185 GIT binary patch literal 6934 zcmV+x8|mbUP)gcNLuag?3_K_(|31W$)A~(Raw>5GqW38v)x@? zm6gYr|M_M18b}>~{AVAp6^;cTbMwY$P2k;ug&JKpF!NyaCq9x_Sab)B#huDSaQ}g2Fj+TB(6&v^en(KKw|-upm;t3#LxW*pnyONJl4uH`;VUb;`y&cKKqWr;B#)-xZ9wfs6m>hfn45(l~Xo|g{p>FrwkTLju8q& zc#Z!J)_d6b|E+{jo%-;p5U`{@N~+7W{RqN)YQO*9_5Csa^nEW7v7MM;)i@0bS=3#@O%Mp6@*n zX!gaj40v?GaKnxy)Mpxuq)iIT(}(B#TA$^+<2smiFdZ~)AX)BTeKH+X+ z0fLvui4NDlu#!-xX@HbO#ekA+$6TopUpJ-!8vL+}!3&*4TdRL?Ivb=2kR+6`5G2)d z=dafjB})%hQF@>ngP8$hrDGy@$r6qs2txwfb=}Ceh`|Lu(uXV)gAtXD07?QU4zfW~ z@?y|(DKi0R@X{E%7b)xkxnfQm5YUM{oh)bV641Lr0s;TtTRw zfMAEhmKVn{AW`Sz(_qU-IykXU?p6{JLu)ib+fEj9f9g!ls)1NC#NY`aC55s@Lqy;} zEJfx|b=OZI7ILW2OT!FJZ<1_iiy`;3ATb{IPL@zZYtx7I)40#P3x#rC3ld2(cPW3^ zJjlL5s8;&0aRWyhoGjNJhX&9C?nE6NK+`Y|wK+;vVyT^SXELnO+UE5Jk*u>DQ(JZe z02$hJ>qa@NoT(djLq*_P89oqmDuhebqdgmTIt_r!a2Au zfWmQVBgqCwbvT)dAfZZ7*AI|Fz1^_SnJ7jR1r~{tw0kVNZlvou=+Ff8NB~s|`Dh0C zjEmXP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~)6%xtiF(P+ll{qwebGz< zATFZ-36xg_%bbujIPAIr(mJRzEwQd-NG?TfS`zyhHG?Qig&Qdu;vE%Xy^^d4X35Z0 zmL3k8h0jDR0YU(x1U2KgtO_KC!^azbUKd4}R5fjwMhIBASwa24Ac(9%42OCWQ9!^B z?Wn|pO{rTNu;kC3kjT%JR2>DKBfI&`heNNXOA9{&7Om(;l4C;OG#9g!YKg~4aqpR( zL`r&7_9(4NP+$NvRqnv?r5e9}fTDLJoYhc5LMDz!)C#-+$z7!iC|&;I``NAOQUj!b zK}wP$8-rN&R5=_DjyAyP%MG#cEP^=(!w?4Bh^%e|2;XjJNc+PKeXpRb!kEfWlAUGR zl*B+Ksg;D5;llm@ceMc){(10$kixYWN5?DJ(m$)QIaEpODuRC(vEslpa7apNrQyg z_FVtLwDu6KZiq})1X(P=^&Y}~LS^+ygPitU40<#b+n@tG8y42>&=fGhlt;V%BMA;a z1VCJJcm&L&;owH<4Lc>o-iTE!?YYwSN1p3pKvtI#iA)U2v`1rlA8>E7D!aZ0!j6XqSxFVs4YP`zndZM{_<7xG&9XuA>x}~wwU7dbOoL|=IJ*SS z2@Vd=WoAnI^)#ef6On*Q998UXXjbX~*<=Jx{;l`z-Y=ZrZ`?8WCO7A$} + + + + Prism Launcher Logo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Prism Launcher Logo + 19/10/2022 + + + Prism Launcher + + + + + AutiOne, Boba, ely, Fulmine, gon sawa, Pankakes, tobimori, Zeke + + + https://github.com/PrismLauncher/PrismLauncher + + + Prism Launcher + + + + + + + + + + + + + + + diff --git a/assets/images/illustrations/features.svg b/assets/images/illustrations/features.svg deleted file mode 100644 index b71deda8..00000000 --- a/assets/images/illustrations/features.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/assets/images/landing-gradient.svg b/assets/images/landing-gradient.svg deleted file mode 100644 index 0c287e74..00000000 --- a/assets/images/landing-gradient.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/assets/images/landing.svg b/assets/images/landing.svg deleted file mode 100644 index 8645a842..00000000 --- a/assets/images/landing.svg +++ /dev/null @@ -1,1557 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/assets/images/text-logo.svg b/assets/images/text-logo.svg deleted file mode 100644 index d3f26291..00000000 --- a/assets/images/text-logo.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/assets/styles/global.scss b/assets/styles/global.scss index 9a6c05c0..18731680 100644 --- a/assets/styles/global.scss +++ b/assets/styles/global.scss @@ -1,5 +1,5 @@ html { - @extend .light-mode; + @extend .dark-mode; --dark-color-text: #b0bac5; --dark-color-text-dark: #ecf9fb; } @@ -91,6 +91,49 @@ html { hsla(0, 0%, 0%, 0.1) 0px 2px 4px -1px; --shadow-card: rgba(50, 50, 100, 0.1) 0px 2px 4px 0px; + + --landing-maze-bg: url('https://cdn.modrinth.com/landing/landing-light.png'); + --landing-maze-gradient-bg: url('https://cdn.modrinth.com/landing/landing-lower-light.png'); + --landing-maze-outer-bg: linear-gradient(180deg, #f0f0f0 0%, #ffffff 100%); + + --landing-color-heading: #000; + --landing-color-subheading: #3a3f45; + + --landing-transition-gradient-start: rgba(255, 255, 255, 0); + --landing-transition-gradient-end: #ffffff; + --landing-hover-card-gradient: radial-gradient( + 50% 50% at 50% 50%, + #fff 0%, + rgba(204, 204, 204, 0.77) 100% + ); + --landing-border-gradient: linear-gradient( + to bottom right, + rgba(129, 137, 175, 0.75) 0%, + rgba(66, 71, 97, 0.34) 100% + ); + --landing-creator-gradient: linear-gradient( + 180deg, + #f8f8f8 0%, + #f8f8f8 63.19% + ); + + --landing-blob-gradient: radial-gradient( + 50% 50% at 50% 50%, + rgba(255, 255, 255, 0.35) 0%, + rgba(255, 255, 255, 0.2695) 100% + ); + --landing-blob-shadow: 2px 2px 12px rgba(0, 0, 0, 0.16), + inset 2px 2px 64px rgba(255, 255, 255, 0.45); + + --landing-card-bg: rgba(255, 255, 255, 0.8); + --landing-card-shadow: 2px 2px 12px rgba(0, 0, 0, 0.16); + + --landing-blue-label: #0098ba; + --landing-blue-label-bg: rgba(0, 177, 216, 0.15); + --landing-green-label: #00a936; + --landing-green-label-bg: rgba(0, 216, 69, 0.15); + + --landing-raw-bg: #fff; } .dark-mode { @@ -174,6 +217,50 @@ html { rgba(0, 0, 0, 0.06) 0px 2px 4px -1px; --shadow-card: rgba(0, 0, 0, 0.25) 0px 2px 4px 0px; + + --landing-maze-bg: url('https://cdn.modrinth.com/landing/landing.png'); + --landing-maze-gradient-bg: linear-gradient( + 0deg, + #31375f 0%, + rgba(8, 14, 55, 0) 100% + ), + url('https://cdn.modrinth.com/landing/landing-lower.png'); + --landing-maze-outer-bg: linear-gradient(180deg, #06060d 0%, #000000 100%); + + --landing-color-heading: #fff; + --landing-color-subheading: #afb6be; + + --landing-transition-gradient-start: rgba(14, 16, 32, 0); + --landing-transition-gradient-end: #060a1c; + --landing-hover-card-gradient: radial-gradient( + 50% 50% at 50% 50%, + #2c304f 0%, + rgba(32, 35, 50, 0.77) 100% + ); + --landing-border-gradient: linear-gradient( + to bottom right, + rgba(168, 177, 221, 0.75) 0%, + rgba(168, 177, 221, 0.18) 100% + ); + --landing-creator-gradient: linear-gradient(180deg, #000000 0%, #0e101d 100%); + + --landing-blob-gradient: radial-gradient( + 50% 50% at 50% 50%, + rgba(44, 48, 79, 0.35) 0%, + rgba(32, 35, 50, 0.2695) 100% + ); + --landing-blob-shadow: 2px 2px 12px rgba(0, 0, 0, 0.16), + inset 2px 2px 64px rgba(57, 61, 94, 0.45); + + --landing-card-bg: rgba(59, 63, 85, 0.15); + --landing-card-shadow: 2px 2px 12px rgba(0, 0, 0, 0.16); + + --landing-blue-label: #10c0e7; + --landing-blue-label-bg: rgba(0, 177, 216, 0.15); + --landing-green-label: #00d845; + --landing-green-label-bg: rgba(0, 216, 69, 0.15); + + --landing-raw-bg: #000; } .oled-mode { @@ -186,12 +273,6 @@ html { --color-button-bg-active: #3c3c40; } -.midas-mode { - @extend .dark-mode; - --color-brand: #fac413; - --color-brand-shadow: rgba(250, 196, 19, 0.7); -} - body { // Defaults background-color: var(--color-bg); diff --git a/components/ui/Avatar.vue b/components/ui/Avatar.vue index 4adc180f..0ba0597d 100644 --- a/components/ui/Avatar.vue +++ b/components/ui/Avatar.vue @@ -5,6 +5,7 @@ :class="`avatar size-${size} ${circle ? 'circle' : ''}`" :src="src" :alt="alt" + :loading="loading" /> - + diff --git a/layouts/default.vue b/layouts/default.vue index 02c5feb5..2b290fdd 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -5,7 +5,7 @@ :class="{ 'expanded-mobile-nav': isBrowseMenuOpen }" >
diff --git a/pages/user/_id.vue b/pages/user/_id.vue index 199bed05..f27710b0 100644 --- a/pages/user/_id.vue +++ b/pages/user/_id.vue @@ -15,7 +15,7 @@
- +
diff --git a/store/tag.js b/store/tag.js index 15eb756e..dadb19dc 100644 --- a/store/tag.js +++ b/store/tag.js @@ -22,6 +22,11 @@ export const state = () => ({ id: 'datapack', display: 'data pack', }, + { + actual: 'shader', + id: 'shader', + display: 'shader', + }, { actual: 'resourcepack', id: 'resourcepack', @@ -32,11 +37,6 @@ export const state = () => ({ id: 'modpack', display: 'modpack', }, - { - actual: 'shader', - id: 'shader', - display: 'shader', - }, ], loaderData: { pluginLoaders: ['bukkit', 'spigot', 'paper', 'purpur', 'sponge'],