Skip to content

Commit 2957f17

Browse files
committed
basic landing page design
1 parent da6c105 commit 2957f17

File tree

4 files changed

+47
-2
lines changed

4 files changed

+47
-2
lines changed

src/app/app.component.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@
1212
</mat-toolbar>
1313
<div class="content-container" [style.marginTop.px]="mobileQuery.matches ? 80 : 0">
1414
<div class="banner">
15-
<mat-card></mat-card>
16-
15+
<mat-card class="code-snippet">
16+
<mat-card-title class="title">
17+
<h3>sQeeZ Scripting Language</h3>
18+
</mat-card-title>
19+
<mat-card-content class="editor">
20+
{{ code }}
21+
</mat-card-content>
22+
</mat-card>
1723
<mat-card class="getting-started">
1824
<mat-card-title>
1925
<h3>Getting Started</h3>

src/app/app.component.scss

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,27 @@
6060
color: var(--font-color);
6161
}
6262

63+
.code-snippet {
64+
text-align: center;
65+
display: flex;
66+
background-color: var(--content);
67+
68+
.title {
69+
color: var(--highlight);
70+
text-decoration: underline;
71+
}
72+
73+
.editor {
74+
padding: 1rem;
75+
margin: 1rem;
76+
margin-top: 0;
77+
background-color: var(--editor);
78+
border-radius: 10px;
79+
text-align: left;
80+
white-space: pre-line;
81+
}
82+
}
83+
6384
.getting-started {
6485
height: fit-content;
6586
text-align: center;
@@ -98,6 +119,19 @@
98119
}
99120
}
100121

122+
@media (max-width: 768px) {
123+
.banner {
124+
flex-direction: column;
125+
padding: 1rem 0;
126+
gap: 1rem;
127+
height: fit-content;
128+
129+
mat-card {
130+
max-width: 95%;
131+
}
132+
}
133+
}
134+
101135
@media (max-width: 320px) {
102136
.slogan {
103137
display: none;

src/app/app.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class AppComponent implements OnInit, OnDestroy {
2121
public currentTheme: string = 'dark';
2222
public os: string = '';
2323
public oss: string[] = ['macOS', 'Windows', 'Linux'];
24+
public code: string = '@5,10,15,20,25 |> MAP(+3) |> FILTER(>15) |> REDUCE(+0);\nvar obj = @a:1,b:false,c:"last value";\nlog(obj);'
2425

2526
private _mobileQueryListener: () => void;
2627

src/styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ body {
1919
--font-color: white;
2020
--toolbar: #424242;
2121
--content: #303030;
22+
--editor: #1f1f1f;
23+
--highlight: rgba(255, 171, 242, 0.75);
2224
}
2325

2426
.light-theme {
@@ -27,6 +29,8 @@ body {
2729
--font-color: black;
2830
--toolbar: #F5F5F5;
2931
--content: #FFFFFF;
32+
--editor: #ffffff;
33+
--highlight: rgba(255, 171, 242, 0.75);
3034
}
3135

3236
app-root {

0 commit comments

Comments
 (0)