Skip to content

Commit

Permalink
🧢 first sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
lauechev committed Feb 5, 2025
1 parent 4886285 commit 2e3aa6d
Show file tree
Hide file tree
Showing 20 changed files with 272 additions and 29 deletions.
File renamed without changes
Binary file added assets/faune-bold.woff
Binary file not shown.
Binary file added assets/faune-bold.woff2
Binary file not shown.
Binary file added assets/faune-italic.woff
Binary file not shown.
Binary file added assets/faune-italic.woff2
Binary file not shown.
Binary file added assets/faune-regular.woff
Binary file not shown.
Binary file added assets/faune-regular.woff2
Binary file not shown.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="manifest" href="/sitio.webmanifest" />
<!-- <link rel="canonical" href="https://enflujo.com" /> -->

<title>..:: EnFlujo ::..</title>
<title>Type Checker</title>
<!-- <meta name="description" content="Descripción del sitio...." /> -->

<!-- OpenGraph -->
Expand All @@ -35,8 +35,15 @@
<!-- <meta name="twitter:image:alt" content="Texto que describe la imagen" /> -->
</head>
<body>
<h1>..:: EnFlujo ::..</h1>
<h2>Plantilla Vite</h2>
<script type="module" src="/src/programa.ts"></script>
<section class="options">
<h1>Type Checker</h1>
<div class="option1">
<label>Your text</label>
<input type="text" name="sentence" placeholder="The quick brown fox..." />
</div>
</section>

<section class="output">The quick brown fox jumps over the lazy dog</section>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import './scss/styles.scss';

const sentenceTag = document.querySelector<HTMLInputElement>(`input[type="text"]`);
const outputTag = document.querySelector<HTMLDivElement>('.output');

//when i type in my sentence tag, update the output tag accordingly

if (sentenceTag && outputTag) {
sentenceTag.addEventListener('keyup', function () {
if (this.value) {
outputTag.innerHTML = this.value;
} else {
outputTag.innerHTML = 'The quick brown fox...';
}
// outputTag.innerHTML = this.value;
});
}
3 changes: 0 additions & 3 deletions src/programa.ts

This file was deleted.

145 changes: 145 additions & 0 deletions src/scss/base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}

img,
iframe {
vertical-align: bottom;
max-width: 100%;
}

input,
textarea,
select {
font: inherit;
}

* {
box-sizing: border-box;
text-rendering: optimizeLegibility;
}

html {
height: 100%;
}
21 changes: 0 additions & 21 deletions src/scss/estilos.scss

This file was deleted.

86 changes: 86 additions & 0 deletions src/scss/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
@use './base.scss' as *;
@use './variables' as *;

@font-face {
font-family: 'Faune';
font-weight: 400;
src: url(/assets/faune-regular.woff2), url(/assets/faune-regular.woff);
}

@font-face {
font-family: 'Faune';
font-weight: 400;
font-style: italic;
src: url(/assets/faune-italic.woff2), url(/assets/faune-italic.woff);
}

@font-face {
font-family: 'Faune';
font-weight: 700;
src: url(/assets/faune-bold.woff2), url(/assets/faune-bold.woff);
}

html {
box-sizing: border-box;
height: 100%;
}

*,
*:before,
*:after {
box-sizing: inherit;
}

html,
body {
margin: 0;
padding: 0;
}

body {
font-family: 'Faune', Arial;
font-size: 16px;
line-height: 1.5;

background-color: var(--background);
color: var(--textColor);
margin: 40px 40px 40px 320px;
}

.options {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 280px;
background-color: var(--background);
padding: 40px;
border-right: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
font-weight: 700;
font-size: 24px;
}

.option1 {
margin: 10px 0 0 0;
}

label {
display: block;
margin: 0 0 5px 0;
}

input[type='text'] {
width: 100%;
background-color: var(--background2);
border: none;
color: var(--white);
outline: none;
padding: 5px 7px 5px 7px;
}

.output {
font-size: 64px;
}
12 changes: 12 additions & 0 deletions src/scss/variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
:root {
--fontTitles: 'Uchen';
--fontBody: 'IBM Plex Mono';
--gray: #575757;
--lightBlack: #1f1f1f;
--white: #e9e8e4;
--textColor: var(--white);
--textColorInverted: var(--white);
--background: var(--lightBlack);
--backgroundInverted: var(--green);
--background2: var(--gray);
}
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite';

export default defineConfig({
// base: '/',
base: '/type-checker/',
server: {
port: 3000,
},
Expand Down

0 comments on commit 2e3aa6d

Please sign in to comment.