Skip to content

Commit

Permalink
add right padding, font
Browse files Browse the repository at this point in the history
  • Loading branch information
onnenon committed Apr 30, 2024
1 parent e275d5a commit 12fd696
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 7 deletions.
Binary file added dist/fonts/CascadiaCode.woff2
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5250,7 +5250,7 @@ var $elm$core$Platform$Cmd$batch = _Platform_batch;
var $elm$core$Platform$Cmd$none = $elm$core$Platform$Cmd$batch(_List_Nil);
var $author$project$Main$init = function (_v0) {
return _Utils_Tuple2(
A4($author$project$Main$Model, '$', '', './onn.sh', true),
A4($author$project$Main$Model, 'λ', '', './onn.sh', true),
$elm$core$Platform$Cmd$none);
};
var $author$project$Main$TypeCommand = {$: 'TypeCommand'};
Expand Down Expand Up @@ -6350,7 +6350,7 @@ var $author$project$Main$title = F2(
_List_fromArray(
[
$elm$html$Html$Attributes$class($author$project$Main$title_font_style),
$elm$html$Html$Attributes$class('dark:text-prime-purple text-prime-purple-lt')
$elm$html$Html$Attributes$class('dark:text-prime-purple text-prime-purple-lt pr-6')
]),
_List_fromArray(
[
Expand Down
26 changes: 24 additions & 2 deletions dist/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

@import url("https://fonts.googleapis.com/css?family=Ubuntu+Mono");

@font-face {
font-family: "Cascadia Code";

src: url("fonts/CascadiaCode.woff2") format("woff2");

font-weight: normal;

font-style: normal;
}

/*
! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
*/
Expand Down Expand Up @@ -141,7 +151,7 @@ code,
kbd,
samp,
pre {
font-family: Ubuntu Mono, monospace;
font-family: Cascadia Code, monospace;
/* 1 */
font-feature-settings: normal;
/* 2 */
Expand Down Expand Up @@ -607,8 +617,20 @@ video {
padding: .8em;
}

.pr-4{
padding-right: 1rem;
}

.pr-5{
padding-right: 1.25rem;
}

.pr-6{
padding-right: 1.5rem;
}

.font-mono{
font-family: Ubuntu Mono, monospace;
font-family: Cascadia Code, monospace;
}

.text-\[14vw\]{
Expand Down
4 changes: 2 additions & 2 deletions src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Msg

init : () -> ( Model, Cmd Msg )
init _ =
( Model "$" "" "./onn.sh" True, Cmd.none )
( Model "λ" "" "./onn.sh" True, Cmd.none )


main : Program () Model Msg
Expand Down Expand Up @@ -83,7 +83,7 @@ subscriptions model =
title : String -> String -> Html.Html msg
title prompt title_text =
div [ class "flex flex-row" ]
[ h1 [ class title_font_style, class "dark:text-prime-purple text-prime-purple-lt" ] [ text prompt ]
[ h1 [ class title_font_style, class "dark:text-prime-purple text-prime-purple-lt pr-6" ] [ text prompt ]
, h1 [ class title_font_style, class "dark:text-prime-white text-prime-black-txt" ] [ text title_text ]
, h1 [ class title_font_style, class "text-prime-gray animate-blink" ] [ text "" ]
]
Expand Down
7 changes: 7 additions & 0 deletions src/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
@import url("https://fonts.googleapis.com/css?family=Titillium+Web");
@import url("https://fonts.googleapis.com/css?family=Ubuntu+Mono");

@font-face {
font-family: "Cascadia Code";
src: url("fonts/CascadiaCode.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}

@tailwind base;
@tailwind components;
@tailwind utilities;
3 changes: 2 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module.exports = {
fontFamily: {
sans: ["Titillium Web, Open Sans", "sans-serif"],
serif: ["Merriweather", "serif"],
mono: ["Ubuntu Mono", "monospace"],
mono: ["Cascadia Code", "monospace"],
// mono: ["Ubuntu Mono", "monospace"],
},
colors: {
"prime-white": "#e6edf3",
Expand Down

0 comments on commit 12fd696

Please sign in to comment.