phallout commited on
Commit
7f226bd
·
verified ·
1 Parent(s): 0bbaaa6

Make the overall design more professional and remove the "upcoming events" section

Browse files
Files changed (6) hide show
  1. README.md +8 -5
  2. components/footer.js +143 -0
  3. components/navbar.js +99 -0
  4. index.html +153 -19
  5. script.js +46 -0
  6. style.css +29 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Sleek Corporate Portal
3
- emoji: 📈
4
- colorFrom: pink
5
- colorTo: pink
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: Sleek Corporate Portal 🏢
3
+ colorFrom: gray
4
+ colorTo: green
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ background-color: #1e293b;
9
+ color: #f8fafc;
10
+ }
11
+
12
+ .footer-container {
13
+ max-width: 1200px;
14
+ margin: 0 auto;
15
+ padding: 3rem 1rem;
16
+ display: grid;
17
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
18
+ gap: 2rem;
19
+ }
20
+
21
+ .footer-logo {
22
+ font-size: 1.5rem;
23
+ font-weight: 700;
24
+ display: flex;
25
+ align-items: center;
26
+ margin-bottom: 1rem;
27
+ }
28
+
29
+ .footer-logo img {
30
+ height: 40px;
31
+ margin-right: 0.5rem;
32
+ }
33
+
34
+ .footer-description {
35
+ color: #94a3b8;
36
+ margin-bottom: 1.5rem;
37
+ }
38
+
39
+ .footer-links h3 {
40
+ font-size: 1.1rem;
41
+ font-weight: 600;
42
+ margin-bottom: 1.2rem;
43
+ color: white;
44
+ }
45
+
46
+ .footer-links ul {
47
+ list-style: none;
48
+ padding: 0;
49
+ margin: 0;
50
+ }
51
+
52
+ .footer-links li {
53
+ margin-bottom: 0.6rem;
54
+ }
55
+
56
+ .footer-links a {
57
+ color: #94a3b8;
58
+ text-decoration: none;
59
+ transition: color 0.2s;
60
+ }
61
+
62
+ .footer-links a:hover {
63
+ color: white;
64
+ }
65
+
66
+ .social-links {
67
+ display: flex;
68
+ gap: 1rem;
69
+ margin-top: 1rem;
70
+ }
71
+
72
+ .social-links a {
73
+ color: #94a3b8;
74
+ transition: color 0.2s;
75
+ }
76
+
77
+ .social-links a:hover {
78
+ color: white;
79
+ }
80
+
81
+ .copyright {
82
+ border-top: 1px solid #334155;
83
+ padding: 1.5rem 0;
84
+ text-align: center;
85
+ color: #94a3b8;
86
+ font-size: 0.9rem;
87
+ }
88
+ </style>
89
+ <div class="footer-container">
90
+ <div class="footer-about">
91
+ <div class="footer-logo">
92
+ <img src="http://static.photos/white/200x200/5" alt="Logo">
93
+ <span>CorporatePortal</span>
94
+ </div>
95
+ <p class="footer-description">
96
+ Providing professional business solutions to help organizations thrive in the digital age.
97
+ </p>
98
+ <div class="social-links">
99
+ <a href="#"><i data-feather="twitter"></i></a>
100
+ <a href="#"><i data-feather="linkedin"></i></a>
101
+ <a href="#"><i data-feather="facebook"></i></a>
102
+ </div>
103
+ </div>
104
+
105
+ <div class="footer-links">
106
+ <h3>Company</h3>
107
+ <ul>
108
+ <li><a href="#">About Us</a></li>
109
+ <li><a href="#">Leadership</a></li>
110
+ <li><a href="#">Careers</a></li>
111
+ <li><a href="#">News</a></li>
112
+ </ul>
113
+ </div>
114
+
115
+ <div class="footer-links">
116
+ <h3>Services</h3>
117
+ <ul>
118
+ <li><a href="#">Consulting</a></li>
119
+ <li><a href="#">Technology</a></li>
120
+ <li><a href="#">Analytics</a></li>
121
+ <li><a href="#">Training</a></li>
122
+ </ul>
123
+ </div>
124
+
125
+ <div class="footer-links">
126
+ <h3>Resources</h3>
127
+ <ul>
128
+ <li><a href="#">Blog</a></li>
129
+ <li><a href="#">Whitepapers</a></li>
130
+ <li><a href="#">Case Studies</a></li>
131
+ <li><a href="#">Events</a></li>
132
+ </ul>
133
+ </div>
134
+ </div>
135
+
136
+ <div class="copyright">
137
+ &copy; ${new Date().getFullYear()} CorporatePortal. All rights reserved.
138
+ </div>
139
+ `;
140
+ }
141
+ }
142
+
143
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ :host {
7
+ display: block;
8
+ position: fixed;
9
+ top: 0;
10
+ left: 0;
11
+ right: 0;
12
+ z-index: 1000;
13
+ background-color: white;
14
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
15
+ transition: transform 0.3s ease;
16
+ }
17
+
18
+ :host(.navbar-hidden) {
19
+ transform: translateY(-100%);
20
+ }
21
+
22
+ .navbar-container {
23
+ max-width: 1200px;
24
+ margin: 0 auto;
25
+ padding: 1rem;
26
+ display: flex;
27
+ justify-content: space-between;
28
+ align-items: center;
29
+ }
30
+
31
+ .logo {
32
+ font-size: 1.5rem;
33
+ font-weight: 700;
34
+ color: #1a365d;
35
+ text-decoration: none;
36
+ display: flex;
37
+ align-items: center;
38
+ }
39
+
40
+ .logo img {
41
+ height: 40px;
42
+ margin-right: 0.5rem;
43
+ }
44
+
45
+ .nav-links {
46
+ display: flex;
47
+ gap: 1.5rem;
48
+ }
49
+
50
+ .nav-links a {
51
+ color: #4a5568;
52
+ text-decoration: none;
53
+ font-weight: 500;
54
+ transition: color 0.2s;
55
+ }
56
+
57
+ .nav-links a:hover {
58
+ color: #2b6cb0;
59
+ }
60
+
61
+ .mobile-menu-btn {
62
+ display: none;
63
+ background: none;
64
+ border: none;
65
+ cursor: pointer;
66
+ }
67
+
68
+ @media (max-width: 768px) {
69
+ .mobile-menu-btn {
70
+ display: block;
71
+ }
72
+
73
+ .nav-links {
74
+ display: none;
75
+ }
76
+ }
77
+ </style>
78
+ <div class="navbar-container">
79
+ <a href="/" class="logo">
80
+ <img src="http://static.photos/black/200x200/5" alt="Logo">
81
+ <span>CorporatePortal</span>
82
+ </a>
83
+
84
+ <button class="mobile-menu-btn">
85
+ <i data-feather="menu"></i>
86
+ </button>
87
+
88
+ <div class="nav-links">
89
+ <a href="/">Home</a>
90
+ <a href="#services">Services</a>
91
+ <a href="#contact">Contact</a>
92
+ <a href="#" class="px-4 py-2 bg-blue-600 text-white rounded-lg">Login</a>
93
+ </div>
94
+ </div>
95
+ `;
96
+ }
97
+ }
98
+
99
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,153 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="scroll-smooth">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Sleek Corporate Portal</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="components/navbar.js"></script>
10
+ <script src="components/footer.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
12
+ <script src="https://unpkg.com/feather-icons"></script>
13
+ </head>
14
+ <body class="bg-gray-50 text-gray-800 font-sans">
15
+ <custom-navbar></custom-navbar>
16
+
17
+ <main class="container mx-auto px-4 py-8 md:py-12">
18
+ <!-- Hero Section -->
19
+ <section class="mb-16">
20
+ <div class="flex flex-col md:flex-row items-center gap-8">
21
+ <div class="md:w-1/2">
22
+ <h1 class="text-4xl md:text-5xl font-bold mb-4 text-gray-900">Streamlined Solutions for Modern Business</h1>
23
+ <p class="text-lg text-gray-600 mb-6">Elevate your enterprise with our comprehensive suite of professional services and innovative technology solutions.</p>
24
+ <div class="flex gap-4">
25
+ <a href="#services" class="px-6 py-3 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-medium transition-colors duration-200">
26
+ Our Services
27
+ </a>
28
+ <a href="#contact" class="px-6 py-3 bg-white border border-gray-300 hover:bg-gray-100 text-gray-700 rounded-lg font-medium transition-colors duration-200">
29
+ Contact Us
30
+ </a>
31
+ </div>
32
+ </div>
33
+ <div class="md:w-1/2">
34
+ <img src="http://static.photos/office/1024x576/10" alt="Modern office workspace" class="rounded-xl shadow-lg w-full h-auto">
35
+ </div>
36
+ </div>
37
+ </section>
38
+
39
+ <!-- Services Section -->
40
+ <section id="services" class="mb-16">
41
+ <h2 class="text-3xl font-bold mb-8 text-center text-gray-900">Our Professional Services</h2>
42
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
43
+ <!-- Service 1 -->
44
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow duration-200">
45
+ <div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
46
+ <i data-feather="globe" class="text-blue-600"></i>
47
+ </div>
48
+ <h3 class="text-xl font-semibold mb-2">Digital Transformation</h3>
49
+ <p class="text-gray-600">Comprehensive digital strategy alignment to accelerate your business growth and operational efficiency.</p>
50
+ </div>
51
+
52
+ <!-- Service 2 -->
53
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow duration-200">
54
+ <div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
55
+ <i data-feather="bar-chart-2" class="text-blue-600"></i>
56
+ </div>
57
+ <h3 class="text-xl font-semibold mb-2">Business Analytics</h3>
58
+ <p class="text-gray-600">Data-driven insights to optimize performance and uncover new opportunities for your organization.</p>
59
+ </div>
60
+
61
+ <!-- Service 3 -->
62
+ <div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition-shadow duration-200">
63
+ <div class="bg-blue-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
64
+ <i data-feather="users" class="text-blue-600"></i>
65
+ </div>
66
+ <h3 class="text-xl font-semibold mb-2">Talent Management</h3>
67
+ <p class="text-gray-600">Strategic HR solutions to attract, develop and retain top industry professionals.</p>
68
+ </div>
69
+ </div>
70
+ </section>
71
+
72
+ <!-- Testimonials -->
73
+ <section class="mb-16 bg-gradient-to-r from-blue-50 to-white py-12 px-4 rounded-xl">
74
+ <h2 class="text-3xl font-bold mb-8 text-center text-gray-900">Client Testimonials</h2>
75
+ <div class="max-w-4xl mx-auto">
76
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
77
+ <div class="bg-white p-6 rounded-xl shadow-sm">
78
+ <div class="flex items-center mb-4">
79
+ <img src="http://static.photos/people/200x200/12" alt="John Smith" class="w-12 h-12 rounded-full mr-4">
80
+ <div>
81
+ <h4 class="font-semibold">John Smith</h4>
82
+ <p class="text-sm text-gray-500">CEO, TechCorp</p>
83
+ </div>
84
+ </div>
85
+ <p class="text-gray-600">"Their strategic insights helped us rethink our digital approach and resulted in a 30% increase in operational efficiency."</p>
86
+ </div>
87
+ <div class="bg-white p-6 rounded-xl shadow-sm">
88
+ <div class="flex items-center mb-4">
89
+ <img src="http://static.photos/people/200x200/15" alt="Sarah Johnson" class="w-12 h-12 rounded-full mr-4">
90
+ <div>
91
+ <h4 class="font-semibold">Sarah Johnson</h4>
92
+ <p class="text-sm text-gray-500">CFO, FinSecure</p>
93
+ </div>
94
+ </div>
95
+ <p class="text-gray-600">"The analytics reports provided clear visibility into our financial performance and uncovered areas we hadn't even considered."</p>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </section>
100
+
101
+ <!-- Contact Section -->
102
+ <section id="contact" class="mb-16">
103
+ <div class="bg-white rounded-xl shadow-md overflow-hidden">
104
+ <div class="md:flex">
105
+ <div class="md:w-1/2 bg-blue-600 p-8 md:p-12 text-white">
106
+ <h2 class="text-3xl font-bold mb-4">Get in Touch</h2>
107
+ <p class="mb-6 opacity-90">Our team is ready to help your business reach new heights. Contact us today to schedule a consultation.</p>
108
+ <div class="space-y-4">
109
+ <div class="flex items-start">
110
+ <i data-feather="phone" class="mr-3 mt-1"></i>
111
+ <span>+1 (555) 123-4567</span>
112
+ </div>
113
+ <div class="flex items-start">
114
+ <i data-feather="mail" class="mr-3 mt-1"></i>
115
+ <span>info@corporateportal.com</span>
116
+ </div>
117
+ <div class="flex items-start">
118
+ <i data-feather="map-pin" class="mr-3 mt-1"></i>
119
+ <span>123 Business Ave, Suite 200<br>New York, NY 10001</span>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ <div class="md:w-1/2 p-8 md:p-12">
124
+ <form>
125
+ <div class="mb-4">
126
+ <label for="name" class="block text-sm font-medium text-gray-700 mb-1">Name</label>
127
+ <input type="text" id="name" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
128
+ </div>
129
+ <div class="mb-4">
130
+ <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
131
+ <input type="email" id="email" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500">
132
+ </div>
133
+ <div class="mb-4">
134
+ <label for="message" class="block text-sm font-medium text-gray-700 mb-1">Message</label>
135
+ <textarea id="message" rows="4" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"></textarea>
136
+ </div>
137
+ <button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition-colors duration-200">
138
+ Send Message
139
+ </button>
140
+ </form>
141
+ </div>
142
+ </div>
143
+ </div>
144
+ </section>
145
+ </main>
146
+
147
+ <custom-footer></custom-footer>
148
+
149
+ <script>feather.replace();</script>
150
+ <script src="script.js"></script>
151
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
152
+ </body>
153
+ </html>
script.js ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+ // Smooth scroll for anchor links
3
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
4
+ anchor.addEventListener('click', function(e) {
5
+ e.preventDefault();
6
+ const targetId = this.getAttribute('href');
7
+ if (targetId === '#') return;
8
+
9
+ const targetElement = document.querySelector(targetId);
10
+ if (targetElement) {
11
+ targetElement.scrollIntoView({
12
+ behavior: 'smooth'
13
+ });
14
+ }
15
+ });
16
+ });
17
+
18
+ // Sticky navbar functionality
19
+ const header = document.querySelector('custom-navbar');
20
+ const headerHeight = header.offsetHeight;
21
+ let lastScrollTop = 0;
22
+
23
+ window.addEventListener('scroll', function() {
24
+ let scrollTop = window.pageYOffset || document.documentElement.scrollTop;
25
+
26
+ if (scrollTop > lastScrollTop && scrollTop > headerHeight) {
27
+ // Scroll down
28
+ header.classList.add('navbar-hidden');
29
+ } else {
30
+ // Scroll up
31
+ header.classList.remove('navbar-hidden');
32
+ }
33
+ lastScrollTop = scrollTop;
34
+ });
35
+
36
+ // Form submission handling
37
+ const contactForm = document.querySelector('form');
38
+ if (contactForm) {
39
+ contactForm.addEventListener('submit', function(e) {
40
+ e.preventDefault();
41
+ // Form submission logic would go here
42
+ alert('Message sent successfully! We will get back to you soon.');
43
+ this.reset();
44
+ });
45
+ }
46
+ });
style.css CHANGED
@@ -1,28 +1,39 @@
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
28
  }
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
+
3
  body {
4
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
5
+ line-height: 1.5;
6
+ }
7
+
8
+ /* Smooth scroll */
9
+ html {
10
+ scroll-behavior: smooth;
11
  }
12
 
13
+ /* Custom scrollbar */
14
+ ::-webkit-scrollbar {
15
+ width: 8px;
16
  }
17
 
18
+ ::-webkit-scrollbar-track {
19
+ background: #f1f1f1;
 
 
 
20
  }
21
 
22
+ ::-webkit-scrollbar-thumb {
23
+ background: #3b82f6;
24
+ border-radius: 4px;
 
 
 
25
  }
26
 
27
+ ::-webkit-scrollbar-thumb:hover {
28
+ background: #2563eb;
29
  }
30
+
31
+ /* Animations */
32
+ .fade-in {
33
+ animation: fadeIn 0.6s ease-in forwards;
34
+ }
35
+
36
+ @keyframes fadeIn {
37
+ from { opacity: 0; }
38
+ to { opacity: 1; }
39
+ }