Skip to content

Commit

Permalink
fix: landing page style (#46)
Browse files Browse the repository at this point in the history
* fix: 🐛 positioning for the lower menu options

* chore: 🔨 set default color theme

* fix: 🐛 modify landing page style

* style: 🎨 fix background

* style: 🎨 color theme for landing page
  • Loading branch information
Aydawka authored May 23, 2024
1 parent ed6ae71 commit bc9333f
Show file tree
Hide file tree
Showing 8 changed files with 257 additions and 148 deletions.
2 changes: 1 addition & 1 deletion mermaid/svg/dataset-metadata-er.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion mermaid/svg/er.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion mermaid/svg/study-metadata-er.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import { theme } from "@/stores/settings";
const themeOverrides: GlobalThemeOverrides = {
Button: {},
common: {
primaryColor: "#0284c7",
primaryColorHover: "#0ea5e9",
primaryColorPressed: "#0369a1",
primaryColorSuppl: "#0ea5e9",
},
Form: {
feedbackPadding: "4px 0 8px 2px",
labelFontWeight: "600",
Expand All @@ -29,7 +35,7 @@ const themeOverrides: GlobalThemeOverrides = {

<DatasetSidebar />

<n-layout-content class="h-[calc(100vh-56px)] py-4 pl-6">
<n-layout-content class="view h-[calc(100vh-56px)] py-4 pl-6">
<router-view v-slot="{ Component }">
<transition name="fade" appear mode="out-in">
<component :is="Component" />
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/base.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
*,
*::before,
*::after {
position: relative;
/*position: relative;*/

box-sizing: border-box;

Expand Down
59 changes: 58 additions & 1 deletion src/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import "./base.css";

@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down Expand Up @@ -154,4 +153,62 @@ Transition styles for <transition />
.lightfadeleft-leave-to {
opacity: 0;
transform: translateY(-20px);
}

/*.n-menu-item{*/
/* position: relative;*/
/*}*/

/*.n-menu-item *, .n-menu-item *::before,.n-menu-item *::after {*/
/* position: static;*/

/*}*/

/*.share-data{*/
/* background-image: url("../../assets/faq-bg.svg");*/
/* background-size: auto; !* Adjust as needed *!*/
/* background-repeat: repeat; !* Adjust as needed *!*/

/*}*/

.main-bg::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}

.n-collapse .n-collapse-item:not(:first-child) {
border-top: 1px solid #0284c7;}

.view:has(main.landing){
padding: 0;
margin: 0;
}


.share-data {
position: relative;
overflow: hidden;
z-index: 1;
}

.share-data::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("../../assets/faq-bg.svg");
background-repeat: repeat; /* Adjust as needed */
background-position: center;
mask-image: linear-gradient( white 15%, white 85%, transparent);
z-index: -1;
}

.faq {
background: linear-gradient(0deg, rgba(255, 255, 255, 1) 3%, rgba(241, 245, 249, 1) 30%, rgba(241, 245, 249, 1) 88%, rgba(255, 255, 255, 1) 100%);
}
1 change: 1 addition & 0 deletions src/assets/faq-bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bc9333f

Please sign in to comment.