Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
<template>
|
2024-08-21 00:30:23 -07:00
|
|
|
<div class="ad-parent relative mb-3 flex w-full justify-center rounded-2xl bg-bg-raised">
|
2025-07-02 21:50:33 -07:00
|
|
|
<nuxt-link
|
|
|
|
|
to="/servers"
|
|
|
|
|
class="flex max-h-[250px] min-h-[250px] min-w-[300px] max-w-[300px] flex-col gap-4 rounded-[inherit]"
|
|
|
|
|
>
|
|
|
|
|
<img
|
|
|
|
|
src="https://cdn-raw.modrinth.com/modrinth-servers-placeholder-light.webp"
|
|
|
|
|
alt="Host your next server with Modrinth Servers"
|
|
|
|
|
class="light-image hidden rounded-[inherit]"
|
|
|
|
|
/>
|
|
|
|
|
<img
|
|
|
|
|
src="https://cdn-raw.modrinth.com/modrinth-servers-placeholder-dark.webp"
|
|
|
|
|
alt="Host your next server with Modrinth Servers"
|
|
|
|
|
class="dark-image rounded-[inherit]"
|
|
|
|
|
/>
|
|
|
|
|
</nuxt-link>
|
2024-08-20 23:42:44 -07:00
|
|
|
<div
|
|
|
|
|
class="absolute top-0 flex items-center justify-center overflow-hidden rounded-2xl bg-bg-raised"
|
|
|
|
|
>
|
2024-09-05 14:56:17 -07:00
|
|
|
<div id="modrinth-rail-1" />
|
2024-08-20 23:42:44 -07:00
|
|
|
</div>
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
</div>
|
|
|
|
|
</template>
|
2024-08-20 23:42:44 -07:00
|
|
|
<script setup>
|
|
|
|
|
useHead({
|
|
|
|
|
script: [
|
2025-01-08 13:42:15 -08:00
|
|
|
// {
|
|
|
|
|
// // Clean.io
|
|
|
|
|
// src: "https://cadmus.script.ac/d14pdm1b7fi5kh/script.js",
|
|
|
|
|
// },
|
2024-10-15 10:52:00 -07:00
|
|
|
{
|
|
|
|
|
// Aditude
|
2024-09-05 14:56:17 -07:00
|
|
|
src: "https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js",
|
|
|
|
|
async: true,
|
|
|
|
|
},
|
2024-10-04 13:35:39 -07:00
|
|
|
{
|
2024-10-15 10:52:00 -07:00
|
|
|
// Optima
|
2024-10-04 13:35:39 -07:00
|
|
|
src: "https://bservr.com/o.js?uid=8118d1fdb2e0d6f32180bd27",
|
|
|
|
|
async: true,
|
|
|
|
|
},
|
2024-09-05 14:56:17 -07:00
|
|
|
{
|
|
|
|
|
src: "/inmobi.js",
|
2024-08-20 23:42:44 -07:00
|
|
|
async: true,
|
|
|
|
|
},
|
|
|
|
|
],
|
2024-09-05 14:56:17 -07:00
|
|
|
link: [
|
|
|
|
|
{
|
|
|
|
|
rel: "preload",
|
|
|
|
|
as: "script",
|
|
|
|
|
href: "https://www.googletagservices.com/tag/js/gpt.js",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
window.tude = window.tude || { cmd: [] };
|
2024-10-21 12:34:46 -07:00
|
|
|
window.Raven = window.Raven || { cmd: [] };
|
|
|
|
|
|
|
|
|
|
window.Raven.cmd.push(({ config }) => {
|
|
|
|
|
config.setCustom({
|
|
|
|
|
param1: "web",
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
2024-09-05 14:56:17 -07:00
|
|
|
tude.cmd.push(function () {
|
|
|
|
|
tude.refreshAdsViaDivMappings([
|
|
|
|
|
{
|
|
|
|
|
divId: "modrinth-rail-1",
|
|
|
|
|
baseDivId: "pb-slot-square-2",
|
2024-10-15 23:47:51 -07:00
|
|
|
targeting: {
|
|
|
|
|
location: "web",
|
|
|
|
|
},
|
2024-09-05 14:56:17 -07:00
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
});
|
2024-08-20 23:42:44 -07:00
|
|
|
});
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
</script>
|
2024-08-20 23:42:44 -07:00
|
|
|
<style>
|
|
|
|
|
iframe[id^="google_ads_iframe"] {
|
|
|
|
|
color-scheme: normal;
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-05 14:56:17 -07:00
|
|
|
#qc-cmp2-ui {
|
|
|
|
|
background: var(--color-raised-bg);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
color: var(--color-base);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#qc-cmp2-ui::before {
|
|
|
|
|
background: var(--color-raised-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#qc-cmp2-ui::after {
|
|
|
|
|
background: var(--color-raised-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#qc-cmp2-ui button[mode="primary"] {
|
|
|
|
|
background: var(--color-brand);
|
|
|
|
|
color: var(--color-accent-contrast);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#qc-cmp2-ui button[mode="secondary"] {
|
|
|
|
|
background: var(--color-button-bg);
|
|
|
|
|
color: var(--color-base);
|
|
|
|
|
border-radius: var(--radius-lg);
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#qc-cmp2-ui button[mode="link"] {
|
|
|
|
|
color: var(--color-link);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#qc-cmp2-ui h2 {
|
|
|
|
|
color: var(--color-contrast);
|
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#qc-cmp2-ui div,
|
|
|
|
|
#qc-cmp2-ui li,
|
|
|
|
|
#qc-cmp2-ui strong,
|
|
|
|
|
#qc-cmp2-ui p,
|
|
|
|
|
#qc-cmp2-ui .qc-cmp2-list-item-title,
|
|
|
|
|
#qc-cmp2-ui .qc-cmp2-expandable-info {
|
|
|
|
|
color: var(--color-base);
|
|
|
|
|
font-family: var(--font-standard);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#qc-cmp2-ui .qc-cmp2-toggle[aria-checked="true"] {
|
|
|
|
|
background-color: var(--color-brand);
|
|
|
|
|
border: 1px solid var(--color-brand);
|
|
|
|
|
}
|
|
|
|
|
|
Project, Search, User redesign (#1281)
* New project page
* fix silly icon tailwind classes
* Start new versions page, add new ButtonStyled component
* Pagination and finish mocking up versions page functionality
* green download button
* hover animation
* New Modal, Avatar refactor, subpages in NavTabs
* lint
* Download modal
* New user page + fix lint
* fix ui lint
* Download animation fix
* Versions filter + finish project page
* Improve consistency of buttons on home page
* Fix ButtonStyled breaking
* Fix margin on version summary
* finish search, new modals, user + project page mobile
* fix gallery image pages
* New project header
* Fix gallery tab showing improperly
* Use auto direction + position for all popouts
* Preliminary user page
* test to see if this fixes login stuff
* remove extra slash
* Add version actions, move download button on versions page
* Listed -> public
* Shorten download modal selector height
* Fix user menu open direction
* Change breakpoint for header collapse
* Only underline title
* Tighten padding on stats a little
* New nav
* Make mobile breakpoint more consistent
* fix header breakpoint regression
* Add sign in button
* Fix edit icon color
* Fix margin at top of screen
* Fix user bios and ad width
* Fix user nav showing when there's only one type of project
* Fix plural projects on user page & extract i18n
* Remove ads on mobile for now
* Fix overflow menu showing hidden items
* NavTabs on mobile
* Fix navbar z index
* Search filter overhaul + negative filters
* fix no-max-height
* port version filters, fix following/collections, lint
* hide promos
* ui lint
* Disable modal background animation to reduce reported motion sickness
* Hide install with modrinth app button on mobile
---------
Signed-off-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
Co-authored-by: Prospector <prospectordev@gmail.com>
2024-08-20 23:03:16 -07:00
|
|
|
@media (max-width: 1024px) {
|
|
|
|
|
.ad-parent {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
2025-07-02 21:50:33 -07:00
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.light,
|
|
|
|
|
.light-mode {
|
|
|
|
|
.dark-image {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.light-image {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|