File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 107
107
</div>
108
108
</div>
109
109
110
+ <TerminalContainer class="px-4 sm:px-6 lg:px-8 pt-12" live="true" />
111
+
110
112
<div class="px-4 sm:px-6 lg:px-8 pt-12">
111
113
<div class="sm:flex sm:items-center">
112
114
<div class="sm:flex-auto">
Original file line number Diff line number Diff line change
1
+ <script setup>
2
+ import { defineProps } from 'vue'
3
+
4
+ const props = defineProps({
5
+ live: Boolean
6
+ })
7
+ </script>
8
+
1
9
<template>
2
10
<div class="">
3
11
<div class="w-full h-full bg-[#1D1F21] text-[#C5C8C6] font-mono flex flex-col rounded-lg shadow">
7
15
<div class="w-3 h-3 rounded-full bg-[#68B5BD]" />
8
16
<div class="w-3 h-3 rounded-full bg-[#74C6F0]" />
9
17
</div>
10
- <div class="text-sm">
18
+
19
+ <div v-if="live" class="text-sm">
20
+ Live Terminal Output
21
+ </div>
22
+ <div v-else class="text-sm">
11
23
root@localhost:~
12
24
</div>
13
25
</header>
27
39
<p>root</p>
28
40
</div>
29
41
</div>
30
- <div class="flex items-center gap-2 p-4 border-t border-[#282a2e]">
42
+ <div v-if="!live" class="flex items-center gap-2 p-4 border-t border-[#282a2e]">
31
43
<span class="text-[#68B5BD]">root@localhost:~$</span>
32
44
<input
33
45
class="bg-[#1D1F21] text-[#C5C8C6] w-full focus:outline-none"
You can’t perform that action at this time.
0 commit comments