Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
fe8ab6f
Set up cns website app
edlu77 Oct 10, 2025
646d001
Merge branch 'develop' of https://github.com/hubmapconsortium/hra-ui …
edlu77 Oct 10, 2025
fb7c132
Updates
edlu77 Oct 10, 2025
4271b94
Add cns light mode theme
edlu77 Oct 13, 2025
1b15696
Enable design system styles for cns website
edlu77 Oct 13, 2025
170d475
Formatting
edlu77 Oct 13, 2025
2b671a2
Merge branch 'develop' of https://github.com/hubmapconsortium/hra-ui …
edlu77 Oct 15, 2025
15acbc2
Merge branch 'develop' of https://github.com/hubmapconsortium/hra-ui …
edlu77 Oct 17, 2025
9ff6eea
Merge branch 'develop' into cns-website
axdanbol Nov 3, 2025
5edf104
refactor: Add content template to cns-website
axdanbol Nov 3, 2025
e01ea32
Cns footer (#1889)
edlu77 Nov 10, 2025
30d7ad4
Merge branch 'develop' of github.com:hubmapconsortium/hra-ui into cns…
saaivignesh20 Nov 11, 2025
a654373
Merge branch 'develop' into cns-website
axdanbol Nov 13, 2025
6f7daa9
style: Lint fixes
axdanbol Nov 13, 2025
3fa3127
Merge branch 'develop' into cns-website
axdanbol Nov 18, 2025
32fc909
CNS Website - Visitor Info Page (#1877)
saaivignesh20 Nov 18, 2025
7566d20
Merge branch 'develop' into cns-website
axdanbol Nov 19, 2025
22b7a3f
CNS Website - Jobs page (#1884)
gauri2029 Nov 19, 2025
4f24a5d
CNS Website - Privacy Policy Page (#1894)
gauri2029 Nov 19, 2025
94d957e
Merge branch 'develop' into cns-website
axdanbol Nov 19, 2025
32842c2
Amatria page (#1895)
prashantchanne12 Nov 19, 2025
3b5d986
add about page for cns website (#1896)
rchavan10 Nov 20, 2025
a98845b
Merge branch 'develop' into cns-website
axdanbol Nov 20, 2025
ac7bd18
Cns header (#1930)
edlu77 Nov 21, 2025
4ede688
refactor(app:cns-website): Add base configuration
axdanbol Nov 21, 2025
723e68a
Add people profile template (#1933)
prashantchanne12 Nov 21, 2025
de43100
Merge branch 'develop' of github.com:hubmapconsortium/hra-ui into cns…
saaivignesh20 Nov 24, 2025
23eb3e2
update yaml - add anchor tags (#1984)
rchavan10 Dec 1, 2025
6ce9202
CNS Website - 404 Page (#1985)
saaivignesh20 Dec 1, 2025
d130c03
refactor(app:cns-website): Update header to use `hraLink` (#1997)
axdanbol Dec 1, 2025
a288396
refactor(app:cns-website): Update footer privacy links
axdanbol Dec 2, 2025
519048f
Merge branch 'develop' into cns-website
axdanbol Dec 2, 2025
34df151
CNS Website - Content Page Component (#1987)
saaivignesh20 Dec 2, 2025
23110ec
CNS Website - Add Breadcrumbs (#1988)
saaivignesh20 Dec 3, 2025
5473677
refactor(lib:design-system): Move breadcrumb schema into its own file
axdanbol Dec 3, 2025
d3e5cb8
refactor(app:cns-website): Update schemas
axdanbol Dec 3, 2025
f3d7bd0
test(app:cns-website): Fix conflicting schema ids
axdanbol Dec 3, 2025
8df3252
refactor(app:cns-website): General tweaks
axdanbol Dec 4, 2025
840cdfb
CNS Website - Landing Page Content (#1995)
saaivignesh20 Dec 5, 2025
15662b5
refactor(lib:design-system): :lipstick: Remove incorrect styles from …
axdanbol Dec 5, 2025
52f7160
Merge branch 'develop' into cns-website
axdanbol Dec 5, 2025
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
34 changes: 34 additions & 0 deletions apps/cns-website/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../eslint.config.mjs';

export default [
...baseConfig,
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'cns',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'cns',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
// Override or add rules here
rules: {},
},
];
6 changes: 6 additions & 0 deletions apps/cns-website/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
displayName: 'cns-website',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
coverageDirectory: '../../coverage/apps/cns-website',
};
61 changes: 61 additions & 0 deletions apps/cns-website/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "cns-website",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"prefix": "cns",
"sourceRoot": "apps/cns-website/src",
"tags": ["type:app"],
"targets": {
"build": {
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "4kb",
"maximumError": "8kb"
}
],
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"executor": "@nx/angular:application",
"options": {
"assets": [
{
"glob": "**/*",
"input": "apps/cns-website/public"
},
{
"input": "libs/design-system/assets",
"glob": "**/*",
"output": "./assets"
}
]
}
},
"serve": {
"executor": "@nx/angular:dev-server",
"continuous": true
},
"compodoc": {
"executor": "@twittwer/compodoc:compodoc",
"options": {
"tsConfig": "apps/cns-website/tsconfig.app.json"
}
},
"build-webcomponent": {
"command": "node tools/scripts/bundle-scripts.mjs dist/apps/cns-website/browser/"
}
}
}
Binary file added apps/cns-website/public/cns.png
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 apps/cns-website/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<router-outlet></router-outlet>
Empty file.
11 changes: 11 additions & 0 deletions apps/cns-website/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Component } from '@angular/core';
import { RouterModule } from '@angular/router';
import { HraCommonModule } from '@hra-ui/common';

@Component({
imports: [HraCommonModule, RouterModule],
selector: 'cns-website',
templateUrl: './app.component.html',
styleUrl: './app.component.scss',
})
export class AppComponent {}
27 changes: 27 additions & 0 deletions apps/cns-website/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';
import { provideRouter, withComponentInputBinding, withInMemoryScrolling } from '@angular/router';
import { provideAnalytics, withErrorHandler, withRouterEvents } from '@hra-ui/common/analytics';
import { provideAppConfiguration } from '@hra-ui/common/injectors';
import { provideDesignSystem } from '@hra-ui/design-system';
import { provideMarkdown } from 'ngx-markdown';
import { appRoutes } from './app.routes';

/** Application configuration */
export const appConfig: ApplicationConfig = {
providers: [
provideAppConfiguration({
name: 'cns-website',
version: '1.0.0',
url: 'https://cns.iu.edu/',
}),
provideAnalytics(withRouterEvents(), withErrorHandler()),
provideZonelessChangeDetection(),
provideDesignSystem(),
provideMarkdown(),
provideRouter(
appRoutes,
withComponentInputBinding(),
withInMemoryScrolling({ anchorScrolling: 'disabled', scrollPositionRestoration: 'enabled' }),
),
],
};
10 changes: 10 additions & 0 deletions apps/cns-website/src/app/app.routes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Route } from '@angular/router';
import { LandingPageComponent } from './pages/landing-page.component';

export const appRoutes: Route[] = [
{
path: '',
pathMatch: 'full',
component: LandingPageComponent,
},
];
1 change: 1 addition & 0 deletions apps/cns-website/src/app/pages/landing-page.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>landing-page works!</p>
3 changes: 3 additions & 0 deletions apps/cns-website/src/app/pages/landing-page.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:host {
display: block;
}
11 changes: 11 additions & 0 deletions apps/cns-website/src/app/pages/landing-page.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { HraCommonModule } from '@hra-ui/common';

@Component({
selector: 'cns-landing-page',
imports: [HraCommonModule],
templateUrl: './landing-page.component.html',
styleUrl: './landing-page.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class LandingPageComponent {}
29 changes: 29 additions & 0 deletions apps/cns-website/src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Cyberinfrastructure for Network Science Center</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" href="cns.png" />
<link rel="preload" href="media/nunito-sans-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="media/metropolis-latin-500-normal.woff2" as="font" type="font/woff2" crossorigin />
<link
rel="preload"
href="media/material-symbols-rounded-latin-fill-normal.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="media/material-symbols-outlined-latin-fill-normal.woff2"
as="font"
type="font/woff2"
crossorigin
/>
</head>
<body>
<cns-website></cns-website>
</body>
</html>
5 changes: 5 additions & 0 deletions apps/cns-website/src/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { bootstrapApplication } from '@angular/platform-browser';
import { appConfig } from './app/app.config';
import { AppComponent } from './app/app.component';

bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err));
9 changes: 9 additions & 0 deletions apps/cns-website/src/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@use '@angular/material' as mat;
@use 'vars';
@use 'light-theme';
@use 'theming';
@use 'utils';

@include utils.global-styles() {
@include theming.theme(light-theme.$theme);
}
7 changes: 7 additions & 0 deletions apps/cns-website/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import '@testing-library/jest-dom';
import { setupZonelessTestEnv } from 'jest-preset-angular/setup-env/zoneless';

setupZonelessTestEnv({
errorOnUnknownElements: true,
errorOnUnknownProperties: true,
});
10 changes: 10 additions & 0 deletions apps/cns-website/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": []
},
"files": ["src/main.ts"],
"include": ["src/**/*.ts"],
"exclude": ["jest.config.ts", "src/test-setup.ts", "**/*.spec.ts"]
}
23 changes: 23 additions & 0 deletions apps/cns-website/tsconfig.editor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.editor.json"
},
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
}
],
"extends": "../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}
23 changes: 23 additions & 0 deletions apps/cns-website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"compilerOptions": {},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.editor.json"
},
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
}
],
"extends": "../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}
9 changes: 9 additions & 0 deletions apps/cns-website/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": ["jest", "node", "jest-dom"]
},
"files": ["src/test-setup.ts"],
"include": ["jest.config.ts", "**/*.spec.ts", "**/*.d.ts"]
}
Loading