Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions assets/globe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/usdt_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/web3_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions assets/webdom_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
146 changes: 145 additions & 1 deletion css/dns.css
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,129 @@ p {
opacity: 1;
}

.marketplace-modal__backdrop {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
background: rgba(5, 19, 35, 0.4);
z-index: 102;
}

html[data-theme='dark'] .marketplace-modal__backdrop {
background: rgba(5, 19, 35, 0.6);
}

.marketplace-modal {
position: relative;
width: min(440px, calc(100% - 32px));
padding: 24px;
border-radius: 20px;
background: var(--background-content);
box-shadow: 0px 12px 36px rgba(5, 19, 35, 0.12);
border: 1px solid var(--card-border-default);
}

.marketplace-modal__head {
margin-bottom: 16px;
}

.marketplace-modal__title {
font-size: 20px;
font-weight: 700;
color: var(--text-primary);
}

.marketplace-modal__subtitle {
display: none;
}

.marketplace-modal__buttons {
display: flex;
flex-direction: column;
gap: 12px;
}

.marketplace-modal__icon {
width: 20px;
height: 20px;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
flex-shrink: 0;
}

.marketplace-modal__icon--gg {
background-image: url("../assets/gg_logo_white.svg");
}

html[data-theme='light'] .marketplace-modal__icon--gg {
background-image: url("../assets/gg_logo_white.svg");
}

.marketplace-modal__icon--webdom {
background-image: url("../assets/webdom_logo.svg");
}

.marketplace-modal__label {
font-weight: 600;
color: var(--text-primary);
}

.marketplace-modal__btn.gg__btn__primary .marketplace-modal__label {
color: #fff;
}

.marketplace-modal__btn.gg__btn__primary {
color: #fff;
}

.marketplace-modal__close {
position: absolute;
top: 12px;
right: 12px;
width: 32px;
height: 32px;
border-radius: 50%;
border: 1px solid var(--card-border-default);
background: var(--background-content);
display: grid;
place-items: center;
cursor: pointer;
}

.marketplace-modal__close span {
position: relative;
display: block;
width: 12px;
height: 12px;
}

.marketplace-modal__close span:before,
.marketplace-modal__close span:after {
content: '';
position: absolute;
top: 50%;
left: 0;
width: 100%;
height: 2px;
background: var(--text-primary);
transform-origin: center;
}

.marketplace-modal__close span:before {
transform: translateY(-50%) rotate(45deg);
}

.marketplace-modal__close span:after {
transform: translateY(-50%) rotate(-45deg);
}

.marketplace-modal__backdrop.show {
display: flex;
}

.bid__modal--active {
opacity: 1;
}
Expand Down Expand Up @@ -2283,6 +2406,27 @@ p {
.footer .info-links {
display: flex;
gap: 24px;
flex-wrap: wrap;
}

.footer-lang {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
border-radius: 12px;
border: 1px solid var(--card-border-default);
background: none;
color: var(--text-primary);
cursor: pointer;
}

.footer-lang__icon {
width: 18px;
height: 18px;
background-color: var(--text-primary);
-webkit-mask: url("/assets/globe.svg") center/contain no-repeat;
mask: url("/assets/globe.svg") center/contain no-repeat;
}

.footer .social-link {
Expand Down Expand Up @@ -3054,4 +3198,4 @@ html[data-theme='light'] .gg__btn__tertiary .gg__btn__icon {
html[data-theme='dark'] .gg__btn__tertiary .gg__btn__icon {
background-image: url("../assets/gg_logo_blue_dark.svg");
}
/* GG INTEGRATION */
/* GG INTEGRATION */
65 changes: 46 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
stroke-linejoin="round" />
</svg>
<input id="navInputElement" enterkeyhint="search" type="text"
data-locale="start_input_placeholder" placeholder="[data-locale]" class="suggestions__input" />
data-placeholder-locale="start_input_placeholder" placeholder="[data-locale]" class="suggestions__input" />
</div>

<div class="nav__controls">
Expand Down Expand Up @@ -160,7 +160,7 @@ <h1 data-locale="open_auction">Get .ton domains</h1>
stroke-linejoin="round" />
</svg>
<input id="startInputElement" enterkeyhint="search" class="start-input suggestions__input"
type="text" placeholder="Enter a domain..." />
type="text" data-placeholder-locale="start_input_placeholder" placeholder="Enter a domain..." />
<svg class="icon reset__input--icon" width="24" height="24" viewBox="0 0 24 24" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M6.00012 18L18.0001 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
Expand Down Expand Up @@ -835,26 +835,53 @@ <h1 data-locale="open_auction">Get .ton domains</h1>
Back
</button>
</div>
</div>
</div>
</div>

<div class="careete__helper"></div>

<footer class="footer">
<div class="separator"></div>
<div class="copyrights">
<div class="info-links">
<a class="support-link" href="https://t.me/ton_help_bot" target="_blank"
rel="noreferrer noopener">
<span class="support-link__icon"></span>
<span data-locale="footer_support">Support</span>
</a>
<a class="about-link" href="/about.html" target="_blank" rel="noreferrer noopener">
<span class="about-link__icon"></span>
<span data-locale="about">About</span>
</a>
<!-- Marketplace chooser modal -->
<div id="marketplaceModalBackdrop" class="marketplace-modal__backdrop gg__hidden animate">
<div class="marketplace-modal">
<button id="marketplaceModalClose" class="marketplace-modal__close" aria-label="Close">
<span></span>
</button>
<div class="marketplace-modal__head">
<div id="marketplaceModalTitle" class="marketplace-modal__title">Choose a marketplace</div>
</div>
<div class="marketplace-modal__buttons">
<a id="marketplaceBtnGetgems" class="btn gg__btn gg__btn__primary marketplace-modal__btn" target="_blank" rel="noreferrer">
<span class="marketplace-modal__icon marketplace-modal__icon--gg"></span>
<span class="marketplace-modal__label">Getgems</span>
</a>
<a id="marketplaceBtnWebdom" class="btn gg__btn gg__btn__outline marketplace-modal__btn" target="_blank" rel="noreferrer">
<span class="marketplace-modal__icon marketplace-modal__icon--webdom"></span>
<span class="marketplace-modal__label">Webdom</span>
</a>
</div>
</div>
<div class="social-links">
</div>
<!-- Marketplace chooser modal -->

<div class="careete__helper"></div>

<footer class="footer">
<div class="separator"></div>
<div class="copyrights">
<div class="info-links">
<a class="support-link" href="https://t.me/ton_help_bot" target="_blank"
rel="noreferrer noopener">
<span class="support-link__icon"></span>
<span data-locale="footer_support">Support</span>
</a>
<a class="about-link" href="/about.html" target="_blank" rel="noreferrer noopener">
<span class="about-link__icon"></span>
<span data-locale="about">About</span>
</a>
<button id="footerLocaleToggle" class="footer-lang">
<span class="footer-lang__icon"></span>
<span id="footerLocaleLabel">EN</span>
</button>
</div>
<div class="social-links">
<a class="social-link" href="https://www.linkedin.com/company/ton-blockchain/" target="_blank"
rel="noreferrer noopener">
<svg width="18" height="18" viewBox="0 0 18 18" fill="none"
Expand Down
3 changes: 3 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ TONAPI_WRAPPER_API = 'https://dp2xyxeojwjddkgygogm5jbjbe0crwaj.lambda-url.eu-cen
GG_ENDPOINT = 'https://api.getgems.io/ton-dns'
// GG INTEGRATION

// webdom integration
WEBDOM_ENDPOINT = 'https://webdom.market/api/dns-info/'

MS_IN_ONE_LEAP_YEAR = 31622400000
SEC_IN_ONE_MONTH = 2592000
Loading