Skip to content

Commit

Permalink
🎨 Rework SharedCss component
Browse files Browse the repository at this point in the history
  • Loading branch information
KimlikDAO-bot committed Feb 2, 2025
1 parent 9376137 commit f427489
Show file tree
Hide file tree
Showing 25 changed files with 74 additions and 72 deletions.
2 changes: 1 addition & 1 deletion al/sayfa.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Favicon from "/components/icon.svg";
import KPass from "../components/kpass/KPass";
import Lato400 from "/components/lato/l400.ttf";
import Lato700 from "/components/lato/l700.ttf";
import OrtakCss from "/components/ortakcss/birim";
import OrtakCss from "/components/sharedCss/SharedCss";
import Phone from "../components/phone/Phone";
import { ChainId } from "/lib/crosschain/chains";
import dom from "/lib/util/dom";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import BlogCss from "../blog.css";
import RemainingBar from "../RemainingBar";
import Banner from "./banner.png";
import { ChainInfos } from "/components/chains/chains";
import UBInuResmi from "/components/tokens/UBINU.png";
import UBInuImage from "/components/tokens/UBINU.png";
import { ChainId } from "/lib/crosschain/chains";
import { ERC20 } from "/lib/ethereum/ERC20";
import { css } from "/lib/kastro/stylesheet";
Expand Down Expand Up @@ -41,7 +41,7 @@ const TOTAL = 50_000_000_000;
* @param {{ href: string, piggyback: string }=} props
* @return {Promise<string>}
*/
const EliptikEÄŸriler = ({ href, piggyback }) => {
const EllipticCurves = ({ href, piggyback }) => {
dom.schedule(
() => new ERC20("https://" + ChainInfos[ChainId.xa86a].rpcUrl, USDC_AVALANCHE)
.allowance(DEV_FUND, ODUL)
Expand All @@ -57,8 +57,8 @@ const EliptikEÄŸriler = ({ href, piggyback }) => {
<div>
<Banner class={BlogCss.PreviewBanner} width="100%" quality={60}
piggyback={piggyback}
bundleWidth={36 * 13}
bundleHeight={19 * 13} />
bundleWidth={36 * 15}
bundleHeight={19 * 15} />
<h4>{{
en: "Elliptic curves and their applications in crypto",
tr: "Eliptik eğriler ve kriptoda kullanımı"
Expand All @@ -79,11 +79,11 @@ const EliptikEÄŸriler = ({ href, piggyback }) => {
en: "Read", tr: "Oku"
}}</button>
<RemainingBar id={Css.UBInu} className={Css.UBInu} maximum={TOTAL} ticker="UBINU">
<UBInuResmi width={22} height={22} class={Css.UBInu} piggyback={piggyback} />
<UBInuImage width={22} height={22} class={Css.UBInu} piggyback={piggyback} />
</RemainingBar>
</div>
</a>
);
}

export default EliptikEÄŸriler;
export default EllipticCurves;
4 changes: 2 additions & 2 deletions components/footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Css from "./Footer.css";
import Subscribe from "../subscribe/Subscribe";
import SharedCss from "/components/ortakcss/birim";
import SharedCss from "/components/sharedCss/SharedCss";
import Subscribe from "/components/subscribe/Subscribe";
import { ExternalPage } from "/crate";
import { i18n } from "/lib/util/i18n";

Expand Down
2 changes: 1 addition & 1 deletion components/kpass/KPass.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import FamilyInfoCard from "./FamilyInfoCard";
import Css from "./KPass.css";
import PersonInfoCard from "./PersonInfoCard";
import RegistryInfoCard from "./RegistryInfoCard";
import SharedCss from "/components/ortakcss/birim";
import SharedCss from "/components/sharedCss/SharedCss";
import "/lib/did/section.d";
import dom from "/lib/util/dom";

Expand Down
2 changes: 1 addition & 1 deletion components/phone/Phone.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Phone {
#Root {
border-radius: 40px;
border: 5px solid #333;
height: 520px;
Expand Down
2 changes: 1 addition & 1 deletion components/phone/Phone.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const JointCss = css`
* @return {Promise<string>}
*/
const Phone = ({ withKPass = true, noshow }) => (
<div id={Css.Phone} noshow={noshow}>
<div id={Css.Root} noshow={noshow}>
<Css />
<JointCss />
<AnaEkran>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,44 +68,46 @@ hr {
*/
.sel {}

.Gizle {
opacity: 0;
pointer-events: none;
}
/**
* @export {Disabled}
* @preserve
*/
.dis {}

.Düğme.SolBoşluk {
/** left padded ;) */
.Button.LeftPadded {
margin-right: 1ex;
}

.Düğme.Eylem {
.Button.Action {
background: #5256c9;
border-color: #5256c9;
color: white;
opacity: 0.9;
transition: opacity 0.3s;
}

.Düğme.Eylem:hover {
.Button.Action:hover {
opacity: 1;
}

.Düğme.Bilgi {
.Button.Info {
background: none;
border: 1px solid #5256c9;
color: #5256c9;
}

.Düğme.Mavi {
.Button.Blue {
color: #3182CE;
border: 1px solid #3182CE;
background: none;
}

.Düğme.Kapalı {
.Button.dis {
cursor: default;
}

.Düğme {
.Button {
background: none;
border-radius: 10px;
border: 1px solid #D1D5DB;
Expand All @@ -121,27 +123,27 @@ hr {
user-select: none;
}

.Düğme.Tehlike {
.Button.Danger {
color: #fff;
background-color: #d9534f;
border-color: #d43f3a;
opacity: 0.9;
}

.Düğme.Tehlike:hover {
.Button.Danger:hover {
opacity: 1;
}

/**
* Tema mavisi
*/
.Mavi {
.Blue {
color: #3182CE
}

/**
* Tema moru
*/
.Mor {
.Purple {
color: #5256c9;
}
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import Css from "./birim.css";
import Css from "./SharedCss.css";
import Header from "/components/header/Header.css";
import KPass from "/components/kpass/KPass.css";
import LangPicker from "/components/langPicker/LangPicker.css";
import Wallet from "/components/wallet/Wallet.css";

const OrtakCss = () => (<>
const SharedCss = () => (<>
<Css shared />
<Header shared />
<Wallet shared />
<LangPicker shared />
<KPass shared />
</>);

Object.assign(OrtakCss, Css);
Object.assign(SharedCss, Css);
/** @enum {string} */
OrtakCss.Header = Header;
SharedCss.Header = Header;
/** @enum {string} */
OrtakCss.Wallet = Wallet;
SharedCss.Wallet = Wallet;
/** @enum {string} */
OrtakCss.LangPicker = LangPicker;
SharedCss.LangPicker = LangPicker;
/** @enum {string} */
OrtakCss.KPass = KPass;
SharedCss.KPass = KPass;

export default OrtakCss;
export default SharedCss;
4 changes: 2 additions & 2 deletions components/subscribe/Subscribe.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Css from "./Subscribe.css";
import SharedCss from "/components/ortakcss/birim";
import SharedCss from "/components/sharedCss/SharedCss";
import dom from "/lib/util/dom";

/**
Expand Down Expand Up @@ -58,7 +58,7 @@ const Subscribe = ({ id }) => {
placeholder={{ en: "Your email address", tr: "E-posta adresiniz" }}
/>
<button
class={[SharedCss.Düğme, SharedCss.Eylem, Css.SubscribeButton]}
class={[SharedCss.Button, SharedCss.Action, Css.SubscribeButton]}
type="submit"
>{{
en: "Subscribe", tr: "Kaydol"
Expand Down
2 changes: 1 addition & 1 deletion components/wallet/Wallet.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChainInfos, chainImage } from "../chains/chains";
import OrtakCss from "../ortakcss/birim.css";
import OrtakCss from "../sharedCss/SharedCss.css";
import {
Bağlantı,
BağlantıAdı,
Expand Down
2 changes: 1 addition & 1 deletion iptal/sayfa.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Başlık from "/components/başlık/birim.jsx";
import Favicon from "/components/icon.svg";
import Lato400 from "/components/lato/l400.ttf";
import Lato700 from "/components/lato/l700.ttf";
import OrtakCss from "/components/ortakcss/birim.jsx";
import OrtakCss from "/components/sharedCss/SharedCss.jsx";
import { ChainId } from "/lib/crosschain/chains";
import dom from "/lib/util/dom";

Expand Down
2 changes: 1 addition & 1 deletion kdao/sayfa.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Başlık from "/components/başlık/birim";
import Favicon from "/components/icon.svg";
import Lato400 from "/components/lato/l400.ttf";
import Lato700 from "/components/lato/l700.ttf";
import OrtakCss from "/components/ortakcss/birim";
import OrtakCss from "/components/sharedCss/SharedCss";
import { ChainId } from "/lib/crosschain/chains";
import { I18nString, LangCode } from "/lib/util/i18n";

Expand Down
2 changes: 1 addition & 1 deletion kpassim/sayfa.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import KPass from "../components/kpass/KPass.jsx";
import KPassContract from "/lib/ethereum/KPassLite";
import Lato400 from "/components/lato/l400.ttf";
import Lato700 from "/components/lato/l700.ttf";
import OrtakCss from "/components/ortakcss/birim";
import OrtakCss from "/components/sharedCss/SharedCss";
import { Page } from "/crate";
import { ChainId } from "/lib/crosschain/chains";
import dom from "/lib/util/dom";
Expand Down
12 changes: 6 additions & 6 deletions landing/Learn2Earn.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import LandingCss from "./page.css";
import ECDSA from "/components/blog/ecdsa/ECDSA";
import EliptikEÄŸriler from "/components/blog/eliptik-egriler/birim";
import SharedCss from "/components/ortakcss/birim.css";
import EllipticCurves from "/components/blog/ellipticCurves/EllipticCurves";
import SharedCss from "/components/sharedCss/SharedCss.css";
import { ExternalPage } from "/crate";
import { css } from "/lib/kastro/stylesheet";

Expand All @@ -13,10 +13,10 @@ const Css = css`
`;

const Learn2Earn = () => (
<div class={LandingCss.Üçlü}>
<div class={LandingCss.ThreeColumn}>
<Css />
<div id={Css.Content}>
<h2 class={SharedCss.Mavi}>{{
<h2 class={SharedCss.Blue}>{{
en: "Learn & Earn with your KPass.",
tr: "KPass’inle öğren ve kazan."
}}</h2>
Expand All @@ -30,13 +30,13 @@ const Learn2Earn = () => (
topla. Çok yakında!</>
}}</span>
<br />
<a href={ExternalPage.Blog} class={[SharedCss.Düğme, SharedCss.Bilgi, LandingCss.TopSpaced]}>{{
<a href={ExternalPage.Blog} class={[SharedCss.Button, SharedCss.Info, LandingCss.TopSpaced]}>{{
en: "Learn & earn (Soon!)",
tr: "Öğren ve kazan (Yakında!)"
}}</a>
</div>
<ECDSA href="" />
<EliptikEÄŸriler href="" />
<EllipticCurves href="" />
</div>
);

Expand Down
8 changes: 4 additions & 4 deletions landing/Reports.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import LandingCss from "./page.css";
import Feb25 from "/components/blog/2025.02/birim";
import SharedCss from "/components/ortakcss/birim.css";
import SharedCss from "/components/sharedCss/SharedCss.css";

const Reports = () => (
<div class={LandingCss.ThreeColumn}>
<div></div>
<Feb25 href={""} loading="lazy" />
<div class={LandingCss.SağaYaslı}>
<h2 class={SharedCss.Mor}>{{
<div class={LandingCss.RightAligned}>
<h2 class={SharedCss.Purple}>{{
en: "KimlikDAO progress reports.",
tr: "KimlikDAO ilerleme raporları."
}}</h2>
Expand All @@ -21,7 +21,7 @@ const Reports = () => (
katıldığımız etkinliklerden, kurduğumuz yeni ortaklıklara tüm
gelişmelerini aylık ilerleme raporlarından okuyun.</>
}}</span><br />
<a href="//blog.kimlikdao.org" class={[SharedCss.Düğme, SharedCss.Mavi, LandingCss.TopSpaced]}>{{
<a href="//blog.kimlikdao.org" class={[SharedCss.Button, SharedCss.Blue, LandingCss.TopSpaced]}>{{
en: "All progress reports",
tr: "Tüm ilerleme raporları"
}}</a>
Expand Down
4 changes: 2 additions & 2 deletions landing/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Css from "./Header.css";
import ArrowImage from "/components/arrow.svg";
import LangPicker from "/components/langPicker/LangPicker";
import Logo from "/components/logo.svg";
import SharedCss from "/components/ortakcss/birim";
import SharedCss from "/components/sharedCss/SharedCss";
import { ExternalPage, Page } from "/crate";
import { ChainId } from "/lib/crosschain/chains";
import { I18nString } from "/lib/util/i18n";
Expand Down Expand Up @@ -38,7 +38,7 @@ const Header = ({ Chains, ChainNotes, DefaultChain }) => {
<a class={SharedCss.Header.Link} href={ExternalPage.Discord} target="_blank"
rel="noreferrer">Discord</a>
<LangPicker />
<a id={Css.ActionButton} href={Page.Mint} class={[SharedCss.Düğme, SharedCss.Eylem]}>{{
<a id={Css.ActionButton} href={Page.Mint} class={[SharedCss.Button, SharedCss.Action]}>{{
en: "Mint KPass", tr: "Hemen KPass al"
}}<ArrowImage inline /></a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion landing/hero/Gallery.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Css from "./Gallery.css";
import SharedCss from "/components/ortakcss/birim.css";
import SharedCss from "/components/sharedCss/SharedCss.css";
import Phone from "/components/phone/Phone";
import dom from "/lib/util/dom";

Expand Down
8 changes: 4 additions & 4 deletions landing/hero/Hero.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Gallery from "./Gallery";
import Css from "./Hero.css";
import SharedCss from "/components/ortakcss/birim.css";
import SharedCss from "/components/sharedCss/SharedCss.css";
import Phone from "/components/phone/Phone";
import { Page } from "/crate";
import { css } from "/lib/kastro/stylesheet";
Expand All @@ -9,7 +9,7 @@ import { css } from "/lib/kastro/stylesheet";
const JointCss = css`
@media (max-width: 1000px) {
#Hero { border-radius: 0; }
#${Phone.Css.Phone} { display: none; }
#${Phone.Css.Root} { display: none; }
}
`;

Expand All @@ -25,9 +25,9 @@ const Hero = () => (
}}</h1>
<Gallery />
<div id={Css.Buttons}>
<a href={Page.Mint} id={Css.MintButton} class={[SharedCss.Düğme, SharedCss.Eylem]}>{{
<a href={Page.Mint} id={Css.MintButton} class={[SharedCss.Button, SharedCss.Action]}>{{
en: "Mint your KPass | $1",
tr: "Hemen KPass al | ₺29",
en: "Mint your KPass | $1"
}}</a>
</div>
</div>
Expand Down
Loading

0 comments on commit f427489

Please sign in to comment.