Skip to content

Commit

Permalink
simple homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Oct 27, 2024
1 parent b064ea9 commit 57214d6
Show file tree
Hide file tree
Showing 2 changed files with 374 additions and 0 deletions.
97 changes: 97 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>CJIT - C, Just in Time!</title>
<meta name="description"
content="CJIT is a lightweight, free and open source C interpreter that lets you run C code instantly, without needing to build it first. Made by Dyne.org"
\>
<meta name="keywords"
content="C, interpreter, jit, programming, dyne.org" />
<meta charset="utf-8" />

<!-- Open Graph for social networks -->
<meta property="og:title" content="CJIT - C, Just in Time!" />
<meta property="og:description"
content="CJIT is a lightweight, free and open source C interpreter that lets you run C code instantly, without needing to build it first. Made by Dyne.org" />
<meta property="og:type" content="" />
<meta property="og:image" content="https://raw.githubusercontent.com/dyne/cjit/refs/heads/main/docs/cjit-mascotte-card.png" />
<meta property="og:url" content="https://dyne.org/cjit" />
<meta property="fb:admins" content="641586196" />
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@DyneOrg">
<meta name="twitter:title" content="CJIT - C, Just in Time!">
<meta name="twitter:description"
content="CJIT is a lightweight, free and open source C interpreter that lets you run C code instantly, without needing to build it first. Made by Dyne.org" />
<meta name="twitter:image" content="https://raw.githubusercontent.com/dyne/cjit/refs/heads/main/docs/cjit-mascotte-card.png">
<link rel="twitter" type="text/html" href="http://twitter.com/DyneOrg">

<link rel="stylesheet" href="style.css">
<script async type="module" src="https://cdn.jsdelivr.net/npm/@dyne/components@latest/dist/dyne-components/dyne-components.esm.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@dyne/components@latest/dist/dyne-components/dyne-components.css">
</head>
<body>
<div class="homepage">
<div class="container">
<div class="hero">
<h1 class="hero-heading">
<span>Scripting in C?</span>
<span class="heading-gradient">CJIT!</span>
</h1>
<p class="hero-subheading">
C, Just in Time!
</p>
<div class="hero-actions">
<a href="https://github.com/dyne/cjit/releases" class="hero-action primary">
🤏🏼Single 2MB executable! 💾 Download for Win64, OSX and Linux
</a>
</div>
</div>
</div>
<div style="background: var(--vp-c-bg-alt)">
<div class="container">
<div class="features">
<div class="feature">
<span class="feature-title">🧩 Effortless smart contracts</span>
<span class="feature-subtitle">Create Complex Contracts Without Writing Code</span>
</div>
<div class="feature">
<span class="feature-title">⏱️ Instant Deployment</span>
<span class="feature-subtitle">Deploy Contracts in Seconds</span>
</div>
<div class="feature">
<span class="feature-title">🤖 Seamless Blockchain Integration</span>
<span class="feature-subtitle">Integrate Blockchain Features Effortlessly</span>
</div>
<div class="feature">
<span class="feature-title">🚀 Rapid Prototyping</span>
<span class="feature-subtitle">Prototype Blockchain Applications Rapidly</span>
</div>
</div>
<p>&nbsp;</p>
<p style="padding: 14px 18px">

CJIT is a lightweight C interpreter that lets you run C
code instantly, without needing to build it first. Just
use the executable interpreter—no extra tools, libraries,
or headers required.

Inspired by Terry Davis (TempleOS) and Fabrice Bellard
(FFmpeg, TinyCC), CJIT brings the power of Just-In-Time
(JIT) compilation to C programming.

</p>
</div>
</div>
<div class="container">
<div style="display: flex; justify-content: center">
<div class="start-link">
<a href="/slangroom/statements/">Download CJIT</a>
</div>
</div>
<p class="footer-text"> crafted with ❤️‍🔥
by <a href="https://dyne.org"> dyne.org </a> hackers 👽</p>
</div>
</div>
</body>
277 changes: 277 additions & 0 deletions docs/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
.homepage .container {
max-width: 1280px;
margin: auto;
padding: 20px 14px;
}

.homepage .hero {
align-items: center;
display: flex;
flex-direction: column;
margin-top: 20px;
}

.homepage .hero-heading {
font-size: 90px;
font-weight: 800;
margin: 0;
padding: 0;
line-height: 1.15;
text-align: center;
}

.homepage .hero-heading span {
display: block
}

@keyframes gradient {
0% {
background-size: 50% 150%
}

100% {
background-size: 100% 100%
}
}

.homepage .heading-gradient {
background: linear-gradient(120deg, #ef5350, #f48fb1, #7e57c2, #2196f3, #26c6da );
color: white;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: 1s gradient forwards;
}

.homepage .hero-subheading {
margin-top: 25px;
font-weight: 400;
font-size: 24px;
color: var(--vp-c-text-2);
max-width: 600px;
text-align: center;
line-height: 1.5
}

.homepage .hero-actions {
margin-top: 25px;
margin-bottom: 40px;
display: flex
}

.homepage .hero-action {
margin: 0 6px;
font-size: 18px;
border-radius: 40px;
padding: 14px 18px;
display: inline-flex;
font-weight: 600
}

.homepage .hero-action.primary {
background: white;
color: black
}

.homepage .hero-action.secondary {
background: var(--vp-c-brand);
color: white
}

.homepage video {
max-height: 640px;
width: 100%;
min-height: 200px;
margin-top: 20px;
margin-bottom: 80px;
padding: 16px;
background-color: #0c0f14;
border-radius: 16px;
box-shadow: 0 40px 60px rgba(0,0,0,.6);
transition: all .2s linear
}

.homepage .try-link-container {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
}

.homepage .try-link {
background-color: rgba(255,255,255,.3);
-webkit-backdrop-filter: blur(10px);
color: white;
font-weight: 500;
padding: 14px 20px;
border-radius: 40px;
opacity: 0;
transition: all .25s linear;
margin-top: -40px
}

.homepage .video-backdrop {
position: relative;
width: 100%;
height: 100%;
}

.homepage .video-backdrop:hover > video {
filter: blur(4px)
}

.homepage .video-backdrop:hover > .try-link-container > .try-link {
opacity: 1
}

.homepage .features {
display: grid;
grid-template-columns: repeat(2, 1fr)
}

.homepage .feature {
border: 2px solid #233;
margin: 8px;
padding: 18px;
border-radius: 14px;
}

.homepage .feature-title {
font-size: 20px;
font-weight: 600;
display: block;
padding-bottom: 8px;
}

.homepage .feature-subtitle {
margin-top: 28px;
color: var(--vp-c-text-2)
}

.homepage .feature-description {
}

.homepage .feature-icon {
}

.homepage .feature-icon img {
}

.homepage .quote {
display: flex;
flex-direction: column;
align-items: center;
margin: 80px 0
}

.homepage blockquote {
font-size: 42px;
font-weight: 700;
line-height: 1.2;
max-width: 900px;
}

.homepage figcaption {
color: var(--vp-c-text-2);
margin-top: 15px;
font-size: 18px
}

.homepage .section-title {
display: block;
text-align: center;
text-transform: uppercase;
font-weight: 700;
margin-bottom: 40px;
color: var(--vp-c-text-2)
}

.homepage .start-link {
border-radius: 40px;
padding: 4px;
background: linear-gradient(120deg, #ef5350, #f48fb1, #7e57c2, #2196f3, #26c6da);
background-size: 100% 100%;
background-repeat: repeat-y;
display: inline-flex;
transition: all 10s linear;
color: #FFFFFF;
}

.homepage .start-link a {
background: var(--vp-c-bg);
padding: 14px 20px;
border-radius: 40px;
font-size: 18px;
font-weight: 600;
}

.homepage .start-link a:hover {
background: transparent;
color: rgba(0,0,0,.9);
}

.homepage .footer-text {
text-align: center;
margin-top: 40px;
font-weight: 500;
color: var(--vp-c-text-2)
}

.homepage .footer-text a {
font-weight: 700;
}

.slangroom-editor-container {
max-width: 1280px;
width: 100%;
display: flex;
flex-flow: column nowrap;
justify-content: stretch
}

.try-title {
margin-top: 10px;
margin-bottom: 20px;
font-size: 20px;
font-weight: bold;
background: var(--vp-c-bg);
width: 100%;
text-align: center;
}

@media screen and (max-width: 720px) {
.homepage .container {
padding: 20px 24px
}

.homepage video {
margin-bottom: 40px
}

.homepage .quote {
margin: 20px 0;
}

.homepage blockquote {
font-size: 32px
}

.homepage .hero-heading {
font-size: 55px
}

.homepage .hero-subheading {
font-size: 20px
}

.homepage .features {
grid-template-columns: 1fr
}

.homepage .footer-text {
margin-top: 20px
}
}

0 comments on commit 57214d6

Please sign in to comment.