Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix responsive sidenav, adding gap between sidenav and main content, change default font with Inter font and enhance home page tagline #51

Closed
wants to merge 4 commits into from
Closed
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
1 change: 1 addition & 0 deletions apps/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/assets/spartan.svg" />
<link rel="stylesheet" href="/src/styles.css" />
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
<script>
if (localStorage.theme !== 'default') {
if (document && document.body) {
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/app/pages/(home).page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const lead = 'leading-normal text-muted-foreground sm:text-xl sm:leading-8';
class="!bg-primary !text-foreground-primary !hover:bg-primary/90"
>This is madness. This is spartan.</a
>
<h1 class="font-heading text-3xl sm:text-5xl md:text-6xl lg:text-7xl">
<h1 class="font-semibold lg:font-bold text-3xl sm:text-5xl md:text-6xl">
Cutting-edge tools powering Angular full-stack development.
</h1>
<p class="max-w-[42rem] ${lead}">
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/app/shared/layout/container.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import { Directive, HostBinding } from '@angular/core';
export class ContainerDirective {
@HostBinding('class')
public class =
'w-full mx-auto px-1 flex flex-1 items-start md:grid md:grid-cols-[220px_minmax(0,1fr)] lg:grid-cols-[240px_minmax(0,1fr)]';
'w-full mx-auto flex flex-1 items-start md:grid md:grid-cols-[220px_minmax(0,1fr)] lg:grid-cols-[240px_minmax(0,1fr)] md:gap-6 lg:gap-10';
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SideNavContentComponent } from './side-nav-content.component';
host: {
class: 'fixed text-sm top-12 px-2 pt-6 pb-12 flex z-30 -ml-2 hidden w-full shrink-0 md:sticky md:block',
},
template: `<hlm-scroll-area visibility="hover" class="h-[calc(100vh-3.5rem)]">
template: `<hlm-scroll-area visibility="hover" class="h-[calc(100vh-3.5rem)]" [autoWidthDisabled]="true">
<spartan-side-nav-content />
</hlm-scroll-area>`,
})
Expand Down
8 changes: 8 additions & 0 deletions apps/app/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { createGlobPatternsForDependencies } = require('@nx/angular/tailwind');
const { join } = require('path');
const { fontFamily } = require('tailwindcss/defaultTheme');

/** @type {import('tailwindcss').Config} */
module.exports = {
Expand All @@ -10,4 +11,11 @@ module.exports = {
join(__dirname, 'src/**/!(*.stories|*.spec).{ts,html}'),
...createGlobPatternsForDependencies(__dirname),
],
theme: {
extend: {
fontFamily: {
sans: ['Inter var', 'var(--font-sans)', ...fontFamily.sans],
},
},
},
};
Loading