Make recursive preview desktop only
This commit is contained in:
@@ -91,4 +91,8 @@
|
|||||||
.techIcons {
|
.techIcons {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Project_desktopOnly {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,8 @@ export default (props: { project: Project, odd: boolean }) => {
|
|||||||
class={styles.Project}
|
class={styles.Project}
|
||||||
classList={{
|
classList={{
|
||||||
[styles.Project_odd]: props.odd,
|
[styles.Project_odd]: props.odd,
|
||||||
[styles.Project_halfWidth]: props.project.halfWidth
|
[styles.Project_halfWidth]: props.project.halfWidth,
|
||||||
|
[styles.Project_desktopOnly]: props.project.desktopOnly
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
@@ -30,7 +31,7 @@ export default (props: { project: Project, odd: boolean }) => {
|
|||||||
class={styles.preview}
|
class={styles.preview}
|
||||||
src={props.project.preview as string}
|
src={props.project.preview as string}
|
||||||
style={props.project.previewStyle}
|
style={props.project.previewStyle}
|
||||||
/>
|
/>
|
||||||
:
|
:
|
||||||
<props.project.preview />
|
<props.project.preview />
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ export class Project {
|
|||||||
previewStyle?: string;
|
previewStyle?: string;
|
||||||
halfWidth?: boolean;
|
halfWidth?: boolean;
|
||||||
icons?: Icon[];
|
icons?: Icon[];
|
||||||
|
desktopOnly?: boolean;
|
||||||
|
|
||||||
constructor(project: Project) {
|
constructor(project: Project) {
|
||||||
this.name = project.name
|
this.name = project.name
|
||||||
@@ -34,6 +35,7 @@ export class Project {
|
|||||||
this.previewStyle = project.previewStyle
|
this.previewStyle = project.previewStyle
|
||||||
this.halfWidth = project.halfWidth
|
this.halfWidth = project.halfWidth
|
||||||
this.icons = project.icons
|
this.icons = project.icons
|
||||||
|
this.desktopOnly = project.desktopOnly
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,7 +58,8 @@ export default [
|
|||||||
name: 'This website',
|
name: 'This website',
|
||||||
preview: RecursivePreview,
|
preview: RecursivePreview,
|
||||||
link: 'https://kopyl.dev',
|
link: 'https://kopyl.dev',
|
||||||
descriptionSlug: 'this_desc'
|
descriptionSlug: 'this_desc',
|
||||||
|
desktopOnly: true
|
||||||
}),
|
}),
|
||||||
new Project({
|
new Project({
|
||||||
name: 'VK Mute',
|
name: 'VK Mute',
|
||||||
|
|||||||
Reference in New Issue
Block a user