diff --git a/UI/index.html b/UI/index.html new file mode 100644 index 000000000..c85993aef --- /dev/null +++ b/UI/index.html @@ -0,0 +1,92 @@ + + + + + + Pictopy - Image Manager + + + +
+
+ +
+

Pictopy

+
+
+ +
+
+
+
+
+
+ Image 1 +

Person

+
+
+ Image 2 +

Place

+
+
+ Image 3 +

Object

+
+
+ Image 4 +

Destination

+
+
+
+ +
+

16th March 2024

+
+ + Photo 1 + Photo 2 + Photo 3 + Photo 3 + + + + + +
+

15th March 2024

+
+ + Photo 1 + Photo 2 + Photo 3 + Photo 3 + + + + +
+ + + + + + +
+ +
+ + + diff --git a/UI/main.js b/UI/main.js new file mode 100644 index 000000000..28e10a56d --- /dev/null +++ b/UI/main.js @@ -0,0 +1,16 @@ +// main.js +const { app, BrowserWindow } = require('electron'); + +function createWindow() { + const mainWindow = new BrowserWindow({ + width: 800, + height: 600, + webPreferences: { + nodeIntegration: true + } + }); + + mainWindow.loadFile('index.html'); +} + +app.whenReady().then(createWindow); diff --git a/UI/script.js b/UI/script.js new file mode 100644 index 000000000..e69de29bb diff --git a/UI/styles.css b/UI/styles.css new file mode 100644 index 000000000..84ee11e57 --- /dev/null +++ b/UI/styles.css @@ -0,0 +1,131 @@ +body { + font-family: Arial, sans-serif; + margin: 0; + padding: 0; + background-color: white; /* Dark background color */ +} + +.container { + display: flex; +} + +.left-side { + width: 18vw; /* Adjust width as needed */ + background-color: #444; /* Light black */ + color: #fff; /* Text color */ + padding: 20px; + height: 100vh; + /* text-align: right; */ +} + +.right-side { + flex: 1; + padding: 20px; + /* Text color for right side */ +} + +.logo{ + display: inline; +} + +.logo img { + width: 100px; /* Adjust size as needed */ + height: auto; +} + +.project-name h1 { + margin: 10px 0; + border-bottom: 2px solid #fff; /* Underline effect */ + padding-bottom: 10px; +} + +.tabs{ + text-align: center; +} + +.tabs ul { + list-style-type: none; + padding: 0; +} + +.tabs ul li { + margin-bottom: 10px; +} + +.tabs ul li a { + color: #fff; + text-decoration: none; +} + +.tabs ul li a.active { + font-weight: bold; +} + +.top-section { + margin-bottom: 20px; +} + +.classification { + display: flex; + justify-content: space-between; +} + +.classification .classification-item { + width: calc(25% - 10px); /* Adjust width and margin as needed */ + margin-right: 10px; + padding: 10px; + background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white background */ +} + +.main-section { + overflow-x: auto; /* Enable horizontal scroll */ +} + +/* Styling for photos and content in the classification section can be added here */ + +.classification { + display: flex; + justify-content: space-between; +} + +.classification-item { + position: relative; /* Positioning context for absolute positioning */ + width: calc(25% - 10px); /* Adjust width and margin as needed */ + margin-right: 10px; + padding: 10px; + background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent white background */ + text-align: center; /* Center content horizontally */ +} + +.classification-item img { + width: 100%; /* Make images fill their container */ + height: auto; /* Maintain aspect ratio */ + filter: blur(1.3px); /* Apply blur effect to the image */ +} + +.classification-item p { + position: absolute; /* Position classification text absolutely */ + top: 50%; /* Align text vertically at the center */ + left: 0; /* Align text to the left */ + right: 0; /* Align text to the right */ + transform: translateY(-50%); /* Adjust for vertical alignment */ + color: #fff; /* Text color */ + font-size: 16px; /* Adjust font size as needed */ +} + + +.main-section { + overflow-x: auto; /* Enable horizontal scroll */ +} + +.horizontal-scroll { + display: flex; + flex-wrap: nowrap; /* Prevent items from wrapping to the next line */ + padding-bottom: 20px; /* Add some space at the bottom for better visibility */ +} + +.horizontal-scroll img { + width: 15vw; /* Adjust width as needed */ + height: auto; /* Maintain aspect ratio */ + margin: 10px; /* Add space between photos */ +}