From 49b27597c9387856db89e5690659dc5f8e3fbe42 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 15 Jan 2025 15:31:56 +0300 Subject: [PATCH] Redirecting and news updates --- assets/data/news.json | 13 +- assets/menu/menu.json | 11 +- assets/styles/layout/_news.scss | 2 +- assets/styles/layout/_topbar.scss | 100 ++++- components/template/Configuration.vue | 37 -- .../template/Features/Animation/Inline.vue | 94 ----- .../template/Features/Animation/index.vue | 141 ------- components/template/Features/index.vue | 60 --- components/template/Hero/Light.vue | 58 --- components/template/Hero/Rectangle.vue | 18 - components/template/Hero/index.vue | 42 --- components/template/License.vue | 41 --- components/template/Related.vue | 25 -- components/template/Separator.vue | 7 - components/template/Youtube.vue | 66 ---- layouts/AppNews.vue | 2 +- layouts/AppTopBar.vue | 30 +- nuxt.config.js | 3 - pages/team/index.vue | 98 ----- pages/templates/apollo/index.vue | 253 ------------- pages/templates/atlantis/index.vue | 241 ------------ pages/templates/avalon/index.vue | 241 ------------ pages/templates/diamond/index.vue | 230 ------------ pages/templates/freya/index.vue | 227 ------------ pages/templates/index.vue | 146 -------- pages/templates/poseidon/index.vue | 197 ---------- pages/templates/sakai/index.vue | 156 -------- pages/templates/ultima/index.vue | 231 ------------ pages/templates/verona/index.vue | 228 ------------ pages/uikit/index.vue | 348 ------------------ 30 files changed, 124 insertions(+), 3222 deletions(-) delete mode 100644 components/template/Configuration.vue delete mode 100644 components/template/Features/Animation/Inline.vue delete mode 100644 components/template/Features/Animation/index.vue delete mode 100644 components/template/Features/index.vue delete mode 100644 components/template/Hero/Light.vue delete mode 100644 components/template/Hero/Rectangle.vue delete mode 100644 components/template/Hero/index.vue delete mode 100644 components/template/License.vue delete mode 100644 components/template/Related.vue delete mode 100644 components/template/Separator.vue delete mode 100644 components/template/Youtube.vue delete mode 100644 pages/team/index.vue delete mode 100644 pages/templates/apollo/index.vue delete mode 100644 pages/templates/atlantis/index.vue delete mode 100644 pages/templates/avalon/index.vue delete mode 100644 pages/templates/diamond/index.vue delete mode 100644 pages/templates/freya/index.vue delete mode 100644 pages/templates/index.vue delete mode 100644 pages/templates/poseidon/index.vue delete mode 100644 pages/templates/sakai/index.vue delete mode 100644 pages/templates/ultima/index.vue delete mode 100644 pages/templates/verona/index.vue delete mode 100644 pages/uikit/index.vue diff --git a/assets/data/news.json b/assets/data/news.json index 5239d8c46..b7351bff0 100644 --- a/assets/data/news.json +++ b/assets/data/news.json @@ -1,9 +1,10 @@ { "id": 60, - "content": "Diamond Template Remastered ⭐️", - "linkText": "Live Demo", - "linkHref": "http://diamond.primevue.org", - "backgroundStyle": "background-color:var(--primary-color)", - "textStyle": "color:var(--primary-color-text);font-weight:500", - "linkStyle": "color:var(--primary-color-text);font-weight:700;text-decoration: underline;" + "content": "V3 has reached EOL, Upgrade to ", + "linkText": "PrimeVue 4", + "linkHref": "http://primevue.org", + "backgroundStyle": "background-color:var(--yellow-500)", + "textStyle": "color:#000;font-weight:500", + "linkStyle": "color:#000;font-weight:700;text-decoration: underline;", + "closable": false } \ No newline at end of file diff --git a/assets/menu/menu.json b/assets/menu/menu.json index 210875672..e356861be 100644 --- a/assets/menu/menu.json +++ b/assets/menu/menu.json @@ -539,13 +539,12 @@ { "name": "Tailwind", "icon": "pi pi-heart", - "href": "https://tailwind.primevue.org/", - "badge": "NEW" + "href": "https://tailwind.primevue.org/" }, { "name": "Figma UI Kit", "icon": "pi pi-pencil", - "to": "/uikit" + "href": "https://primevue.org/uikit/" }, { "name": "Icons", @@ -565,12 +564,12 @@ { "name": "Templates", "icon": "pi pi-star", - "to": "/templates" + "href": "https://primevue.org/templates" }, { "name": "PrimeBlocks", "icon": "pi pi-server", - "href": "https://blocks.primevue.org" + "href": "https://primeblocks.org" }, { "name": "Guides", @@ -611,7 +610,7 @@ "children": [ { "name": "About Us", - "to": "/team" + "href": "https://primevue.org/team/" }, { "name": "Roadmap", diff --git a/assets/styles/layout/_news.scss b/assets/styles/layout/_news.scss index 681496187..0a60c4fe3 100644 --- a/assets/styles/layout/_news.scss +++ b/assets/styles/layout/_news.scss @@ -41,7 +41,7 @@ .layout-news-link, .layout-news-link:visited, .layout-news-link:active { - color:var(--primary-color-text); + color:#000; font-weight:700; } .layout-news-link:hover { diff --git a/assets/styles/layout/_topbar.scss b/assets/styles/layout/_topbar.scss index bbd53f870..5626f66dd 100644 --- a/assets/styles/layout/_topbar.scss +++ b/assets/styles/layout/_topbar.scss @@ -55,4 +55,102 @@ .menu-button { display: none; } -} \ No newline at end of file + + .topbar-items { + display: flex; + list-style-type: none; + margin: 0; + padding: 0; + gap: 0.5rem; + align-items: center; + + li { + position: relative; + } + + .topbar-item { + display: inline-flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + border: 1px solid var(--surface-border); + width: 2rem; + height: 2rem; + transition: outline-color .2s, border-color .2s; + border-radius: 6px; + margin: 0; + padding: 0; + outline-color: transparent; + background-color: var(--surface-0); + cursor: pointer; + + @include focus-visible(); + + &:hover { + border-color: var(--primary-color); + } + + i, + span { + color: var(--text-color); + } + } + + .version-item { + width: auto; + padding: 0.5rem; + + .version-text { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .version-icon { + margin-inline-start: .25rem; + color: var(--text-secondary-color); + } + } + + .versions-panel { + padding: .25rem; + background-color: var(--overlay-background); + position: absolute; + inset-inline-end: 0; + top: calc(100% + 2px); + border-radius: 6px; + border: 1px solid var(--border-color); + box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); + transform-origin: top; + + ul { + padding: 0; + margin: 0; + list-style-type: none; + display: flex; + flex-direction: column; + gap: 4px; + + li { + margin: 2px; + + } + + a { + display: inline-flex; + padding: 0.5rem .75rem; + border-radius: 6px; + width: 100%; + overflow: hidden; + color: var(--text-color); + white-space: nowrap; + + &:hover { + background-color: var(--hover-background); + } + } + } + } + } + +} diff --git a/components/template/Configuration.vue b/components/template/Configuration.vue deleted file mode 100644 index 7647134ea..000000000 --- a/components/template/Configuration.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/components/template/Features/Animation/Inline.vue b/components/template/Features/Animation/Inline.vue deleted file mode 100644 index 467393c90..000000000 --- a/components/template/Features/Animation/Inline.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - diff --git a/components/template/Features/Animation/index.vue b/components/template/Features/Animation/index.vue deleted file mode 100644 index 64df0968c..000000000 --- a/components/template/Features/Animation/index.vue +++ /dev/null @@ -1,141 +0,0 @@ - - - diff --git a/components/template/Features/index.vue b/components/template/Features/index.vue deleted file mode 100644 index 5c9dd5b1d..000000000 --- a/components/template/Features/index.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - diff --git a/components/template/Hero/Light.vue b/components/template/Hero/Light.vue deleted file mode 100644 index c483ef5f9..000000000 --- a/components/template/Hero/Light.vue +++ /dev/null @@ -1,58 +0,0 @@ - diff --git a/components/template/Hero/Rectangle.vue b/components/template/Hero/Rectangle.vue deleted file mode 100644 index 9284dbb30..000000000 --- a/components/template/Hero/Rectangle.vue +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/components/template/Hero/index.vue b/components/template/Hero/index.vue deleted file mode 100644 index 595ee5336..000000000 --- a/components/template/Hero/index.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - diff --git a/components/template/License.vue b/components/template/License.vue deleted file mode 100644 index 493e8381b..000000000 --- a/components/template/License.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - diff --git a/components/template/Related.vue b/components/template/Related.vue deleted file mode 100644 index 75ff8d1c0..000000000 --- a/components/template/Related.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/components/template/Separator.vue b/components/template/Separator.vue deleted file mode 100644 index 735f0c262..000000000 --- a/components/template/Separator.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/components/template/Youtube.vue b/components/template/Youtube.vue deleted file mode 100644 index 9ab7da4c7..000000000 --- a/components/template/Youtube.vue +++ /dev/null @@ -1,66 +0,0 @@ -