Design changes

This commit is contained in:
sairaj mote 2023-06-27 20:50:47 +05:30
parent 7d1e60cbfd
commit d84bfaf815
4 changed files with 42 additions and 24 deletions

View File

@ -17,7 +17,7 @@ body {
body { body {
--accent-color: #3d5afe; --accent-color: #3d5afe;
--secondary-color: #ffac2e; --secondary-color: rgb(26, 45, 63);
--text-color: 36, 36, 36; --text-color: 36, 36, 36;
--foreground-color: 252, 253, 255; --foreground-color: 252, 253, 255;
--background-color: 241, 243, 248; --background-color: 241, 243, 248;
@ -26,14 +26,15 @@ body {
--yellow: rgb(220, 165, 0); --yellow: rgb(220, 165, 0);
--inline-padding: max(1rem, 6vw); --inline-padding: max(1rem, 6vw);
background-color: rgba(var(--background-color), 1); background-color: rgba(var(--background-color), 1);
color: rgba(var(--text-color), 1);
} }
body[data-theme=dark] { body[data-theme=dark] {
--accent-color: #6d83ff; --accent-color: #6d83ff;
--secondary-color: #d60739; --secondary-color: #d60739;
--text-color: 220, 220, 220; --text-color: 220, 220, 220;
--foreground-color: 27, 28, 29; --foreground-color: 33, 54, 75;
--background-color: 21, 22, 22; --background-color: 17, 30, 43;
--danger-color: rgb(255, 106, 106); --danger-color: rgb(255, 106, 106);
--green: #00e676; --green: #00e676;
--yellow: rgb(255, 213, 5); --yellow: rgb(255, 213, 5);
@ -796,27 +797,32 @@ section:nth-of-type(2) {
#team_members { #team_members {
display: grid; display: grid;
gap: 1rem; gap: 3rem 1rem;
margin-top: 3rem; margin-top: 3rem;
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
} }
.team-member { .team-member {
display: grid; display: grid;
grid-template-columns: min(10rem, 50vw) 1fr;
background-color: rgba(var(--foreground-color), 1);
border-radius: 0.5rem; border-radius: 0.5rem;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
text-align: center;
justify-content: center;
justify-items: center;
} }
.team-member img { .team-member img {
-o-object-fit: cover; -o-object-fit: cover;
object-fit: cover; object-fit: cover;
aspect-ratio: 3/3.5; aspect-ratio: 1/1;
-o-object-position: top;
object-position: top;
width: 100%; width: 100%;
height: auto;
border-radius: 15rem;
} }
.team-member .flex { .team-member .flex {
padding: 1rem; padding: 1rem;
align-items: flex-start;
gap: 0.5rem; gap: 0.5rem;
} }
.team-member__name { .team-member__name {
@ -828,10 +834,12 @@ section:nth-of-type(2) {
line-height: normal; line-height: normal;
font-weight: 500; font-weight: 500;
font-size: 0.9rem; font-size: 0.9rem;
margin-bottom: 1.5rem;
} }
.team-member__button { .team-member__button {
margin-top: auto; margin-top: auto;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
align-self: center;
} }
#partners { #partners {
@ -1084,7 +1092,8 @@ section:nth-of-type(2) {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
#team_members { #team_members {
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 2rem;
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
} }
.hide-on-large { .hide-on-large {
display: none !important; display: none !important;

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -15,7 +15,7 @@ body {
} }
body { body {
--accent-color: #3d5afe; --accent-color: #3d5afe;
--secondary-color: #ffac2e; --secondary-color: rgb(26, 45, 63);
--text-color: 36, 36, 36; --text-color: 36, 36, 36;
--foreground-color: 252, 253, 255; --foreground-color: 252, 253, 255;
--background-color: 241, 243, 248; --background-color: 241, 243, 248;
@ -24,14 +24,15 @@ body {
--yellow: rgb(220, 165, 0); --yellow: rgb(220, 165, 0);
--inline-padding: max(1rem, 6vw); --inline-padding: max(1rem, 6vw);
background-color: rgba(var(--background-color), 1); background-color: rgba(var(--background-color), 1);
color: rgba(var(--text-color), 1);
} }
body[data-theme="dark"] { body[data-theme="dark"] {
--accent-color: #6d83ff; --accent-color: #6d83ff;
--secondary-color: #d60739; --secondary-color: #d60739;
--text-color: 220, 220, 220; --text-color: 220, 220, 220;
--foreground-color: 27, 28, 29; --foreground-color: 33, 54, 75;
--background-color: 21, 22, 22; --background-color: 17, 30, 43;
--danger-color: rgb(255, 106, 106); --danger-color: rgb(255, 106, 106);
--green: #00e676; --green: #00e676;
--yellow: rgb(255, 213, 5); --yellow: rgb(255, 213, 5);
@ -755,24 +756,29 @@ section {
#team_members { #team_members {
display: grid; display: grid;
gap: 1rem; gap: 3rem 1rem;
margin-top: 3rem; margin-top: 3rem;
grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
} }
.team-member { .team-member {
display: grid; display: grid;
grid-template-columns: min(10rem, 50vw) 1fr; // background-color: rgba(var(--foreground-color), 1);
background-color: rgba(var(--foreground-color), 1);
border-radius: 0.5rem; border-radius: 0.5rem;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
text-align: center;
justify-content: center;
justify-items: center;
img { img {
object-fit: cover; object-fit: cover;
aspect-ratio: 3/3.5; aspect-ratio: 1/1;
object-position: top;
width: 100%; width: 100%;
height: auto;
border-radius: 15rem;
} }
.flex { .flex {
padding: 1rem; padding: 1rem;
align-items: flex-start;
gap: 0.5rem; gap: 0.5rem;
} }
&__name { &__name {
@ -784,10 +790,12 @@ section {
line-height: normal; line-height: normal;
font-weight: 500; font-weight: 500;
font-size: 0.9rem; font-size: 0.9rem;
margin-bottom: 1.5rem;
} }
&__button { &__button {
margin-top: auto; margin-top: auto;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
align-self: center;
} }
} }
@ -1017,7 +1025,8 @@ section {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
#team_members { #team_members {
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 2rem;
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
} }
.hide-on-large { .hide-on-large {
display: none !important; display: none !important;

View File

@ -13,7 +13,7 @@
<script src="https://unpkg.com/uhtml@3.0.1/es.js"></script> <script src="https://unpkg.com/uhtml@3.0.1/es.js"></script>
</head> </head>
<body class="hidden"> <body class="hidden" data-theme="">
<header id="main_header"> <header id="main_header">
<a href=""> <a href="">
<h4>Project B</h4> <h4>Project B</h4>
@ -28,11 +28,11 @@
</header> </header>
<article id="home" class="page"> <article id="home" class="page">
<section id="above_fold" class="gap-4"> <section id="above_fold" class="gap-4">
<h2 class="reveal"> <h1 class="reveal">
<span class="tagline"> <span class="tagline">
All about execution of tokenization projects All about execution of tokenization projects
</span> </span>
</h2> </h1>
<!-- <img id="hero_illustration" src="assets/svg/cityscape.svg" alt=""> --> <!-- <img id="hero_illustration" src="assets/svg/cityscape.svg" alt=""> -->
<div class="grid" style="gap: 8rem;"> <div class="grid" style="gap: 8rem;">
<div class="grid gap-2 above_fold__section move-in"> <div class="grid gap-2 above_fold__section move-in">
@ -826,11 +826,11 @@
</section> </section>
</article> </article>
<article id="economic_framework" class="page hidden"> <article id="economic_framework" class="page hidden">
<h2 class="tagline reveal"> <h1 class="tagline reveal">
<span> <span>
Tokenization = Blockchain Technology + Economic Framework Tokenization = Blockchain Technology + Economic Framework
</span> </span>
</h2> </h1>
<div class="grid gap-2"> <div class="grid gap-2">
<h3 class="reveal"> <h3 class="reveal">
<span> <span>